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

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

public class AppWorkspace
extends AtomCommonAttributes

The "app:workspace" Element Per RFC5023

 The "app:workspace" Element
 Workspaces are server-defined groups of Collections.  
 The "app:workspace" element contains zero or more app:collection elements
 describing the Collections of Resources available for editing.
 appWorkspace =
    element app:workspace {
       appCommonAttributes,
       ( atomTitle
         & appCollection*
         & extensionSansTitleElement* )
    }
 atomTitle = element atom:title { atomTextConstruct }
 
 o The "atom:title" Element
 
   The app:workspace element MUST contain one "atom:title" element (as
   defined in [RFC4287]), giving a human-readable title for the
   Workspace.
 


Field Summary
protected  List<Element> any
           
protected  List<AppCollection> collection
           
protected  AtomText title
           
 
Fields inherited from class org.apache.wink.common.model.atom.AtomCommonAttributes
base, lang
 
Constructor Summary
AppWorkspace()
           
 
Method Summary
 List<Element> getAny()
          Gets extension elements.
 List<AppCollection> getCollection()
          Gets the collections.
 AppCollection getCollection(String name)
           
 AtomText getTitle()
          Gets the value of title.
 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

title

protected AtomText title

collection

protected List<AppCollection> collection

any

protected List<Element> any
Constructor Detail

AppWorkspace

public AppWorkspace()
Method Detail

getTitle

public AtomText getTitle()
Gets the value of title.


setTitle

public void setTitle(AtomText value)
Sets the value of title.


getCollection

public List<AppCollection> getCollection()
Gets the collections.

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 collection.

For example, to add a new item, do as follows:

 getCollection().add(newItem);
 

Objects of the following type(s) are allowed in the list AppCollection


getCollection

public AppCollection getCollection(String name)

getAny

public List<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.

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-2012 The Apache Software Foundation. All Rights Reserved.