| java.lang.Object org.clapper.curn.PersistentMetadataGroup
PersistentMetadataGroup | public class PersistentMetadataGroup (Code) | | Contains one group of persistent metadata about a feed or an item.
Persistent metadata consists of name/value pairs aggregated into namespaces.
An instance of this class represents one namespace's worth of metadata for
a feed or an item.
version: $Revision: 6547 $ |
PersistentMetadataGroup | public PersistentMetadataGroup(String namespace)(Code) | | Creates a new instance of PersistentMetadataGroup.
Parameters: namespace - the namespace for this group |
addMetadata | public void addMetadata(Map<String, String> metadata)(Code) | | Add an entire map-ful of metadata to this group.
Parameters: metadata - the data |
addMetadataItem | public void addMetadataItem(String name, String value)(Code) | | Add a name/value pair to this metadata group.
Parameters: name - the name Parameters: value - the value |
equals | public boolean equals(Object o)(Code) | | Determine whether this object is equivalent to another. A
PersistentMetadataGroup object is equivalent to another
only if (a) both objects have the same namespace, and (b) both
objects contain the same data.
Parameters: o - the other object |
getMetadata | public Map<String, String> getMetadata()(Code) | | Get the name/value pairs (i.e., the actual data) associated with this
metadata group.
a Map of name/value pair data |
getNamespace | public String getNamespace()(Code) | | Get the namespace for this group.
the namespace |
hashCode | public int hashCode()(Code) | | Get the hash code. Items of this type are hashed by namespace.
the hash code |
|
|