public class MetadataTags extends java.lang.Object implements java.lang.Iterable<MetadataTag>
Constructor and Description |
---|
MetadataTags() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(MetadataTag tag)
Adds a tag to the set of tags
|
boolean |
contains(MetadataTag tag)
Return true if this set contains the given tag object.
|
boolean |
contains(java.lang.String name)
Returns true if this set contains a tag with the given name.
|
int |
count()
Returns the number of tags in this set
|
MetadataTag |
getTag(java.lang.String name)
Gets a tag from the set with the given name
|
java.util.Iterator<MetadataTag> |
iterator()
Returns an iterator that iterates over the set of tags.
|
void |
removeTag(MetadataTag tag)
Removes a tag from the set of tags
|
public void addTag(MetadataTag tag)
tag
- the tag to addpublic void removeTag(MetadataTag tag)
tag
- the tag to removepublic MetadataTag getTag(java.lang.String name)
name
- the name to search for.public boolean contains(java.lang.String name)
name
- the name to search forpublic boolean contains(MetadataTag tag)
tag
- the tag to search forpublic java.util.Iterator<MetadataTag> iterator()
iterator
in interface java.lang.Iterable<MetadataTag>
public int count()