org.purl.sword.base
Class BasicIntegerContentElement

java.lang.Object
  extended by org.purl.sword.base.XmlElement
      extended by org.purl.sword.base.BasicContentElement
          extended by org.purl.sword.base.BasicIntegerContentElement
All Implemented Interfaces:
SwordElementInterface
Direct Known Subclasses:
SwordMaxUploadSize

public class BasicIntegerContentElement
extends BasicContentElement

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

Field Summary
 
Fields inherited from class org.purl.sword.base.XmlElement
DATE_FORMAT, DATE_FORMATS, xmlName
 
Constructor Summary
BasicIntegerContentElement(String prefix, String localName, String namespaceUri)
           
BasicIntegerContentElement(XmlName name)
           
 
Method Summary
 int getContent()
           
protected  String getContentAsString()
           
 boolean isSet()
           
protected  void marshallContent(nu.xom.Element element)
           
 void setContent(int value)
           
protected  void unmarshallContent(nu.xom.Element element)
           
protected  SwordValidationInfo validateContent(Properties validationContext)
           
 
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

BasicIntegerContentElement

public BasicIntegerContentElement(String prefix,
                                  String localName,
                                  String namespaceUri)

BasicIntegerContentElement

public BasicIntegerContentElement(XmlName name)
Method Detail

getContent

public int getContent()

setContent

public void setContent(int value)

isSet

public boolean isSet()

marshallContent

protected void marshallContent(nu.xom.Element element)
Specified by:
marshallContent in class BasicContentElement

unmarshallContent

protected void unmarshallContent(nu.xom.Element element)
                          throws UnmarshallException
Specified by:
unmarshallContent in class BasicContentElement
Throws:
UnmarshallException

validateContent

protected SwordValidationInfo validateContent(Properties validationContext)
Specified by:
validateContent in class BasicContentElement

getContentAsString

protected String getContentAsString()
Specified by:
getContentAsString in class BasicContentElement


Copyright © 2013 DuraSpace. All Rights Reserved.