org.wso2.carbon.registry.core
Class TaggedResourcePath

java.lang.Object
  extended by org.wso2.carbon.registry.core.TaggedResourcePath

public class TaggedResourcePath
extends Object

Contains a resource path and tagging details of tags on that resource. Instances of this class is returned from the tag searches. Tag searches may be performed on multiple tags. This class only contains the tag counts for the tags that included in the search. e.g. If the search is for tags java, jsp and programming and if the resource /books/computer/Java Web Development matches the search, counts are only contained for the tags java, jsp and programming although that resource may have many other tags like internet, web, servlets.


Constructor Summary
TaggedResourcePath()
           
 
Method Summary
 void addTagCount(String tag, long count)
          Method to add the tag count.
 String getResourcePath()
          Method to get the resource path.
 long getTagCount()
          Method to get the tag count.
 Map<String,String> getTagCounts()
          Method to get the tag count.
 void setResourcePath(String resourcePath)
          Method to get the resource path.
 void setTagCount(long tagCount)
          Method to set the tag count.
 void setTagCounts(Map<String,String> tagCounts)
          Method to set the tag count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaggedResourcePath

public TaggedResourcePath()
Method Detail

getResourcePath

public String getResourcePath()
Method to get the resource path.

Returns:
the resource path.

setResourcePath

public void setResourcePath(String resourcePath)
Method to get the resource path.

Parameters:
resourcePath - the resource path.

getTagCount

public long getTagCount()
Method to get the tag count.

Returns:
the tag count.

setTagCount

public void setTagCount(long tagCount)
Method to set the tag count.

Parameters:
tagCount - the tag count.

getTagCounts

public Map<String,String> getTagCounts()
Method to get the tag count.

Returns:
the tag count.

setTagCounts

public void setTagCounts(Map<String,String> tagCounts)
Method to set the tag count.

Parameters:
tagCounts - the tag count.

addTagCount

public void addTagCount(String tag,
                        long count)
Method to add the tag count.

Parameters:
tag - the tag.
count - the count.


Copyright © 2010. All Rights Reserved.