public class

PhoneNumber

extends Object
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.extensions.PhoneNumber

Class Overview

GData schema extension describing a phone number.

Summary

Nested Classes
class PhoneNumber.Rel The phone number type. 
Fields
protected String label Label.
protected String phoneNumber Human-readable phone number.
protected boolean primary Whether this is the primary phone number
protected String rel The phone number type.
protected String uri "Tel URI" (formal representation of number; see RFC 3966).
Public Constructors
PhoneNumber()
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
Gets an XML element handler for the extension.
String getLabel()
String getPhoneNumber()
boolean getPrimary()
String getRel()
String getUri()
void setLabel(String v)
void setPhoneNumber(String v)
void setPrimary(boolean p)
void setRel(String v)
void setUri(String v)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

protected String label

Label.

protected String phoneNumber

Human-readable phone number.

protected boolean primary

Whether this is the primary phone number

protected String rel

The phone number type.

protected String uri

"Tel URI" (formal representation of number; see RFC 3966).

Public Constructors

public PhoneNumber ()

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 static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

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

Gets an XML element handler for 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 String getPhoneNumber ()

public boolean getPrimary ()

public String getRel ()

public String getUri ()

public void setLabel (String v)

Parameters
v

public void setPhoneNumber (String v)

Parameters
v

public void setPrimary (boolean p)

Parameters
p

public void setRel (String v)

Parameters
v

public void setUri (String v)

Parameters
v