|
||||||||||
| 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.Author
public class Author
Represents an Author type, as used in ATOM. This class is used as the base class for the different areas of ATOM that represent information about people. This includes the atom:author and atom:contributor elements.
| Field Summary | |
|---|---|
static String |
ELEMENT_AUTHOR_NAME
Deprecated. |
static String |
ELEMENT_EMAIL
Deprecated. |
static String |
ELEMENT_NAME
Deprecated. |
static String |
ELEMENT_URI
Deprecated. |
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, DATE_FORMATS, xmlName |
| Constructor Summary | |
|---|---|
Author()
Create a new instance and set the prefix to 'atom' and the local name to 'author'. |
|
Author(String prefix,
String localName)
Create a new instance and set the element name. |
|
Author(String prefix,
String localName,
String namespaceUri)
|
|
Author(XmlName name)
|
|
| Method Summary | |
|---|---|
static XmlName |
elementName()
Get the XmlName for this class. |
String |
getEmail()
Get the author email. |
String |
getName()
Retrieve the author name. |
String |
getUri()
Get the author URI. |
nu.xom.Element |
marshall()
Marshall the data in this object to a XOM Element. |
void |
setEmail(String email)
Set the author email. |
void |
setName(String name)
Set the author name. |
void |
setUri(String uri)
Set the author URI. |
String |
toString()
Return the string. |
void |
unmarshall(nu.xom.Element author)
Unmarshall the author details from the specified element. |
SwordValidationInfo |
unmarshall(nu.xom.Element author,
Properties validationProperties)
Unmarshall the author details from the specified element. |
SwordValidationInfo |
validate(ArrayList<SwordValidationInfo> elements,
ArrayList<SwordValidationInfo> attributes,
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 |
|---|
@Deprecated public static final String ELEMENT_NAME
@Deprecated public static final String ELEMENT_AUTHOR_NAME
@Deprecated public static final String ELEMENT_URI
@Deprecated public static final String ELEMENT_EMAIL
| Constructor Detail |
|---|
public Author()
public Author(XmlName name)
public Author(String prefix,
String localName)
prefix - The prefix to use when marshalling the data.localName - The localName to use when marshalling the data.
public Author(String prefix,
String localName,
String namespaceUri)
prefix - localName - namespaceUri - | Method Detail |
|---|
public static XmlName elementName()
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public SwordValidationInfo unmarshall(nu.xom.Element author,
Properties validationProperties)
throws UnmarshallException
author - The element to unmarshall.
UnmarshallExceptionpublic SwordValidationInfo validate(Properties validationContext)
validate in class XmlElement
public SwordValidationInfo validate(ArrayList<SwordValidationInfo> elements,
ArrayList<SwordValidationInfo> attributes,
Properties validationContext)
public void unmarshall(nu.xom.Element author)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceauthor - The element to unmarshall.
UnmarshallException - If the element is not of the
correct type, or if there is an error unmarshalling the data.public String getName()
public void setName(String name)
name - The name.public String getUri()
public void setUri(String uri)
uri - the URI.public String getEmail()
public void setEmail(String email)
email - The email.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||