|
||||||||||
| 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(String version)
Create a new instance and set the specified service level. |
|
| Method Summary | |
|---|---|
Service |
getService()
Retrieve the Service object associated with this document. |
String |
marshall()
Marshall the data in the Service element and generate a String representation. |
void |
setService(Service service)
Set the service object associated with this document. |
String |
toString()
Return the Service Document in it's XML form. |
void |
unmarshall(nu.xom.Element element)
Unmarshall the specified element. |
SwordValidationInfo |
unmarshall(nu.xom.Element element,
Properties validationProperties)
Unmarshall the specified element, and return the generated validation information. |
void |
unmarshall(String xml)
Convert the specified XML string into a set of objects used within the service. |
SwordValidationInfo |
unmarshall(String xml,
Properties validationProperties)
|
SwordValidationInfo |
validate()
|
SwordValidationInfo |
validate(Properties validationContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDocument()
public ServiceDocument(String version)
version - The SWORD version.public ServiceDocument(Service service)
service - The Service object.| Method Detail |
|---|
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.
public SwordValidationInfo unmarshall(String xml,
Properties validationProperties)
throws UnmarshallException
xml - validationProperties -
UnmarshallException
public void unmarshall(nu.xom.Element element)
throws UnmarshallException
element -
UnmarshallException
public SwordValidationInfo unmarshall(nu.xom.Element element,
Properties validationProperties)
throws UnmarshallException
element - validationProperties -
UnmarshallExceptionpublic SwordValidationInfo validate()
public SwordValidationInfo validate(Properties validationContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||