gshell/gshell-features/src/main/java/org/apache/servicemix/kernel/gshell/features/internal/FeatureImpl.java [73:130]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public List<Feature> getDependencies() {
        return dependencies;
    }

    public List<String> getBundles() {
        return bundles;
    }

    public Map<String, Map<String, String>> getConfigurations() {
        return configs;
    }

    public void addDependency(Feature dependency) {
        dependencies.add(dependency);
    }

    public void addBundle(String bundle) {
        bundles.add(bundle);
    }

    public void addConfig(String name, Map<String,String> properties) {
        configs.put(name, properties);
    }

    public String toString() {
    	String ret = getName() + SPLIT_FOR_NAME_AND_VERSION + getVersion();
    	return ret;
    }
    
    public static Feature valueOf(String str) {
    	if (str.indexOf(SPLIT_FOR_NAME_AND_VERSION) >= 0) {
    		String strName = str.substring(0, str.indexOf(SPLIT_FOR_NAME_AND_VERSION));
        	String strVersion = str.substring(str.indexOf(SPLIT_FOR_NAME_AND_VERSION) 
        			+ SPLIT_FOR_NAME_AND_VERSION.length(), str.length());
        	return new FeatureImpl(strName, strVersion);
    	} else {
    		return new FeatureImpl(str);
    	}
    			
    	
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FeatureImpl feature = (FeatureImpl) o;

        if (!name.equals(feature.name)) return false;
        if (!version.equals(feature.version)) return false;

        return true;
    }

    public int hashCode() {
        int result = name.hashCode();
        result = 31 * result + version.hashCode();
        return result;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



testing/support/src/main/java/org/apache/servicemix/kernel/testing/support/FeatureImpl.java [66:123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public List<Feature> getDependencies() {
        return dependencies;
    }

    public List<String> getBundles() {
        return bundles;
    }

    public Map<String, Map<String, String>> getConfigurations() {
        return configs;
    }

    public void addDependency(Feature dependency) {
        dependencies.add(dependency);
    }

    public void addBundle(String bundle) {
        bundles.add(bundle);
    }

    public void addConfig(String name, Map<String,String> properties) {
        configs.put(name, properties);
    }

    public String toString() {
        String ret = getName() + SPLIT_FOR_NAME_AND_VERSION + getVersion();
        return ret;
    }
    
    public static Feature valueOf(String str) {
        if (str.indexOf(SPLIT_FOR_NAME_AND_VERSION) >= 0) {
            String strName = str.substring(0, str.indexOf(SPLIT_FOR_NAME_AND_VERSION));
            String strVersion = str.substring(str.indexOf(SPLIT_FOR_NAME_AND_VERSION) 
                    + SPLIT_FOR_NAME_AND_VERSION.length(), str.length());
            return new FeatureImpl(strName, strVersion);
        } else {
            return new FeatureImpl(str);
        }
                
        
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FeatureImpl feature = (FeatureImpl) o;

        if (!name.equals(feature.name)) return false;
        if (!version.equals(feature.version)) return false;

        return true;
    }

    public int hashCode() {
        int result = name.hashCode();
        result = 31 * result + version.hashCode();
        return result;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



