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

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleCategoriesInfo
All Implemented Interfaces:
Serializable, Iterable<CategoryInfo>, CategoriesInfo

public class SimpleCategoriesInfo
extends Object
implements CategoriesInfo, Serializable

See Also:
Serialized Form

Constructor Summary
SimpleCategoriesInfo()
           
SimpleCategoriesInfo(boolean fixed)
           
SimpleCategoriesInfo(String href)
           
SimpleCategoriesInfo(String scheme, boolean fixed, CategoryInfo... categories)
           
 
Method Summary
 SimpleCategoriesInfo addCategoryInfo(CategoryInfo... categories)
           
 Categories asCategoriesElement(RequestContext request)
          Convert this into an instance of the FOM Categories interface
 boolean equals(Object obj)
           
 String getHref(RequestContext request)
          Return the value of the app:categories element href attribute or null if the href should be omitted
 String getScheme(RequestContext request)
          Return the value of the app:categories element scheme attribute or null if the scheme should be omitted
 int hashCode()
           
 boolean isFixed(RequestContext request)
          Return true of the app:categories element fixed attribute should be set
 Iterator<CategoryInfo> iterator()
           
 SimpleCategoriesInfo setCategoryInfo(CategoryInfo... categories)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCategoriesInfo

public SimpleCategoriesInfo()

SimpleCategoriesInfo

public SimpleCategoriesInfo(boolean fixed)

SimpleCategoriesInfo

public SimpleCategoriesInfo(String href)

SimpleCategoriesInfo

public SimpleCategoriesInfo(String scheme,
                            boolean fixed,
                            CategoryInfo... categories)
Method Detail

getHref

public String getHref(RequestContext request)
Description copied from interface: CategoriesInfo
Return the value of the app:categories element href attribute or null if the href should be omitted

Specified by:
getHref in interface CategoriesInfo

getScheme

public String getScheme(RequestContext request)
Description copied from interface: CategoriesInfo
Return the value of the app:categories element scheme attribute or null if the scheme should be omitted

Specified by:
getScheme in interface CategoriesInfo

isFixed

public boolean isFixed(RequestContext request)
Description copied from interface: CategoriesInfo
Return true of the app:categories element fixed attribute should be set

Specified by:
isFixed in interface CategoriesInfo

iterator

public Iterator<CategoryInfo> iterator()
Specified by:
iterator in interface Iterable<CategoryInfo>

addCategoryInfo

public SimpleCategoriesInfo addCategoryInfo(CategoryInfo... categories)

setCategoryInfo

public SimpleCategoriesInfo setCategoryInfo(CategoryInfo... categories)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

asCategoriesElement

public Categories asCategoriesElement(RequestContext request)
Description copied from interface: CategoriesInfo
Convert this into an instance of the FOM Categories interface

Specified by:
asCategoriesElement in interface CategoriesInfo


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