|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.purl.sword.base.Workspace
public class Workspace
Represents an Atom Publishing Protocol Workspace element.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The element name that is used in the textual representatin of the XML data. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Workspace()
Create a new instance of the workspace, with no title. |
|
Workspace(String title)
Create a new instance of the workspace with the specified title. |
|
| Method Summary | |
|---|---|
void |
addCollection(Collection collection)
Add a collection to the Workspace. |
Iterator<Collection> |
collectionIterator()
Get an Iterator over the collections. |
List<Collection> |
getCollections()
Get a list of the collections |
String |
getTitle()
Get the content of the Title element. |
nu.xom.Element |
marshall()
Marshall the data in this element to an Element. |
void |
setTitle(String title)
Set the title. |
void |
unmarshall(nu.xom.Element workspace)
Unmarshall the workspace element into the data in this object. |
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
dateToString, getQualifiedName, getQualifiedName, isInstanceOf, stringToDate, unmarshallBoolean, unmarshallDate, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Workspace()
public Workspace(String title)
title - The title.| Method Detail |
|---|
public void setTitle(String title)
ContentType.TEXT
title - The title.public String getTitle()
public void addCollection(Collection collection)
collection - The collection.public Iterator<Collection> collectionIterator()
public List<Collection> getCollections()
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element workspace)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceworkspace - The data to unmarshall.
UnmarshallException - If the element does not contain a
workspace element or if there are problems
accessing the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||