|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rometools.propono.atom.common.Workspace
public class Workspace
Models an Atom workspace.
| Constructor Summary | |
|---|---|
Workspace(org.jdom.Element elem)
|
|
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) |
protected void |
parseWorkspaceElement(org.jdom.Element element)
Deserialize a Atom workspace XML element into an object |
void |
setTitle(String title)
Set title of workspace. |
void |
setTitleType(String titleType)
Set title type ("text", "html", "xhtml" or MIME content-type) |
org.jdom.Element |
workspaceToElement()
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)
public Workspace(org.jdom.Element elem)
throws ProponoException
ProponoException| 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)
throws ProponoException
ProponoExceptionpublic org.jdom.Element workspaceToElement()
protected void parseWorkspaceElement(org.jdom.Element element)
throws ProponoException
ProponoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||