org.gedcomx.atom
Class Person

java.lang.Object
  extended by org.gedcomx.atom.CommonAttributes
      extended by org.gedcomx.atom.ExtensibleElement
          extended by org.gedcomx.atom.Person
All Implemented Interfaces:
HasTransientProperties, SupportsExtensionElements

public final class Person
extends ExtensibleElement

A Person construct is an element that describes a person, corporation, or similar entity

Author:
Ryan Heaton
See Also:
The atom spec, section 3.2.

Field Summary
 
Fields inherited from class org.gedcomx.atom.ExtensibleElement
transientProperties
 
Constructor Summary
Person()
           
 
Method Summary
 void accept(AtomModelVisitor visitor)
          Accept a visitor.
 String getEmail()
          an e-mail address associated with the person.
 String getName()
          Conveys a human-readable name for the person.
 URI getUri()
          an IRI associated with the person.
 void setEmail(String email)
          an e-mail address associated with the person.
 void setName(String name)
          a human-readable name for the person.
 void setUri(URI uri)
          an IRI associated with the person.
 
Methods inherited from class org.gedcomx.atom.ExtensibleElement
addExtensionElement, findExtensionOfType, findExtensionsOfType, getExtensionElements, getTransientProperties, getTransientProperty, setExtensionElements, setTransientProperty
 
Methods inherited from class org.gedcomx.atom.CommonAttributes
getBase, getLang, setBase, setLang
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person()
Method Detail

getName

public String getName()
Conveys a human-readable name for the person.

Returns:
a human-readable name for the person.

setName

public void setName(String name)
a human-readable name for the person.

Parameters:
name - a human-readable name for the person.

getUri

public URI getUri()
an IRI associated with the person.

Returns:
an IRI associated with the person.

setUri

public void setUri(URI uri)
an IRI associated with the person.

Parameters:
uri - an IRI associated with the person.

getEmail

public String getEmail()
an e-mail address associated with the person.

Returns:
an e-mail address associated with the person.

setEmail

public void setEmail(String email)
an e-mail address associated with the person.

Parameters:
email - an e-mail address associated with the person.

accept

public void accept(AtomModelVisitor visitor)
Accept a visitor.

Parameters:
visitor - The visitor to accept.


Copyright © 2016. All rights reserved.