Package org.restlet.ext.atom
Class Person
- java.lang.Object
-
- org.restlet.ext.atom.Person
-
public class Person extends java.lang.Object
Element that describes a person, corporation, or similar entity (hereafter, 'person').- Author:
- Jerome Louvel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEmail()
Returns the email address associated with the person.java.lang.String
getName()
Returns the human-readable name.org.restlet.data.Reference
getUri()
Returns the IRI associated with the person.void
setEmail(java.lang.String email)
Sets the email address.void
setName(java.lang.String name)
Sets the human-readable name.void
setUri(org.restlet.data.Reference uri)
Sets the IRI associated with the person.void
writeElement(XmlWriter writer, java.lang.String localName)
Writes the current object as an XML element using the given SAX writer.
-
-
-
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 org.restlet.data.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(org.restlet.data.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
-
-