Class AppCategories
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.atom.app.AppCommonAttributes
-
- org.jboss.resteasy.plugins.providers.atom.app.AppCategories
-
- All Implemented Interfaces:
java.io.Serializable
public class AppCategories extends AppCommonAttributes
The app:categories element can contain a "fixed" attribute, with a value of either "yes" or "no", indicating whether the list of categories is a fixed or an open set. The absence of the "fixed" attribute is equivalent to the presence of a "fixed" attribute with a value of "no". Alternatively, the app:categories element MAY contain an "href" attribute, whose value MUST be an IRI reference identifying a Category Document. If the "href" attribute is provided, the app: categories element MUST be empty and MUST NOT have the "fixed" or "scheme" attributes.- Version:
- $Revision: 1 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppCategories()
AppCategories(java.util.List<Category> category, java.lang.Boolean fixed, java.lang.String scheme, java.lang.String href)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Category>
getCategory()
Gets the value of the category property.java.lang.String
getHref()
Gets the value of the href property.java.lang.String
getScheme()
Gets the value of the scheme property.java.lang.Boolean
isFixed()
Gets the value of the fixed property.void
setFixed(java.lang.Boolean value)
Sets the value of the fixed property.void
setHref(java.lang.String value)
Sets the value of the href property.void
setScheme(java.lang.String value)
Sets the value of the scheme property.-
Methods inherited from class org.jboss.resteasy.plugins.providers.atom.app.AppCommonAttributes
getBase, getLang, getOtherAttributes, getSpace, setBase, setLang, setSpace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
category
protected java.util.List<Category> category
-
fixed
protected java.lang.Boolean fixed
-
scheme
protected java.lang.String scheme
-
href
protected java.lang.String href
-
-
Constructor Detail
-
AppCategories
public AppCategories()
-
AppCategories
public AppCategories(java.util.List<Category> category, java.lang.Boolean fixed, java.lang.String scheme, java.lang.String href)
-
-
Method Detail
-
getCategory
public java.util.List<Category> getCategory()
Gets the value of the category property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the category property.For example, to add a new item, do as follows:
getCategory().add(newItem);
Objects of the following type(s) are allowed in the list
AppCategoryType
-
isFixed
public java.lang.Boolean isFixed()
Gets the value of the fixed property.- Returns:
- possible object is
Boolean
-
setFixed
public void setFixed(java.lang.Boolean value)
Sets the value of the fixed property.- Parameters:
value
- allowed object isBoolean
-
getScheme
public java.lang.String getScheme()
Gets the value of the scheme property.- Returns:
- possible object is
String
-
setScheme
public void setScheme(java.lang.String value)
Sets the value of the scheme property.- Parameters:
value
- allowed object isString
-
getHref
public java.lang.String getHref()
Gets the value of the href property.- Returns:
- possible object is
String
-
setHref
public void setHref(java.lang.String value)
Sets the value of the href property.- Parameters:
value
- allowed object isString
-
-