Apache Abdera API

org.apache.abdera.protocol.server
Interface CategoryInfo


public interface CategoryInfo

Metadata interface used by WorkspaceManager and Provider implementations to construct Atompub Service Documents. The CategoryInfo interface provides information used to construct an atom:category element within an app:categories


Method Summary
 Category asCategoryElement(RequestContext request)
          Convert this into an instance of the FOM Category interface
 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.
 

Method Detail

getScheme

String getScheme(RequestContext request)
Return the value of the atom:category scheme attribute or null if the scheme should be omitted


getTerm

String getTerm(RequestContext request)
Return the value of the atom:category term attribute. This value MUST be provided


getLabel

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


asCategoryElement

Category asCategoryElement(RequestContext request)
Convert this into an instance of the FOM Category interface


Apache Abdera API

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