|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.propono.atom.common.Workspace
public class Workspace
Models an Atom workspace.
Constructor Summary | |
---|---|
Workspace(String title,
String titleType)
Collection MUST have title. |
Method Summary | |
---|---|
void |
addCollection(Collection col)
Add new collection to workspace |
static Workspace |
elementToWorkspace(org.jdom.Element element)
Deserialize a Atom workspace XML element into an object |
Collection |
findCollection(String title,
String contentType)
Find collection by title and/or content-type. |
List |
getCollections()
Iterate over collections in workspace |
String |
getTitle()
DefaultWorkspace must have a human readable title |
String |
getTitleType()
Get title type ("text", "html", "xhtml" or MIME content-type) |
void |
setTitle(String title)
Set title of workspace. |
void |
setTitleType(String titleType)
Set title type ("text", "html", "xhtml" or MIME content-type) |
static org.jdom.Element |
workspaceToElement(Workspace space)
Serialize an AtomService.DefaultWorkspace object into an XML element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Workspace(String title, String titleType)
title
- Title for collectiontitleType
- Content type of title (null for plain text)Method Detail |
---|
public List getCollections()
public void addCollection(Collection col)
public String getTitle()
public void setTitle(String title)
public String getTitleType()
public void setTitleType(String titleType)
public Collection findCollection(String title, String contentType)
title
- Title or null to match all titles.contentType
- Content-type or null to match all content-types.
public static Workspace elementToWorkspace(org.jdom.Element element)
public static org.jdom.Element workspaceToElement(Workspace space)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |