|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 List<AtomCategory> |
category
|
protected AppYesNo |
fixed
|
protected String |
href
|
protected String |
scheme
|
| Constructor Summary | |
|---|---|
AppCategories()
|
|
| Method Summary | |
|---|---|
void |
checkValidity()
|
List<AtomCategory> |
getCategory()
Gets the value of the category property. |
AppYesNo |
getFixed()
Gets the value of the fixed property. |
String |
getHref()
Gets the value of the href property. |
static javax.xml.bind.Marshaller |
getMarshaller()
|
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(String value)
Sets the value of the href property. |
void |
setScheme(String value)
Sets the value of the scheme property. |
static AppCategories |
unmarshal(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 List<AtomCategory> category
protected AppYesNo fixed
protected String scheme
protected 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(Reader reader)
reader - input reader
public 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()
AppYesNopublic void setFixed(AppYesNo value)
value - allowed object is AppYesNopublic boolean isFixedSet()
public String getScheme()
Stringpublic void setScheme(String value)
value - allowed object is Stringpublic String getHref()
Stringpublic void setHref(String value)
value - allowed object is Stringpublic boolean isInline()
public void checkValidity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||