public class TaggableObject extends Object implements Taggable, Serializable
Constructor and Description |
---|
TaggableObject() |
Modifier and Type | Method and Description |
---|---|
void |
addTags(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(String... tags)
Determines whether this object has all of the tags specified by
tags . |
boolean |
hasAnyTags(String... tags)
Determines whether this object has any of the tags specified by
tags . |
void |
removeTags(String... tags)
Removes the tags specified in the
tags from object's tag list. |
public TagHolder getTags()
Taggable
NamedCache
to store tags as SOSS attributes. It should return a reference to
a TagHolder
object associated with this class.public boolean hasAllTags(String... tags) throws NamedCacheException
tags
.tags
- tag listtrue
if all tags are present, false
otherwiseNamedCacheException
- if unexpected exception occurspublic boolean hasAnyTags(String... tags) throws NamedCacheException
tags
.tags
- tag listtrue
if any tags are present, false
otherwiseNamedCacheException
- if unexpected exception occurspublic void addTags(String... tags) throws NamedCacheException
tags
to the object's tag list.tags
- tags to addNamedCacheException
- if unexpected exception occurspublic void removeTags(String... tags) throws NamedCacheException
tags
from object's tag list.tags
- tags to removeNamedCacheException
- if unexpected exception occurspublic void clearTags()
Copyright (C) 2007-2014 ScaleOut Software, Inc.