public class

PostalAddress

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

Class Overview

GData schema extension describing a postal address.

Summary

Nested Classes
class PostalAddress.Rel The postal address type. 
Fields
protected String label Label.
protected boolean primary Whether this is the primary postal address
protected String rel The postal address type.
protected String value Address string.
Public Constructors
PostalAddress()
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()
boolean getPrimary()
String getRel()
String getValue()
void setLabel(String v)
void setPrimary(boolean p)
void setRel(String v)
void setValue(String v)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

protected String label

Label.

protected boolean primary

Whether this is the primary postal address

protected String rel

The postal address type.

protected String value

Address string.

Public Constructors

public PostalAddress ()

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 boolean getPrimary ()

public String getRel ()

public String getValue ()

public void setLabel (String v)

Parameters
v

public void setPrimary (boolean p)

Parameters
p

public void setRel (String v)

Parameters
v

public void setValue (String v)

Parameters
v