Modifier and Type | Method and Description |
---|---|
int |
add(ITag tag)
Adds a tag to this collection.
|
ITag |
get(int key)
Gets the tag for a given key.
|
ITag |
getClosingTag(String id)
Gets the closing tag for a given tag id.
|
int |
getKey(ITag tag)
Gets the key for a given tag.
|
ITag |
getOpeningTag(String id)
Gets the opening tag for a given tag id.
|
IStore |
getStore()
Gets the
IStore object that holds this set of tags. |
void |
remove(int key)
Removes the tag for a given key.
|
int |
size()
Gets the number of tags in this collection.
|
IStore getStore()
IStore
object that holds this set of tags.int size()
ITag get(int key)
key
- the key of the tag to retrieve.InvalidParameterException
- if there is not tag for the given key.int getKey(ITag tag)
tag
- the tag to lookup.void remove(int key)
key
- the key of the tag to remove.ITag getOpeningTag(String id)
id
- the id of the opening tag to retrieve.ITag getClosingTag(String id)
id
- the id of the closing tag to retrieve.int add(ITag tag)
tag
- the tag to add.InvalidParameterException
- if the id of the tag is already used or invalid,
or if the type of the tag is invalid.