|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.atom.AtomCommonAttributes org.apache.wink.common.model.app.AppService
public class AppService
The "app:service" Element Per RFC5023
The root of a Service Document is the "app:service" element. The app:service element is the container for service information associated with one or more Workspaces. An app:service element MUST contain one or more app:workspace elements. namespace app = "http://www.w3.org/2007/app" start = appService appService = element app:service { appCommonAttributes, ( appWorkspace+ & extensionElement* ) }
Field Summary | |
---|---|
protected java.util.List<org.w3c.dom.Element> |
any
|
protected java.util.List<AppWorkspace> |
workspace
|
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes |
---|
base, lang |
Constructor Summary | |
---|---|
AppService()
|
Method Summary | |
---|---|
java.util.List<org.w3c.dom.Element> |
getAny()
Gets extension elements |
static javax.xml.bind.Marshaller |
getMarshaller()
|
static javax.xml.bind.Unmarshaller |
getUnmarshaller()
|
java.util.List<AppWorkspace> |
getWorkspace()
Gets the workspaces |
AppWorkspace |
getWorkspace(java.lang.String title)
|
static AppService |
unmarshal(java.io.Reader reader)
Convenience method for creating an AppService from xml |
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 java.util.List<AppWorkspace> workspace
protected java.util.List<org.w3c.dom.Element> any
Constructor Detail |
---|
public AppService()
Method Detail |
---|
public static javax.xml.bind.Marshaller getMarshaller()
public static javax.xml.bind.Unmarshaller getUnmarshaller()
public static AppService unmarshal(java.io.Reader reader)
reader
- input reader
public java.util.List<AppWorkspace> getWorkspace()
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 workspace property.
For example, to add a new item, do as follows:
getWorkspace().add(newItem);
Objects of the following type(s) are allowed in the list
AppWorkspace
public AppWorkspace getWorkspace(java.lang.String title)
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |