mirror of https://github.com/apache/archiva.git
fixed formatting
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@951241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d09f0872af
commit
f51b049d51
|
@ -27,11 +27,11 @@ import org.apache.archiva.metadata.model.MetadataFacet;
|
||||||
|
|
||||||
public class GenericMetadataFacet
|
public class GenericMetadataFacet
|
||||||
implements MetadataFacet
|
implements MetadataFacet
|
||||||
{
|
{
|
||||||
private Map<String, String> additionalProperties;
|
private Map<String, String> additionalProperties;
|
||||||
|
|
||||||
public static final String FACET_ID = "org.apache.archiva.metadata.generic";
|
public static final String FACET_ID = "org.apache.archiva.metadata.generic";
|
||||||
|
|
||||||
public String getFacetId()
|
public String getFacetId()
|
||||||
{
|
{
|
||||||
return FACET_ID;
|
return FACET_ID;
|
||||||
|
@ -43,13 +43,13 @@ public class GenericMetadataFacet
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fromProperties( Map<String, String> properties )
|
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 ) );
|
additionalProperties.put( key, properties.get( key ) );
|
||||||
}
|
}
|
||||||
|
@ -58,18 +58,18 @@ public class GenericMetadataFacet
|
||||||
public Map<String, String> toProperties()
|
public Map<String, String> toProperties()
|
||||||
{
|
{
|
||||||
Map<String, String> properties = new TreeMap<String, String>();
|
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 ) );
|
properties.put( key, additionalProperties.get( key ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, String> getAdditionalProperties()
|
public Map<String, String> getAdditionalProperties()
|
||||||
{
|
{
|
||||||
return additionalProperties;
|
return additionalProperties;
|
||||||
|
|
|
@ -23,7 +23,8 @@ import org.apache.archiva.metadata.model.MetadataFacet;
|
||||||
import org.apache.archiva.metadata.model.MetadataFacetFactory;
|
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
|
public class GenericMetadataFacetFactory
|
||||||
implements MetadataFacetFactory
|
implements MetadataFacetFactory
|
||||||
|
|
Loading…
Reference in New Issue