public class GenericMetadataFacet
implements MetadataFacet
-{
+{
private Map<String, String> additionalProperties;
-
+
public static final String FACET_ID = "org.apache.archiva.metadata.generic";
-
+
public String getFacetId()
{
return FACET_ID;
}
public void fromProperties( Map<String, String> properties )
- {
- if( additionalProperties == null )
+ {
+ if ( additionalProperties == null )
{
- additionalProperties = new TreeMap<String, String>();
+ additionalProperties = new TreeMap<String, String>();
}
-
- for( String key : properties.keySet() )
+
+ for ( String key : properties.keySet() )
{
additionalProperties.put( key, properties.get( key ) );
}
public Map<String, String> toProperties()
{
Map<String, String> properties = new TreeMap<String, String>();
-
- if( additionalProperties != null )
+
+ if ( additionalProperties != null )
{
- for( String key : additionalProperties.keySet() )
+ for ( String key : additionalProperties.keySet() )
{
properties.put( key, additionalProperties.get( key ) );
}
}
-
+
return properties;
}
-
+
public Map<String, String> getAdditionalProperties()
{
return additionalProperties;
import org.apache.archiva.metadata.model.MetadataFacetFactory;
/**
- * @plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.generic"
+ * @plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory"
+ * role-hint="org.apache.archiva.metadata.generic"
*/
public class GenericMetadataFacetFactory
implements MetadataFacetFactory