public class

Label

extends ExtensionPoint
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.appsforyourdomain.migration.Label

Class Overview

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

Summary

Constants
String ATTRIBUTE_LABEL_NAME
String EXTENSION_LOCAL_NAME
Fields
private static ExtensionDescription EXTENSION_DESC the extension description is shared by all instances of this class
protected String labelName
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Label()
Label(String labelName)
Public Methods
boolean equals(Object obj)
void generate(XmlWriter w, ExtensionProfile extensionProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
String getLabelName()
int hashCode()
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

public static final String ATTRIBUTE_LABEL_NAME

Constant Value: "labelName"

public static final String EXTENSION_LOCAL_NAME

Constant Value: "label"

Fields

private static ExtensionDescription EXTENSION_DESC

the extension description is shared by all instances of this class

protected String labelName

Public Constructors

public Label ()

public Label (String labelName)

Parameters
labelName

Public Methods

public boolean equals (Object obj)

Parameters
obj

public void generate (XmlWriter w, ExtensionProfile extensionProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extensionProfile Extension profile
Throws
IOException

public static ExtensionDescription getDefaultDescription ()

Returns
  • Description of this extension

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing 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 getLabelName ()

Returns
  • the label name

public int hashCode ()

See Also