|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Workspace
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* ) }
Method Summary | |
---|---|
Workspace |
addCollection(Collection collection)
Adds an individual collection to this workspace |
Collection |
addCollection(String title,
String href)
Adds an individual collection to this workspace |
Collection |
addMultipartCollection(String title,
String href)
Adds a multipart collection to this workspace |
Collection |
getCollection(String title)
Returns the named collection |
List<Collection> |
getCollections()
Returns the full set of collections in this workspace |
List<Collection> |
getCollectionsThatAccept(javax.activation.MimeType... type)
Returns collections that accept the specified media types |
List<Collection> |
getCollectionsThatAccept(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(String... type)
Returns a collection that accepts the specified media types |
String |
getTitle()
Return the workspace title |
Text |
getTitleElement()
Return the atom:title |
Text |
setTitle(String title)
Set the workspace title |
Text |
setTitleAsHtml(String title)
Set the workspace title as escaped HTML |
Text |
setTitleAsXHtml(String title)
Set the workspace title as XHTML |
Methods inherited from interface org.apache.abdera.model.ExtensibleElement |
---|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
Methods inherited from interface org.apache.abdera.model.Element |
---|
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 |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
String getTitle()
Text setTitle(String title)
title
- The atom:title value
Text setTitleAsHtml(String title)
title
- The atom:title value
Text setTitleAsXHtml(String title)
title
- The atom:title value
Text getTitleElement()
List<Collection> getCollections()
Collection getCollection(String title)
title
- A collection title
Workspace addCollection(Collection collection)
collection
- The collection to addCollection addCollection(String title, String href)
title
- The collection titlehref
- The collection HREF
IRISyntaxException
- if the href is malformedCollection addMultipartCollection(String title, String href)
title
- The collection titlehref
- The collection HREF
IRISyntaxException
- if the href is malformedCollection getCollectionThatAccepts(javax.activation.MimeType... type)
a
- listing of media types the collection must accept
Collection getCollectionThatAccepts(String... type)
a
- listing of media types the collection must accept
List<Collection> getCollectionsThatAccept(javax.activation.MimeType... type)
a
- listing of media types the collection must accept
List<Collection> getCollectionsThatAccept(String... type)
a
- listing of media types the collection must accept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |