| |
|
| java.lang.Object org.purl.sword.base.XmlElement org.w3.atom.Author
All known Subclasses: org.w3.atom.Contributor,
Author | public class Author extends XmlElement implements SwordElementInterface(Code) | | 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.
author: Neil Taylor |
Constructor Summary | |
public | Author() Create a new instance and set the prefix to
'atom' and the local name to 'author'. | public | Author(String prefix, String localName) Create a new instance and set the element name. |
Author | public Author()(Code) | | Create a new instance and set the prefix to
'atom' and the local name to 'author'.
|
Author | public Author(String prefix, String localName)(Code) | | Create a new instance and set the element name.
Parameters: prefix - The prefix to use when marshalling the data. Parameters: localName - The localName to use when marshalling the data. |
getEmail | public String getEmail()(Code) | | Get the author email.
The email. |
getName | public String getName()(Code) | | Retrieve the author name.
The name. |
getUri | public String getUri()(Code) | | Get the author URI.
The URI. |
marshall | public Element marshall()(Code) | | Marshall the data in this object to a XOM Element. The element
will have the full name that is specified in the constructor.
A XOM Element. |
setEmail | public void setEmail(String email)(Code) | | Set the author email.
Parameters: email - The email. |
setName | public void setName(String name)(Code) | | Set the author name.
Parameters: name - The name. |
setUri | public void setUri(String uri)(Code) | | Set the author URI.
Parameters: uri - the URI. |
unmarshall | public void unmarshall(Element author) throws UnmarshallException(Code) | | Unmarshall the author details from the specified element. The element
is a XOM element.
|
|
|
|