Package org.wso2.carbon.registry.api
Class Tag
- java.lang.Object
-
- org.wso2.carbon.registry.api.Tag
-
public class Tag extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTagCount()Get the tag count.StringgetTagName()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 Detail
-
tagName
protected String tagName
Name of the tag. This may contain spaces.
-
tagCount
protected long tagCount
Number 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.
-
-
Method Detail
-
getTagName
public String getTagName()
Get the tag name.- Returns:
- the tag name.
-
setTagName
public void setTagName(String tagName)
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.
-
-