org.purl.sword.base
Class BasicStringContentElement

java.lang.Object
  extended by org.purl.sword.base.XmlElement
      extended by org.purl.sword.base.BasicContentElement
          extended by org.purl.sword.base.BasicStringContentElement
All Implemented Interfaces:
SwordElementInterface
Direct Known Subclasses:
Accept, Category, DcAbstract, Email, Id, Name, Published, SwordCollectionPolicy, SwordPackaging, SwordService, SwordTreatment, SwordUserAgent, SwordVerboseDescription, SwordVersion, Updated, Uri

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

BasicStringContentElement

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

BasicStringContentElement

public BasicStringContentElement(XmlName name)
Method Detail

getContent

public String getContent()

setContent

public void setContent(String value)

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 The DSpace Foundation. All Rights Reserved.