com.google.gdata.data.extensions
Class Email
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.Email
- All Implemented Interfaces:
- Extension
public class Email
- extends ExtensionPoint
- implements Extension
GData schema extension describing an email address.
Nested Class Summary |
static class |
Email.Rel
The email type. |
Constructor Summary |
Email()
|
Methods inherited from class com.google.gdata.data.ExtensionPoint |
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Email
public Email()
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)
getAddress
public java.lang.String getAddress()
setAddress
public void setAddress(java.lang.String v)
getQuota
public java.lang.String getQuota()
setQuota
public void setQuota(java.lang.String v)
getPrimary
public boolean getPrimary()
setPrimary
public void setPrimary(boolean p)
getDisplayName
public java.lang.String getDisplayName()
setDisplayName
public void setDisplayName(java.lang.String n)
getDefaultDescription
public static ExtensionDescription getDefaultDescription()
- Returns the suggested extension description.
generate
public void generate(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
- Overrides:
generate
in class AbstractExtension
- Parameters:
w
- XML writerextProfile
- 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 class:
AbstractExtension
- The default implementation uses the
AttributesHandler
to handle
parsing the extension.
- Specified by:
getHandler
in interface Extension
- Overrides:
getHandler
in class ExtensionPoint
- Parameters:
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
- Returns:
- an element handler