|
||||||||||
| 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()
Marshal 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)
Unmarshal the content element into the data in this object. |
SwordValidationInfo |
unmarshall(nu.xom.Element service,
Properties validationProperties)
|
protected SwordValidationInfo |
validate(List<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)
version - The service compliance level.
public Service(String version,
boolean noOp,
boolean verbose)
version - The service compliance level.noOp - The noOp.verbose - The verbose element.| Method Detail |
|---|
public static XmlName elementName()
public final String getVersion()
public final void setVersion(String version)
version - The version.public final boolean isNoOp()
public final void setNoOp(boolean noOp)
noOp - The value.public final boolean isNoOpSet()
public final boolean isVerbose()
public final void setVerbose(boolean verbose)
verbose - The value.public final boolean isVerboseSet()
public final void setMaxUploadSize(int maxUploadSize)
maxUploadSize - Max upload file size in kBpublic final int getMaxUploadSize()
public final Generator getGenerator()
public final void setGenerator(Generator generator)
public final Iterator<Workspace> getWorkspaces()
public final List<Workspace> getWorkspacesList()
public final void addWorkspace(Workspace workspace)
workspace - The workspace.public final void clearWorkspaces()
public final nu.xom.Element marshall()
marshall in interface SwordElementInterface
public final 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 final SwordValidationInfo unmarshall(nu.xom.Element service,
Properties validationProperties)
throws UnmarshallException
service - validationProperties -
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
protected SwordValidationInfo validate(List<SwordValidationInfo> existing,
Properties validationContext)
existing -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||