|
||||||||||
| 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.base.SwordAcceptPackaging
public class SwordAcceptPackaging
Represents a text construct in the ATOM elements. This is a superclass of several elements within this implementation.
| Field Summary | |
|---|---|
protected static XmlName |
ATTRIBUTE_Q_NAME
|
static String |
ELEMENT_NAME
|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
SwordAcceptPackaging()
|
|
SwordAcceptPackaging(String name,
float value)
|
|
SwordAcceptPackaging(String name,
QualityValue value)
|
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
|
String |
getContent()
Get the content in this TextConstruct. |
QualityValue |
getQualityValue()
Get the type. |
protected void |
initialise()
|
nu.xom.Element |
marshall()
Marshal the data in this object to an Element object. |
void |
setContent(String content)
Set the content. |
void |
setQualityValue(QualityValue value)
Set the type. |
String |
toString()
Get a string representation. |
void |
unmarshall(nu.xom.Element element)
Unmarshall the data in the specified element and store it in the object. |
SwordValidationInfo |
unmarshall(nu.xom.Element acceptPackaging,
Properties validationProperties)
Unmarshal the text element into this object. |
protected SwordValidationInfo |
validate(List<SwordValidationInfo> existing,
List<SwordValidationInfo> attributeItems,
Properties validationContext)
|
SwordValidationInfo |
validate(Properties validationContext)
|
| 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, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
protected static final XmlName ATTRIBUTE_Q_NAME
| Constructor Detail |
|---|
public SwordAcceptPackaging()
public SwordAcceptPackaging(String name,
float value)
public SwordAcceptPackaging(String name,
QualityValue value)
| Method Detail |
|---|
public static XmlName elementName()
protected final void initialise()
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public SwordValidationInfo unmarshall(nu.xom.Element acceptPackaging,
Properties validationProperties)
throws UnmarshallException
acceptPackaging - The text element.validationProperties -
UnmarshallException - If the specified element is not of
the correct type, where the localname is used
to specify the valid name. Also thrown
if there is an issue accessing the data.
public void unmarshall(nu.xom.Element element)
throws UnmarshallException
SwordElementInterface
unmarshall in interface SwordElementInterfaceelement - The data to unmarshall.
UnmarshallException - If the element is not of the
correct type, or if there is an error unmarshalling the data.public SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
protected SwordValidationInfo validate(List<SwordValidationInfo> existing,
List<SwordValidationInfo> attributeItems,
Properties validationContext)
existing - attributeItems -
public final String getContent()
public final void setContent(String content)
content - The content.public final QualityValue getQualityValue()
public final void setQualityValue(QualityValue value)
value - The type.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||