|
||||||||||
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 List<Element> |
any
|
protected List<AppWorkspace> |
workspace
|
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes |
---|
base, lang |
Constructor Summary | |
---|---|
AppService()
|
Method Summary | |
---|---|
List<Element> |
getAny()
Gets extension elements |
static javax.xml.bind.Marshaller |
getMarshaller()
|
static javax.xml.bind.Unmarshaller |
getUnmarshaller()
|
List<AppWorkspace> |
getWorkspace()
Gets the workspaces |
AppWorkspace |
getWorkspace(String title)
|
static AppService |
unmarshal(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 List<AppWorkspace> workspace
protected List<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(Reader reader)
reader
- input reader
public 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(String title)
public List<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 |