Google Data APIs Client Library (1.41.1)



com.google.gdata.data.extensions
Class PostalAddress

java.lang.Object
  extended by com.google.gdata.data.extensions.PostalAddress
All Implemented Interfaces:
Extension

public class PostalAddress
extends java.lang.Object
implements Extension

GData schema extension describing a postal address.


Nested Class Summary
static class PostalAddress.Rel
          The postal address type.
 
Field Summary
protected  java.lang.String label
          Label.
protected  boolean primary
          Whether this is the primary postal address
protected  java.lang.String rel
          The postal address type.
protected  java.lang.String value
          Address string.
 
Constructor Summary
PostalAddress()
           
 
Method Summary
 void generate(com.google.gdata.util.common.xml.XmlWriter w, ExtensionProfile extProfile)
          Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
          Returns the suggested extension description.
 XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
          Gets an XML element handler for the extension.
 java.lang.String getLabel()
           
 boolean getPrimary()
           
 java.lang.String getRel()
           
 java.lang.String getValue()
           
 void setLabel(java.lang.String v)
           
 void setPrimary(boolean p)
           
 void setRel(java.lang.String v)
           
 void setValue(java.lang.String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rel

protected java.lang.String rel
The postal address type.


label

protected java.lang.String label
Label.


value

protected java.lang.String value
Address string.


primary

protected boolean primary
Whether this is the primary postal address

Constructor Detail

PostalAddress

public PostalAddress()
Method Detail

getRel

public java.lang.String getRel()

setRel

public void setRel(java.lang.String v)

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String v)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String v)

getPrimary

public boolean getPrimary()

setPrimary

public void setPrimary(boolean p)

getDefaultDescription

public static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.


generate

public void generate(com.google.gdata.util.common.xml.XmlWriter w,
                     ExtensionProfile extProfile)
              throws java.io.IOException
Description copied from interface: Extension
Generates an XML representation for the extension.

Specified by:
generate in interface Extension
Parameters:
w - XML writer
extProfile - extension profile
Throws:
java.io.IOException

getHandler

public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile,
                                           java.lang.String namespace,
                                           java.lang.String localName,
                                           org.xml.sax.Attributes attrs)
Description copied from interface: Extension
Gets an XML element handler for the extension.

Specified by:
getHandler in interface Extension
Parameters:
extProfile - extension profile
namespace - extension namespace
localName - tag name, without the namespace prefix
attrs - tag attributes
Returns:
an element handler