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, ( atomTitle & appCollection* & extensionElement* ) }
Modifier and Type | Method and Description |
---|---|
Workspace |
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 |
addMultipartCollection(java.lang.String title,
java.lang.String href)
Adds a multipart 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.util.List<Collection> |
getCollectionsThatAccept(javax.activation.MimeType... type)
Returns collections that accept the specified media types
|
java.util.List<Collection> |
getCollectionsThatAccept(java.lang.String... type)
Returns collections that accept the specified media types
|
Collection |
getCollectionThatAccepts(javax.activation.MimeType... type)
Returns a collection that accepts the specified media types
|
Collection |
getCollectionThatAccepts(java.lang.String... type)
Returns a collection that accepts the specified media types
|
java.lang.String |
getTitle()
Return the workspace title
|
Text |
getTitleElement()
Return the atom:title
|
Text |
setTitle(java.lang.String title)
Set the workspace title
|
Text |
setTitleAsHtml(java.lang.String title)
Set the workspace title as escaped HTML
|
Text |
setTitleAsXHtml(java.lang.String title)
Set the workspace title as XHTML
|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText
java.lang.String getTitle()
Text setTitle(java.lang.String title)
title
- The atom:title valueText setTitleAsHtml(java.lang.String title)
title
- The atom:title valueText setTitleAsXHtml(java.lang.String title)
title
- The atom:title valueText getTitleElement()
java.util.List<Collection> getCollections()
Collection getCollection(java.lang.String title)
title
- A collection titleWorkspace addCollection(Collection collection)
collection
- The collection to addCollection addCollection(java.lang.String title, java.lang.String href)
title
- The collection titlehref
- The collection HREFIRISyntaxException
- if the href is malformedCollection addMultipartCollection(java.lang.String title, java.lang.String href)
title
- The collection titlehref
- The collection HREFIRISyntaxException
- if the href is malformedCollection getCollectionThatAccepts(javax.activation.MimeType... type)
a
- listing of media types the collection must acceptCollection getCollectionThatAccepts(java.lang.String... type)
a
- listing of media types the collection must acceptjava.util.List<Collection> getCollectionsThatAccept(javax.activation.MimeType... type)
a
- listing of media types the collection must acceptjava.util.List<Collection> getCollectionsThatAccept(java.lang.String... type)
a
- listing of media types the collection must acceptCopyright © 2010 - 2020 Adobe. All Rights Reserved