Google Data APIs Client Library (1.41.1)



com.google.gdata.data.appsforyourdomain.migration
Class Label

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.appsforyourdomain.migration.Label
All Implemented Interfaces:
Extension

public class Label
extends ExtensionPoint
implements Extension

Google Apps name space element: <apps:label>. Used to model the labels that should be supplied after a migrated message is inserted into GMail


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension
AbstractExtension.AttributesHandler
 
Field Summary
static java.lang.String ATTRIBUTE_LABEL_NAME
           
static java.lang.String EXTENSION_LOCAL_NAME
           
protected  java.lang.String labelName
           
 
Fields inherited from class com.google.gdata.data.ExtensionPoint
xmlBlob
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
Label()
           
Label(java.lang.String labelName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 void generate(com.google.gdata.util.common.xml.XmlWriter w, ExtensionProfile extensionProfile)
          Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
           
 XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
          The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
 java.lang.String getLabelName()
           
 int hashCode()
           
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
 
Methods inherited from class com.google.gdata.data.AbstractExtension
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENSION_LOCAL_NAME

public static final java.lang.String EXTENSION_LOCAL_NAME
See Also:
Constant Field Values

ATTRIBUTE_LABEL_NAME

public static final java.lang.String ATTRIBUTE_LABEL_NAME
See Also:
Constant Field Values

labelName

protected java.lang.String labelName
Constructor Detail

Label

public Label()

Label

public Label(java.lang.String labelName)
Method Detail

getLabelName

public java.lang.String getLabelName()
Returns:
the label name

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getDefaultDescription

public static ExtensionDescription getDefaultDescription()
Returns:
Description of this extension

generate

public void generate(com.google.gdata.util.common.xml.XmlWriter w,
                     ExtensionProfile extensionProfile)
              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 writer
extensionProfile - 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 AbstractExtension.AttributesHandler to handle parsing the extension.

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