|
||||||||||
| 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.Service
public class Service
Represents an Atom Publishing Protocol Service element, with SWORD extensions.
| Field Summary |
|---|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| Constructor Summary | |
|---|---|
Service()
Create a new instance. |
|
Service(ServiceLevel complianceLevel)
Create a new instance. |
|
Service(ServiceLevel complianceLevel,
boolean noOp,
boolean verbose)
Create a new instance with the specified compliance level, noOp and verbose values. |
|
| Method Summary | |
|---|---|
void |
addWorkspace(Workspace workspace)
Add a workspace. |
void |
clearWorkspaces()
Clear the list of workspaces. |
ServiceLevel |
getComplianceLevel()
Get the service compliance level. |
Iterator<Workspace> |
getWorkspaces()
Get an Iterator over the workspaces. |
List<Workspace> |
getWorkspacesList()
Get a List of workspaces |
boolean |
isNoOp()
Get the NoOp value. |
boolean |
isNoOpSet()
Determine if the NoOp value has been set. |
boolean |
isVerbose()
Get the Verbose setting. |
boolean |
isVerboseSet()
Determine if the Verbose value has been set. |
nu.xom.Element |
marshall()
Marshall the data in this object to an Element object. |
void |
setComplianceLevel(ServiceLevel complianceLevel)
Set the service compliance level. |
void |
setNoOp(boolean noOp)
Set the NoOp value. |
void |
setVerbose(boolean verbose)
Set the Verbose value. |
void |
unmarshall(nu.xom.Element service)
Unmarshall the content 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 |
| Constructor Detail |
|---|
public Service()
public Service(ServiceLevel complianceLevel)
complianceLevel - The service compliance level.
public Service(ServiceLevel complianceLevel,
boolean noOp,
boolean verbose)
complianceLevel - The service compliance level.noOp - The noOp.verbose - The verbose element.| Method Detail |
|---|
public ServiceLevel getComplianceLevel()
public void setComplianceLevel(ServiceLevel complianceLevel)
The - compliance level.public boolean isNoOp()
public void setNoOp(boolean noOp)
noOp - The value.public boolean isNoOpSet()
public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - The value.public boolean isVerboseSet()
public Iterator<Workspace> getWorkspaces()
public List<Workspace> getWorkspacesList()
public void addWorkspace(Workspace workspace)
workspace - The workspace.public void clearWorkspaces()
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element service)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceservice - The data to unmarshall.
UnmarshallException - If the element does not contain a
content 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 | |||||||||