Class Person


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

      Fields 
      Modifier and Type Field Description
      private java.lang.String email
      Email address associated with the person.
      private java.lang.String name
      Human-readable name.
      private Reference uri
      IRI associated with the person.
    • Constructor Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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