Package org.restlet.ext.atom
Class Person
- java.lang.Object
-
- org.restlet.ext.atom.Person
-
public class Person extends java.lang.ObjectElement that describes a person, corporation, or similar entity (hereafter, 'person').
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEmail()Returns the email address associated with the person.java.lang.StringgetName()Returns the human-readable name.ReferencegetUri()Returns the IRI associated with the person.voidsetEmail(java.lang.String email)Sets the email address.voidsetName(java.lang.String name)Sets the human-readable name.voidsetUri(Reference uri)Sets the IRI associated with the person.voidwriteElement(XmlWriter writer, java.lang.String localName)Writes the current object as an XML element using the given SAX writer.
-
-
-
Field Detail
-
email
private volatile java.lang.String email
Email address associated with the person.
-
name
private volatile java.lang.String name
Human-readable name.
-
uri
private volatile Reference uri
IRI associated with the person.
-
-
Constructor Detail
-
Person
public Person()
Constructor.
-
Person
public Person(java.lang.String name, Reference uri, java.lang.String email)Constructor.- Parameters:
name- The name.uri- The URI reference.email- The email address.
-
-
Method Detail
-
getEmail
public java.lang.String getEmail()
Returns the email address associated with the person.- Returns:
- The email address associated with the person.
-
getName
public java.lang.String getName()
Returns the human-readable name.- Returns:
- The human-readable name.
-
getUri
public Reference getUri()
Returns the IRI associated with the person.- Returns:
- The IRI associated with the person.
-
setEmail
public void setEmail(java.lang.String email)
Sets the email address.- Parameters:
email- The email address.
-
setName
public void setName(java.lang.String name)
Sets the human-readable name.- Parameters:
name- The human-readable name.
-
setUri
public void setUri(Reference uri)
Sets the IRI associated with the person.- Parameters:
uri- The IRI associated with the person.
-
writeElement
public void writeElement(XmlWriter writer, java.lang.String localName) throws org.xml.sax.SAXException
Writes the current object as an XML element using the given SAX writer.- Parameters:
writer- The SAX writer.localName- The local name of the element.- Throws:
org.xml.sax.SAXException
-
-