org.apache.wink.common.model.app
Class AppService

java.lang.Object
  extended by org.apache.wink.common.model.atom.AtomCommonAttributes
      extended by org.apache.wink.common.model.app.AppService

public class AppService
extends AtomCommonAttributes

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

workspace

protected java.util.List<AppWorkspace> workspace

any

protected java.util.List<org.w3c.dom.Element> any
Constructor Detail

AppService

public AppService()
Method Detail

getMarshaller

public static javax.xml.bind.Marshaller getMarshaller()

getUnmarshaller

public static javax.xml.bind.Unmarshaller getUnmarshaller()

unmarshal

public static AppService unmarshal(java.io.Reader reader)
Convenience method for creating an AppService from xml

Parameters:
reader - input reader
Returns:
AppService instance from the input

getWorkspace

public java.util.List<AppWorkspace> getWorkspace()
Gets the workspaces

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


getWorkspace

public AppWorkspace getWorkspace(java.lang.String title)

getAny

public java.util.List<org.w3c.dom.Element> getAny()
Gets extension elements

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



Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.