public class

Email

extends ExtensionPoint
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.extensions.Email

Class Overview

GData schema extension describing an email address.

Summary

Nested Classes
class Email.Rel The email type. 
Fields
protected String address Email address.
protected String displayName Display name of the email address
protected String label Label.
protected boolean primary Whether this is the primary email address
protected String quota Email quota.
protected String rel The email type.
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Email()
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
String getAddress()
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
String getDisplayName()
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
String getLabel()
boolean getPrimary()
String getQuota()
String getRel()
void setAddress(String v)
void setDisplayName(String n)
void setLabel(String v)
void setPrimary(boolean p)
void setQuota(String v)
void setRel(String v)
[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

Fields

protected String address

Email address.

protected String displayName

Display name of the email address

protected String label

Label.

protected boolean primary

Whether this is the primary email address

protected String quota

Email quota.

protected String rel

The email type.

Public Constructors

public Email ()

Public Methods

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public String getAddress ()

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

public String getDisplayName ()

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 getLabel ()

public boolean getPrimary ()

public String getQuota ()

public String getRel ()

public void setAddress (String v)

Parameters
v

public void setDisplayName (String n)

Parameters
n

public void setLabel (String v)

Parameters
v

public void setPrimary (boolean p)

Parameters
p

public void setQuota (String v)

Parameters
v

public void setRel (String v)

Parameters
v