org.apache.abdera.model
Interface Person

All Superinterfaces:
Base, java.lang.Cloneable, Element, ExtensibleElement, java.io.Serializable

public interface Person
extends ExtensibleElement, Element

An Atom Person Construct

Per RFC4287:

   A Person construct is an element that describes a person,
   corporation, or similar entity (hereafter, 'person').

   atomPersonConstruct =
     atomCommonAttributes,
     (element atom:name { text }
      & element atom:uri { atomUri }?
      & element atom:email { atomEmailAddress }?
      & extensionElement*)

 


Method Summary
 java.lang.String getEmail()
          The "atom:email" element's content conveys an e-mail address associated with the person.
 Element getEmailElement()
          The "atom:email" element's content conveys an e-mail address associated with the person.
 java.lang.String getName()
          The "atom:name" element's content conveys a human-readable name for the person.
 Element getNameElement()
          The "atom:name" element's content conveys a human-readable name for the person.
 java.net.URI getUri()
          The "atom:uri" element's content conveys an IRI associated with the person.
 IRI getUriElement()
          The "atom:uri" element's content conveys an IRI associated with the person.
 Element setEmail(java.lang.String email)
          The "atom:email" element's content conveys an e-mail address associated with the person.
 void setEmailElement(Element element)
          The "atom:email" element's content conveys an e-mail address associated with the person.
 Element setName(java.lang.String name)
          The "atom:name" element's content conveys a human-readable name for the person.
 void setNameElement(Element element)
          The "atom:name" element's content conveys a human-readable name for the person.
 IRI setUri(java.lang.String uri)
          The "atom:uri" element's content conveys an IRI associated with the person.
 void setUriElement(IRI uri)
          The "atom:uri" element's content conveys an IRI associated with the person.
 
Methods inherited from interface org.apache.abdera.model.ExtensibleElement
addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
 
Methods inherited from interface org.apache.abdera.model.Element
discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getNameElement

Element getNameElement()
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.


setNameElement

void setNameElement(Element element)
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.


setName

Element setName(java.lang.String name)
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.


getName

java.lang.String getName()
The "atom:name" element's content conveys a human-readable name for the person. The content of atom:name is Language-Sensitive. Person constructs MUST contain exactly one "atom:name" element.


getEmailElement

Element getEmailElement()
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].


setEmailElement

void setEmailElement(Element element)
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].


setEmail

Element setEmail(java.lang.String email)
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].


getEmail

java.lang.String getEmail()
The "atom:email" element's content conveys an e-mail address associated with the person. Person constructs MAY contain an atom:email element, but MUST NOT contain more than one. Its content MUST conform to the "addr-spec" production in [RFC2822].


getUriElement

IRI getUriElement()
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].


setUriElement

void setUriElement(IRI uri)
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].


setUri

IRI setUri(java.lang.String uri)
           throws java.net.URISyntaxException
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].

Throws:
java.net.URISyntaxException

getUri

java.net.URI getUri()
                    throws java.net.URISyntaxException
The "atom:uri" element's content conveys an IRI associated with the person. Person constructs MAY contain an atom:uri element, but MUST NOT contain more than one. The content of atom:uri in a Person construct MUST be an IRI reference [RFC3987].

Throws:
java.net.URISyntaxException