Lizzy v1.1.1

christophedelory.atom
Class Person

java.lang.Object
  extended by christophedelory.atom.Common
      extended by christophedelory.atom.Person

public class Person
extends Common

An element that describes a person, corporation, or similar entity.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Person()
           
 
Method Summary
 String getEmail()
          Returns an e-mail address associated with the person.
 String getName()
          Returns a human-readable name for the person.
 String getURIString()
          Returns an URI associated with the person.
 void setEmail(String email)
          Initializes the e-mail address associated with the person.
 void setName(String name)
          Initializes a human-readable name for the person.
 void setURIString(String uri)
          Initializes the URI associated with the person.
 
Methods inherited from class christophedelory.atom.Common
getBaseString, getLang, setBaseString, 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()
Returns a human-readable name for the person. No default value.

Returns:
a person name. May be null if not yet initialized.
See Also:
setName(java.lang.String)

setName

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

Parameters:
name - a person name. Shall not be null.
Throws:
NullPointerException - if name is null.
See Also:
setName(java.lang.String)

getURIString

public String getURIString()
Returns an URI associated with the person.

Returns:
an URI as a string. May be null.
See Also:
setURIString(java.lang.String)

setURIString

public void setURIString(String uri)
Initializes the URI associated with the person.

Parameters:
uri - an URI as a string. May be null.
See Also:
getURIString()

getEmail

public String getEmail()
Returns an e-mail address associated with the person. Its content must conform to the "addr-spec" production in RFC2822.

Returns:
an e-mail address. May be null.
See Also:
setEmail(java.lang.String)

setEmail

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

Parameters:
email - an e-mail address. May be null.
See Also:
getEmail()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.