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.
  • Field Details

    • 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 Details

    • Tag

      public Tag()
  • Method Details

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