|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.ServiceDocument
public class ServiceDocument
A representation of a SWORD Service Document. http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_0.5
| Constructor Summary | |
|---|---|
ServiceDocument()
Create a new instance and set the initial service level to Zero. |
|
ServiceDocument(Service service)
Create a new instance and store the specified Service document. |
|
ServiceDocument(ServiceLevel complianceLevel)
Create a new instance and set the specified service level. |
|
ServiceDocument(ServiceLevel complianceLevel,
boolean noOp,
boolean verbose,
String workspaceTitle,
Collection workspaceCollections)
Deprecated. Please use the other constructors. |
|
| Method Summary | |
|---|---|
void |
addWorkspace(Workspace workspace)
Deprecated. Please access the value directly from the service. |
ServiceLevel |
getComplianceLevel()
Deprecated. Please access the compliance level directly from the service. |
Service |
getService()
Retrieve the Service object associated with this document. |
Iterator<Collection> |
getWorkspaceCollections()
Deprecated. Please access the value directly from the service. |
Iterator<Workspace> |
getWorkspaces()
Deprecated. Please access the value directly from the service. |
String |
marshall()
Marshall the data in the Service element and generate a String representation. |
void |
setNoOp(boolean noOp)
Deprecated. Please access the value directly from the service. |
void |
setService(Service service)
Set the service object associated with this document. |
void |
setVerbose(boolean verbose)
Deprecated. Please access the value directly from the service. |
boolean |
supportsNoOp()
Deprecated. Please access the value directly from the service. |
boolean |
supportsVerbose()
Deprecated. Please access the value directly from the service. |
String |
toString()
Return the Service Document in it's XML form. |
void |
unmarshall(String xml)
Convert the specified XML string into a set of objects used within the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDocument()
public ServiceDocument(ServiceLevel complianceLevel)
complianceLevel - The service compliance level.public ServiceDocument(Service service)
service - The Service object.
public ServiceDocument(ServiceLevel complianceLevel,
boolean noOp,
boolean verbose,
String workspaceTitle,
Collection workspaceCollections)
complianceLevel - The compliance level of this implementationnoOp - Whether or not the NOOP option is availableverbose - Whether or not the verbose option is availableworkspaceTitle - The name of the workspace titleworkspaceCollections - A Collection of workspaces| Method Detail |
|---|
public ServiceLevel getComplianceLevel()
public boolean supportsNoOp()
public void setNoOp(boolean noOp)
noOp - public boolean supportsVerbose()
public void setVerbose(boolean verbose)
verbose - public Iterator<Collection> getWorkspaceCollections()
public Iterator<Workspace> getWorkspaces()
public void addWorkspace(Workspace workspace)
workspace - public void setService(Service service)
service - The new Service object.public Service getService()
public String toString()
toString in class Objectpublic String marshall()
null if there was an error
marshalling the data.
public void unmarshall(String xml)
throws UnmarshallException
xml - The XML string.
UnmarshallException - If there was a problem unmarshalling the
data. This might be as a result of an
error in parsing the XML string,
extracting information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||