org.apache.abdera.protocol.server.impl
Class SimpleCategoryInfo

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleCategoryInfo
All Implemented Interfaces:
Serializable, CategoryInfo

public class SimpleCategoryInfo
extends Object
implements CategoryInfo, Serializable

See Also:
Serialized Form

Constructor Summary
SimpleCategoryInfo(String term)
           
SimpleCategoryInfo(String term, String scheme)
           
SimpleCategoryInfo(String term, String scheme, String label)
           
 
Method Summary
 Category asCategoryElement(RequestContext request)
          Convert this into an instance of the FOM Category interface
 boolean equals(Object obj)
           
 String getLabel(RequestContext request)
          Return the value of the atom:category label attribute or null if the label should be omitted.
 String getScheme(RequestContext request)
          Return the value of the atom:category scheme attribute or null if the scheme should be omitted
 String getTerm(RequestContext request)
          Return the value of the atom:category term attribute.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCategoryInfo

public SimpleCategoryInfo(String term)

SimpleCategoryInfo

public SimpleCategoryInfo(String term,
                          String scheme)

SimpleCategoryInfo

public SimpleCategoryInfo(String term,
                          String scheme,
                          String label)
Method Detail

getLabel

public String getLabel(RequestContext request)
Description copied from interface: CategoryInfo
Return the value of the atom:category label attribute or null if the label should be omitted. This value is language-sensitive

Specified by:
getLabel in interface CategoryInfo

getScheme

public String getScheme(RequestContext request)
Description copied from interface: CategoryInfo
Return the value of the atom:category scheme attribute or null if the scheme should be omitted

Specified by:
getScheme in interface CategoryInfo

getTerm

public String getTerm(RequestContext request)
Description copied from interface: CategoryInfo
Return the value of the atom:category term attribute. This value MUST be provided

Specified by:
getTerm in interface CategoryInfo

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

asCategoryElement

public Category asCategoryElement(RequestContext request)
Description copied from interface: CategoryInfo
Convert this into an instance of the FOM Category interface

Specified by:
asCategoryElement in interface CategoryInfo


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.