|
||||||||||
| 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.atom.Generator
public class Generator
Represents an ATOM Generator element.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_URI
Label for the URI attribute. |
static String |
ATTRIBUTE_VERSION
Label for the version attribute. |
static String |
ELEMENT_NAME
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Generator()
Create a new instance and set the prefix to 'atom' and the local name to 'generator'. |
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
|
String |
getContent()
Get the content. |
String |
getUri()
Get the URI. |
String |
getVersion()
Get the version. |
protected void |
initialise()
|
nu.xom.Element |
marshall()
Marshal the data in the object to an Element object. |
void |
setContent(String content)
Set the content. |
void |
setUri(String uri)
Set the URI. |
void |
setVersion(String version)
Set the version. |
String |
toString()
Get a string representation. |
void |
unmarshall(nu.xom.Element generator)
Unmarshal the specified Generator element into the data in this object. |
SwordValidationInfo |
unmarshall(nu.xom.Element generator,
Properties validationProperties)
|
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 ATTRIBUTE_URI
public static final String ATTRIBUTE_VERSION
@Deprecated public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public Generator()
| Method Detail |
|---|
public static XmlName elementName()
protected final void initialise()
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element generator)
throws UnmarshallException
unmarshall in interface SwordElementInterfacegenerator - The generator element.
UnmarshallException - If the specified element is not an atom:generator
element, or if there is an error accessing the data.
public SwordValidationInfo unmarshall(nu.xom.Element generator,
Properties validationProperties)
throws UnmarshallException
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
public SwordValidationInfo validate(List<SwordValidationInfo> existing,
List<SwordValidationInfo> attributeItems,
Properties validationContext)
existing - attributeItems -
public String getContent()
public void setContent(String content)
content - The content.public String getUri()
public void setUri(String uri)
uri - The URI.public String getVersion()
public void setVersion(String version)
version - The version.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||