org.apache.abdera.model
Interface Service

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

public interface Service
extends ExtensibleElement

Represents the root of an Atom Publishing Protocol Introspection Document.

Per APP Draft-08:

  The root of an introspection document is the "app:service" element.

  The "app:service" element is the container for introspection
  information associated with one or more workspaces.  An app:service
  element MUST contain one or more app:workspace elements.
  
  appService =
     element app:service {
        appCommonAttributes,
       ( appWorkspace+
          & extensionElement* )
     }
 


Method Summary
 Workspace addWorkspace(java.lang.String title)
          Add an individual workspace
 void addWorkspace(Workspace workspace)
          Add an individual workspace
 Collection getCollection(java.lang.String workspace, java.lang.String collection)
          Returns the named collection
 Workspace getWorkspace(java.lang.String title)
          Return the named workspace
 java.util.List<Workspace> getWorkspaces()
          Return the complete set of workspaces
 
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

getWorkspaces

java.util.List<Workspace> getWorkspaces()
Return the complete set of workspaces


getWorkspace

Workspace getWorkspace(java.lang.String title)
Return the named workspace


addWorkspace

void addWorkspace(Workspace workspace)
Add an individual workspace


addWorkspace

Workspace addWorkspace(java.lang.String title)
Add an individual workspace


getCollection

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