public class

Person

extends Element
implements IPerson
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.atom.Person
Known Direct Subclasses

Class Overview

Base class for Atom person constructs.

Summary

Fields
public static final ElementKey<String, Element> EMAIL The atom:email element.
public static final ElementKey<Void, Person> KEY The key for person constructs.
public static final ElementKey<String, Element> NAME The atom:name element.
public static final ElementKey<URI, Element> URI The atom:uri.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
Person()
Constructs a new Person instance.
Person(ElementKey<?, ?> key, String name)
Constructs a new Person instance with the specified name and key.
Person(ElementKey<?, ?> key, String name, URI uri, String email)
Constructs a new Person instance with the specified name, URI, and email address.
Protected Constructors
Person(ElementKey<?, ?> key)
Lets subclasses create an instance using custom metadata.
Person(ElementKey<?, ? extends Person> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
String getEmail()
Email address.
String getName()
Human-readable name.
String getNameLang()
Language of name.
String getUri()
This method is deprecated. Use getUriUri() instead.
URI getUriUri()
Gets URI associated with the person.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
void setEmail(String v)
void setName(String v)
void setNameLang(String v)
void setUri(String v)
This method is deprecated. Use setUri(URI) instead.
void setUri(URI v)
Sets URI associated with the person.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object
From interface com.google.gdata.data.IPerson

Fields

public static final ElementKey<String, Element> EMAIL

The atom:email element.

public static final ElementKey<Void, Person> KEY

The key for person constructs.

public static final ElementKey<String, Element> NAME

The atom:name element.

public static final ElementKey<URI, Element> URI

The atom:uri.

Public Constructors

public Person ()

Constructs a new Person instance. Default metadata without an ID is associated with this instance.

public Person (ElementKey<?, ?> key, String name)

Constructs a new Person instance with the specified name and key.

Parameters
key
name

public Person (ElementKey<?, ?> key, String name, URI uri, String email)

Constructs a new Person instance with the specified name, URI, and email address.

Parameters
key The element key
name Person's name
uri Person's URI
email Person's email address

Protected Constructors

protected Person (ElementKey<?, ?> key)

Lets subclasses create an instance using custom metadata.

Parameters
key Element key for this element

protected Person (ElementKey<?, ? extends Person> key, Element source)

Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element.

Parameters
key The key to use for this element.
source Source element

Public Methods

public String getEmail ()

Email address.

public String getName ()

Human-readable name.

public String getNameLang ()

Language of name. Derived from the current state of xml:lang.

public String getUri ()

This method is deprecated.
Use getUriUri() instead.

Gets URI associated with the person.

Returns
  • URI

public URI getUriUri ()

Gets URI associated with the person.

Returns
  • URI

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public void setEmail (String v)

Parameters
v

public void setName (String v)

Parameters
v

public void setNameLang (String v)

Parameters
v

public void setUri (String v)

This method is deprecated.
Use setUri(URI) instead.

Sets URI associated with the person.

Parameters
v URI

public void setUri (URI v)

Sets URI associated with the person.

Parameters
v URI