org.purl.sword.base
Class SwordPackaging

java.lang.Object
  extended by org.purl.sword.base.XmlElement
      extended by org.purl.sword.base.BasicContentElement
          extended by org.purl.sword.base.BasicStringContentElement
              extended by org.purl.sword.base.SwordPackaging
All Implemented Interfaces:
SwordElementInterface

public class SwordPackaging
extends BasicStringContentElement

Author:
Neil Taylor (nst@aber.ac.uk)

Field Summary
 
Fields inherited from class org.purl.sword.base.BasicStringContentElement
content
 
Fields inherited from class org.purl.sword.base.XmlElement
DATE_FORMAT, DATE_FORMATS, xmlName
 
Constructor Summary
SwordPackaging()
           
SwordPackaging(String version)
           
 
Method Summary
static XmlName elementName()
          Get the name of this element.
protected  SwordValidationInfo validateContent(Properties validationContext)
          Validate the content for this element.
 
Methods inherited from class org.purl.sword.base.BasicStringContentElement
getContent, getContentAsString, marshallContent, setContent, unmarshallContent
 
Methods inherited from class org.purl.sword.base.BasicContentElement
marshall, unmarshall, unmarshall, validate, validate
 
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
 

Constructor Detail

SwordPackaging

public SwordPackaging()

SwordPackaging

public SwordPackaging(String version)
Method Detail

elementName

public static XmlName elementName()
Get the name of this element.

Returns:

validateContent

protected SwordValidationInfo validateContent(Properties validationContext)
Validate the content for this element.

Overrides:
validateContent in class BasicStringContentElement
Parameters:
validationContext - The context for this validation step. Not used in this object.
Returns:
A SwordValidationInfo object. This will be null if there is no validation information to return, i.e. the content does not contain any warnings or errors.


Copyright © 2012. All Rights Reserved.