Class Person


  • public class Person
    extends java.lang.Object
    Element that describes a person, corporation, or similar entity (hereafter, 'person').
    Author:
    Jerome Louvel
    • Constructor Summary

      Constructors 
      Constructor Description
      Person()
      Constructor.
      Person​(java.lang.String name, org.restlet.data.Reference uri, java.lang.String email)
      Constructor.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Person

        public Person()
        Constructor.
      • Person

        public Person​(java.lang.String name,
                      org.restlet.data.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 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