public abstract class FacetedMetadata extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,MetadataFacet> |
facets
The facets to store, keyed by the Facet ID of the metadata.
|
| Constructor and Description |
|---|
FacetedMetadata() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFacet(MetadataFacet metadataFacet)
Add a new facet to the metadata.
|
MetadataFacet |
getFacet(String facetId)
Get a particular facet of metadata.
|
Collection<String> |
getFacetIds()
Get all the keys of the facets available on this metadata.
|
Collection<MetadataFacet> |
getFacetList()
Get all the facets available on this metadata.
|
Map<String,MetadataFacet> |
getFacets()
Get all available facets as a Map (typically used by bean rendering, such as in Archiva's JSPs).
|
MetadataFacet |
removeFacet(String facetId) |
private Map<String,MetadataFacet> facets
public FacetedMetadata()
public void addFacet(MetadataFacet metadataFacet)
metadataFacet - the facet to addpublic MetadataFacet getFacet(String facetId)
facetId - the facet IDpublic MetadataFacet removeFacet(String facetId)
public Collection<MetadataFacet> getFacetList()
public Collection<String> getFacetIds()
public Map<String,MetadataFacet> getFacets()
facetsCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.