org.purl.sword.base
Class BasicBooleanContentElement

java.lang.Object
  extended by org.purl.sword.base.XmlElement
      extended by org.purl.sword.base.BasicContentElement
          extended by org.purl.sword.base.BasicBooleanContentElement
All Implemented Interfaces:
SwordElementInterface
Direct Known Subclasses:
SwordMediation, SwordNoOp, SwordVerbose

public class BasicBooleanContentElement
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
BasicBooleanContentElement(String prefix, String localName, String namespaceUri)
           
BasicBooleanContentElement(XmlName name)
           
 
Method Summary
 boolean getContent()
           
protected  String getContentAsString()
           
 boolean isSet()
           
protected  void marshallContent(nu.xom.Element element)
           
 void setContent(boolean 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

BasicBooleanContentElement

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

BasicBooleanContentElement

public BasicBooleanContentElement(XmlName name)
Method Detail

getContent

public boolean getContent()

setContent

public void setContent(boolean 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 © 2010 DuraSpace. All Rights Reserved.