Package org.wso2.carbon.registry.api
Class Tag
java.lang.Object
org.wso2.carbon.registry.api.Tag
Represents a tag and its meta-data. Instances of this class is returned from the Registry
interface, when tags for a given resource path is queried.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the tag count.Get the tag name.voidsetTagCount(long tagCount) Set the the number of times the same tag has been used.voidsetTagName(String tagName) Set the tag name.
-
Field Details
-
tagName
Name of the tag. This may contain spaces. -
tagCount
protected long tagCountNumber of taggings done using this tag. If a Tag object is returned as a result of a Registry.getTags(String resourcePath) method, then this contains the number of users who tagged the given resource using this tag.
-
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
getTagName
Get the tag name.- Returns:
- the tag name.
-
setTagName
Set the tag name.- Parameters:
tagName- the tag name.
-
setTagCount
public void setTagCount(long tagCount) Set the the number of times the same tag has been used.- Parameters:
tagCount- the number of times the same tag has been used.
-
getTagCount
public long getTagCount()Get the tag count.- Returns:
- the tag count.
-