org.wso2.carbon.registry.api
Class Tag

java.lang.Object
  extended by 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.


Field Summary
protected  long tagCount
          Number of taggings done using this tag.
protected  String tagName
          Name of the tag.
 
Constructor Summary
Tag()
           
 
Method Summary
 long getTagCount()
          Get the tag count.
 String getTagName()
          Get the tag name.
 void setTagCount(long tagCount)
          Set the the number of times the same tag has been used.
 void setTagName(String tagName)
          Set the tag name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Constructor Detail

Tag

public 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.


Copyright © 2014 WSO2 Inc. All rights reserved.