|
||||||||||
| 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 | |
|---|---|
static String |
ELEMENT_GENERATOR
Deprecated. |
static String |
ELEMENT_NAME
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Service()
Create a new instance. |
|
Service(String version)
Create a new instance. |
|
Service(String version,
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. |
static XmlName |
elementName()
|
Generator |
getGenerator()
|
int |
getMaxUploadSize()
Get the maximum upload file size (in kB) |
String |
getVersion()
Get the SWORD version. |
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 |
setGenerator(Generator generator)
|
void |
setMaxUploadSize(int maxUploadSize)
Set the maximum file upload size in kB |
void |
setNoOp(boolean noOp)
Set the NoOp value. |
void |
setVerbose(boolean verbose)
Set the Verbose value. |
void |
setVersion(String version)
Set the SWORD version. |
void |
unmarshall(nu.xom.Element service)
Unmarshall the content element into the data in this object. |
SwordValidationInfo |
unmarshall(nu.xom.Element service,
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_GENERATOR
@Deprecated public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Service()
public Service(String version)
complianceLevel - The service compliance level.
public Service(String version,
boolean noOp,
boolean verbose)
complianceLevel - The service compliance level.noOp - The noOp.verbose - The verbose element.| Method Detail |
|---|
public static XmlName elementName()
public String getVersion()
public void setVersion(String version)
version - The version.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 void setMaxUploadSize(int maxUploadSize)
maxUploadSize - Max upload file size in kBpublic int getMaxUploadSize()
public Generator getGenerator()
public void setGenerator(Generator generator)
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.
public SwordValidationInfo unmarshall(nu.xom.Element service,
Properties validationProperties)
throws UnmarshallException
service - 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 | |||||||||