|
||||||||||
| 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
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| 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. |
static XmlName |
elementName()
|
List<Collection> |
getCollections()
Get a list of the collections |
String |
getTitle()
Get the content of the Title element. |
protected void |
initialise()
Initialise the object, ready for use. |
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. |
SwordValidationInfo |
unmarshall(nu.xom.Element workspace,
Properties validationProperties)
|
protected SwordValidationInfo |
validate(ArrayList<SwordValidationInfo> existing,
Properties validationContext)
|
SwordValidationInfo |
validate(Properties validationContext)
|
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
createValidAttributeInfo, getQualifiedName, getQualifiedName, getQualifiedNameWithPrefix, getXmlName, handleIncorrectElement, isInstanceOf, isInstanceOf, processUnexpectedAttributes, processUnexpectedAttributes, unmarshallBoolean, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Workspace()
public Workspace(String title)
title - The title.| Method Detail |
|---|
public static XmlName elementName()
protected void initialise()
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.
public SwordValidationInfo unmarshall(nu.xom.Element workspace,
Properties validationProperties)
throws UnmarshallException
workspace - validate -
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
protected SwordValidationInfo validate(ArrayList<SwordValidationInfo> existing,
Properties validationContext)
existing -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||