public class

Person

extends ExtensionPoint
implements IPerson
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Person
Known Direct Subclasses

Class Overview

Person type used for feed and entry authors and contributors. It may also be used by services' custom elements.

Summary

Nested Classes
class Person.AtomHandler Parses XML in the Atom format. 
Fields
protected String email Email address.
protected String name Human-readable name.
protected String nameLang Language of name.
protected String uri URI associated with the person.
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Person()
Class constructor.
Person(String name)
Constructs a new Person instance with the specified name.
Person(String name, String uri, String email)
Constructs a new Person instance with the specified name, URI, and email address.
Public Methods
void generate(ExtensionProfile extProfile, XmlWriter w, XmlNamespace elementNamespace, String elementName, Collection<XmlWriter.Attribute> attributes)
Generates XML.
void generateAtom(ExtensionProfile extProfile, XmlWriter w, String elementName)
Generates XML in the Atom format.
void generateRss(XmlWriter w, String elementName)
Generates XML in the RSS format.
String getEmail()
Email address.
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
String getName()
Human-readable name.
String getNameLang()
Language of name
String getUri()
Uri associated with the person
void setEmail(String v)
void setName(String v)
void setNameLang(String v)
void setUri(String v)
Protected Methods
void generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates XML.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IPerson

Fields

protected String email

Email address.

protected String name

Human-readable name.

protected String nameLang

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

protected String uri

URI associated with the person.

Public Constructors

public Person ()

Class constructor.

public Person (String name)

Constructs a new Person instance with the specified name.

Parameters
name

public Person (String name, String uri, String email)

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

Parameters
name
uri
email

Public Methods

public void generate (ExtensionProfile extProfile, XmlWriter w, XmlNamespace elementNamespace, String elementName, Collection<XmlWriter.Attribute> attributes)

Generates XML.

Designed to be used by types that reuse the standard Atom person type.

Parameters
extProfile Extension profile
w Output writer
elementNamespace Namespace for XML element
elementName Name of XML element
attributes Additional attributes
Throws
IOException

public void generateAtom (ExtensionProfile extProfile, XmlWriter w, String elementName)

Generates XML in the Atom format.

Parameters
extProfile Extension profile
w Output writer
elementName Atom element name
Throws
IOException

public void generateRss (XmlWriter w, String elementName)

Generates XML in the RSS format.

Parameters
w Output writer
elementName RSS element name
Throws
IOException

public String getEmail ()

Email address.

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public String getName ()

Human-readable name.

public String getNameLang ()

Language of name

public String getUri ()

Uri associated with the person

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)

Parameters
v

Protected Methods

protected void generate (XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)

Generates XML.

Designed to be used by ExtensionPoint types that reuse Person.

Parameters
w XML writer
p Extension profile
namespace XML namespace for this extension
localName XML local name for this extension
attrs List of XML attributes
generator Attribute generator
Throws
IOException