|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.extensions.PostalAddress
public class PostalAddress
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 |
---|
protected java.lang.String rel
protected java.lang.String label
protected java.lang.String value
protected boolean primary
Constructor Detail |
---|
public PostalAddress()
Method Detail |
---|
public java.lang.String getRel()
public void setRel(java.lang.String v)
public java.lang.String getLabel()
public void setLabel(java.lang.String v)
public java.lang.String getValue()
public void setValue(java.lang.String v)
public boolean getPrimary()
public void setPrimary(boolean p)
public static ExtensionDescription getDefaultDescription()
public void generate(com.google.gdata.util.common.xml.XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
generate
in interface Extension
w
- XML writerextProfile
- extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
Extension
getHandler
in interface Extension
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |