| Constructor and Description |
|---|
TaggableObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTags(java.lang.String... tags)
Adds the tags specified in the
tags to the object's tag list. |
void |
clearTags()
Clears all tags from the object's tag list.
|
TagHolder |
getTags()
Method used by
NamedCache to store tags as SOSS attributes. |
boolean |
hasAllTags(java.lang.String... tags)
Determines whether this object has all of the tags specified by
tags. |
boolean |
hasAnyTags(java.lang.String... tags)
Determines whether this object has any of the tags specified by
tags. |
void |
removeTags(java.lang.String... tags)
Removes the tags specified in the
tags from object's tag list. |
public TagHolder getTags()
TaggableNamedCache to store tags as SOSS attributes. It should return a reference to
a TagHolder object associated with this class.public boolean hasAllTags(java.lang.String... tags)
throws NamedCacheException
tags.tags - tag listtrue if all tags are present, false otherwiseNamedCacheException - if unexpected exception occurspublic boolean hasAnyTags(java.lang.String... tags)
throws NamedCacheException
tags.tags - tag listtrue if any tags are present, false otherwiseNamedCacheException - if unexpected exception occurspublic void addTags(java.lang.String... tags)
throws NamedCacheException
tags to the object's tag list.tags - tags to addNamedCacheException - if unexpected exception occurspublic void removeTags(java.lang.String... tags)
throws NamedCacheException
tags from object's tag list.tags - tags to removeNamedCacheException - if unexpected exception occurspublic void clearTags()