public class

Name

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

Class Overview

A name space element: "apps:name". Used to help model a user account in Google Apps for Your Domain along with the Login extension. Has attributes familyName, and givenName.

Summary

Constants
String ATTRIBUTE_FAMILY_NAME
String ATTRIBUTE_GIVEN_NAME
String EXTENSION_LOCAL_NAME
Fields
private static ExtensionDescription EXTENSION_DESC
protected String familyName
protected String givenName
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Name()
Public Methods
void generate(XmlWriter w, ExtensionProfile extensionProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
String getFamilyName()
String getGivenName()
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
void setFamilyName(String familyName)
void setGivenName(String givenName)
[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_FAMILY_NAME

Constant Value: "familyName"

public static final String ATTRIBUTE_GIVEN_NAME

Constant Value: "givenName"

public static final String EXTENSION_LOCAL_NAME

Constant Value: "name"

Fields

private static ExtensionDescription EXTENSION_DESC

protected String familyName

protected String givenName

Public Constructors

public Name ()

Public Methods

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 String getFamilyName ()

public String getGivenName ()

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 void setFamilyName (String familyName)

Parameters
familyName

public void setGivenName (String givenName)

Parameters
givenName