|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.app.AppCategories
public class AppCategories
The "app:categories" Element Per RFC5023
The "app:categories" Element The root of a Category Document is the "app:categories" element. An app:categories element can contain zero or more atom:category elements from the Atom Syndication Format [RFC4287] namespace ("http://www.w3.org/2005/Atom"). An atom:category child element that has no "scheme" attribute inherits the attribute from its app:categories parent. An atom: category child element with an existing "scheme" attribute does not inherit the "scheme" value of its app:categories parent element. atomCategory = element atom:category { atomCommonAttributes, attribute term { text }, attribute scheme { atomURI }?, attribute label { text }?, undefinedContent } appInlineCategories = element app:categories { attribute fixed { "yes" | "no" }?, attribute scheme { atomURI }?, (atomCategory*, undefinedContent) } appOutOfLineCategories = element app:categories { attribute href { atomURI }, undefinedContent } appCategories = appInlineCategories | appOutOfLineCategories o Attributes of "app:categories" 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.
Field Summary | |
---|---|
protected java.util.List<AtomCategory> |
category
|
protected AppYesNo |
fixed
|
protected java.lang.String |
href
|
protected java.lang.String |
scheme
|
Constructor Summary | |
---|---|
AppCategories()
|
Method Summary | |
---|---|
void |
checkValidity()
|
java.util.List<AtomCategory> |
getCategory()
Gets the value of the category property. |
AppYesNo |
getFixed()
Gets the value of the fixed property. |
java.lang.String |
getHref()
Gets the value of the href property. |
static javax.xml.bind.Marshaller |
getMarshaller()
|
JAXBNamespacePrefixMapper |
getNamespacePrefixMapper()
|
java.lang.String |
getScheme()
Gets the value of the scheme property. |
static javax.xml.bind.Unmarshaller |
getUnmarshaller()
|
boolean |
isFixedSet()
|
boolean |
isInline()
|
void |
setFixed(AppYesNo 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. |
static AppCategories |
unmarshal(java.io.Reader reader)
Convenience method for creating an AppCategories from xml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<AtomCategory> category
protected AppYesNo fixed
protected java.lang.String scheme
protected java.lang.String href
Constructor Detail |
---|
public AppCategories()
Method Detail |
---|
public static javax.xml.bind.Marshaller getMarshaller()
public static javax.xml.bind.Unmarshaller getUnmarshaller()
public static AppCategories unmarshal(java.io.Reader reader)
reader
- input reader
public JAXBNamespacePrefixMapper getNamespacePrefixMapper()
getNamespacePrefixMapper
in interface org.apache.wink.common.internal.model.NamespacePrefixMapperProvider
public java.util.List<AtomCategory> getCategory()
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
AtomCategory
public AppYesNo getFixed()
AppYesNo
public void setFixed(AppYesNo value)
value
- allowed object is AppYesNo
public boolean isFixedSet()
public java.lang.String getScheme()
String
public void setScheme(java.lang.String value)
value
- allowed object is String
public java.lang.String getHref()
String
public void setHref(java.lang.String value)
value
- allowed object is String
public boolean isInline()
public void checkValidity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |