org.apache.abdera.model
Interface Workspace

All Superinterfaces:
Base, java.lang.Cloneable, Element, ExtensibleElement, java.io.Serializable

public interface Workspace
extends ExtensibleElement

An Atom Publishing Protocol Introspection Document workspace element.

Per APP Draft-08

  The "app:workspace" element contains information elements about the
  collections of resources available for editing.  The app:workspace
  element MUST contain one or more app:collection elements.

  appWorkspace =
     element app:workspace {
        appCommonAttributes,
        attribute title { text },
        ( appCollection+
          & extensionElement* )
     }

 


Method Summary
 void addCollection(Collection collection)
          Adds an individual collection to this workspace
 Collection addCollection(java.lang.String title, java.lang.String href)
          Adds an individual collection to this workspace
 Collection getCollection(java.lang.String title)
          Returns the named collection
 java.util.List<Collection> getCollections()
          Returns the full set of collections in this workspace
 java.lang.String getTitle()
          APP Draft-08: The app:workspace element MUST contain a "title" attribute, which gives a human-readable name for the workspace.
 void setTitle(java.lang.String title)
          APP Draft-08: The app:workspace element MUST contain a "title" attribute, which gives a human-readable name for the workspace.
 
Methods inherited from interface org.apache.abdera.model.ExtensibleElement
addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
 
Methods inherited from interface org.apache.abdera.model.Element
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getTitle

java.lang.String getTitle()
APP Draft-08: The app:workspace element MUST contain a "title" attribute, which gives a human-readable name for the workspace. This attribute is Language-Sensitive.


setTitle

void setTitle(java.lang.String title)
APP Draft-08: The app:workspace element MUST contain a "title" attribute, which gives a human-readable name for the workspace. This attribute is Language-Sensitive.


getCollections

java.util.List<Collection> getCollections()
Returns the full set of collections in this workspace


getCollection

Collection getCollection(java.lang.String title)
Returns the named collection


addCollection

void addCollection(Collection collection)
Adds an individual collection to this workspace


addCollection

Collection addCollection(java.lang.String title,
                         java.lang.String href)
                         throws java.net.URISyntaxException
Adds an individual collection to this workspace

Throws:
java.net.URISyntaxException