|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wink.common.model.atom.AtomCommonAttributes
org.apache.wink.common.model.app.AppCollection
public class AppCollection
The "app:collection" Element Per RFC5023
The "app:collection" Element
The "app:collection" element describes a Collection. The app:
collection element MUST contain one atom:title element.
The app:collection element MAY contain any number of app:accept
elements, indicating the types of representations accepted by the
Collection. The order of such elements is not significant.
The app:collection element MAY contain any number of app:categories
elements.
appCollection =
element app:collection {
appCommonAttributes,
attribute href { atomURI },
( atomTitle
& appAccept*
& appCategories*
& extensionSansTitleElement* )
}
o The "href" Attribute
The app:collection element MUST contain an "href" attribute, whose
value gives the IRI of the Collection.
o The "atom:title" Element
The "atom:title" element is defined in [RFC4287] and gives a human-
readable title for the Collection.
| Field Summary | |
|---|---|
protected java.util.List<AppAccept> |
accept
|
protected java.util.List<org.w3c.dom.Element> |
any
|
protected java.util.List<AppCategories> |
categories
|
protected java.lang.String |
href
|
protected AtomText |
title
|
| Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes |
|---|
base, lang |
| Constructor Summary | |
|---|---|
AppCollection()
|
|
| Method Summary | |
|---|---|
java.util.List<AppAccept> |
getAccept()
Gets the accept list |
java.util.List<org.w3c.dom.Element> |
getAny()
Gets extension elements |
java.util.List<AppCategories> |
getCategories()
Gets the categories. |
java.lang.String |
getHref()
Gets the value of href. |
AtomText |
getTitle()
Gets the value of title. |
void |
setHref(java.lang.String value)
Sets the value of href. |
void |
setTitle(AtomText value)
Sets the value of title. |
| Methods inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes |
|---|
getBase, getLang, getOtherAttributes, setBase, setLang, toSynd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AtomText title
protected java.util.List<AppAccept> accept
protected java.util.List<AppCategories> categories
protected java.util.List<org.w3c.dom.Element> any
protected java.lang.String href
| Constructor Detail |
|---|
public AppCollection()
| Method Detail |
|---|
public AtomText getTitle()
public void setTitle(AtomText value)
public java.util.List<AppAccept> getAccept()
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 accept property.
For example, to add a new item, do as follows:
getAccept().add(newItem);
Objects of the following type(s) are allowed in the list
AppAccept
public java.util.List<AppCategories> getCategories()
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 categories property.
For example, to add a new item, do as follows:
getCategories().add(newItem);
Objects of the following type(s) are allowed in the list
AppCategories
public java.util.List<org.w3c.dom.Element> getAny()
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 any property.
For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list Element
public java.lang.String getHref()
public void setHref(java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||