|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.XmlElement
org.w3.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 |
|---|
| Fields inherited from class org.purl.sword.base.XmlElement |
|---|
DATE_FORMAT, localName, prefix |
| 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. |
|
| Method Summary | |
|---|---|
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. |
void |
unmarshall(nu.xom.Element author)
Unmarshall the author details from the specified element. |
| Methods inherited from class org.purl.sword.base.XmlElement |
|---|
dateToString, getQualifiedName, getQualifiedName, isInstanceOf, stringToDate, unmarshallBoolean, unmarshallDate, unmarshallInteger, unmarshallString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Author()
public Author(String prefix,
String localName)
prefix - The prefix to use when marshalling the data.localName - The localName to use when marshalling the data.| Method Detail |
|---|
public nu.xom.Element marshall()
marshall in interface SwordElementInterface
public void unmarshall(nu.xom.Element author)
throws UnmarshallException
unmarshall in interface SwordElementInterfaceauthor - The data 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||