public class Person
extends java.lang.Object
| Constructor and Description |
|---|
Person()
Constructor.
|
Person(java.lang.String name,
Reference uri,
java.lang.String email)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEmail()
Returns the email address associated with the person.
|
java.lang.String |
getName()
Returns the human-readable name.
|
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(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.
|
public Person()
public Person(java.lang.String name,
Reference uri,
java.lang.String email)
name - The name.uri - The URI reference.email - The email address.public java.lang.String getEmail()
public java.lang.String getName()
public Reference getUri()
public void setEmail(java.lang.String email)
email - The email address.public void setName(java.lang.String name)
name - The human-readable name.public void setUri(Reference uri)
uri - The IRI associated with the person.public void writeElement(XmlWriter writer, java.lang.String localName) throws org.xml.sax.SAXException
writer - The SAX writer.localName - The local name of the element.org.xml.sax.SAXExceptionCopyright © 2005-2020 Restlet.