| |
|
| java.lang.Object org.purl.sword.base.XmlElement org.purl.sword.base.Workspace
Field Summary | |
final public static String | ELEMENT_NAME The element name that is used in the textual representatin of the XML data. |
Constructor Summary | |
public | Workspace() Create a new instance of the workspace, with no title. | public | Workspace(String title) Create a new instance of the workspace with the specified title. |
ELEMENT_NAME | final public static String ELEMENT_NAME(Code) | | The element name that is used in the textual representatin of the XML data.
|
Workspace | public Workspace()(Code) | | Create a new instance of the workspace, with no title.
|
Workspace | public Workspace(String title)(Code) | | Create a new instance of the workspace with the specified title.
Parameters: title - The title. |
addCollection | public void addCollection(Collection collection)(Code) | | Add a collection to the Workspace.
Parameters: collection - The collection. |
collectionIterator | public Iterator<Collection> collectionIterator()(Code) | | Get an Iterator over the collections.
An iterator. |
getTitle | public String getTitle()(Code) | | Get the content of the Title element.
The title. |
marshall | public Element marshall()(Code) | | Marshall the data in this element to an Element.
An element that contains the data in this object. |
setTitle | public void setTitle(String title)(Code) | | Set the title. The type for the title will be set to
ContentType.TEXT
Parameters: title - The title. |
unmarshall | public void unmarshall(Element workspace) throws UnmarshallException(Code) | | Unmarshall the workspace element into the data in this object.
throws: UnmarshallException - If the element does not contain aworkspace element or if there are problemsaccessing the data. |
|
|
|