|
||||||||||
| 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.atom.Entry
org.purl.sword.base.SWORDEntry
org.purl.sword.base.SWORDErrorDocument
public class SWORDErrorDocument
Extension of the SWORD Entry class, specialized for Error Documents.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
Deprecated. |
| Fields inherited from class org.purl.sword.base.SWORDEntry |
|---|
swordNoOp, swordTreatment, swordUserAgent, swordVerboseDescription |
| Fields inherited from class org.purl.sword.atom.Entry |
|---|
ELEMENT_CATEGORY, ELEMENT_GENERATOR, ELEMENT_ID, ELEMENT_PUBLISHED, ELEMENT_UPDATED |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
SWORDErrorDocument()
Create the error document (intended to be used when unmarshalling an error document as this will set the errorURI) |
|
SWORDErrorDocument(String errorURI)
Create the error document |
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
Get the element name. |
String |
getErrorURI()
Get the error URI |
nu.xom.Element |
marshall()
Overrides the marshal method in the parent SWORDEntry. |
protected void |
processUnexpectedAttributes(nu.xom.Element element,
SwordValidationInfo info)
This method overrides the XmlElement definition so that it can allow the definition of the href attribute. |
void |
setErrorURI(String error)
set the error URI |
void |
unmarshall(nu.xom.Element entry)
Overrides the unmarshal method in the parent SWORDEntry. |
SwordValidationInfo |
unmarshall(nu.xom.Element entry,
Properties validationProperties)
|
SwordValidationInfo |
validate(Properties validationContext)
|
protected SwordValidationInfo |
validate(SwordValidationInfo info,
Properties validationContext)
|
| Methods inherited from class org.purl.sword.base.SWORDEntry |
|---|
getPackaging, getTreatment, getUserAgent, getVerboseDescription, initialise, isElementChecked, isNoOp, isNoOpSet, marshallElements, setNoOp, setPackaging, setTreatment, setUserAgent, setVerboseDescription, unmarshallWithValidation |
| Methods inherited from class org.purl.sword.atom.Entry |
|---|
addAuthors, addCategory, addContributor, addLink, clearAuthors, clearCategories, clearContributors, clearLinks, getAuthors, getCategories, getContent, getContributors, getGenerator, getId, getLinks, getPublished, getRights, getSource, getSummary, getTitle, getUpdated, setContent, setGenerator, setId, setPublished, setRights, setSource, setSummary, setTitle, setUpdated, unmarshallWithoutValidate |
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
createValidAttributeInfo, getQualifiedName, getQualifiedName, getQualifiedNameWithPrefix, getXmlName, handleIncorrectElement, isInstanceOf, isInstanceOf, 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_NAME
| Constructor Detail |
|---|
public SWORDErrorDocument()
public SWORDErrorDocument(String errorURI)
errorURI - The URI of the error| Method Detail |
|---|
public static XmlName elementName()
public nu.xom.Element marshall()
marshall in interface SwordElementInterfacemarshall in class Entry
public void unmarshall(nu.xom.Element entry)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceunmarshall in class SWORDEntryentry - The entry to parse.
UnmarshallException - If the entry is not an atom:entry
or if there is an exception extracting the data.
public SwordValidationInfo unmarshall(nu.xom.Element entry,
Properties validationProperties)
throws UnmarshallException
unmarshall in class SWORDEntryentry - validationProperties -
UnmarshallException
protected void processUnexpectedAttributes(nu.xom.Element element,
SwordValidationInfo info)
processUnexpectedAttributes in class XmlElementelement - The element that contains the attributesinfo - The info object that will hold the validation info.public SwordValidationInfo validate(Properties validationContext)
validate in class SWORDEntry
protected SwordValidationInfo validate(SwordValidationInfo info,
Properties validationContext)
validate in class SWORDEntryinfo - validationContext -
public String getErrorURI()
public void setErrorURI(String error)
error - the error URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||