com.google.gdata.data.appsforyourdomain
Class Name
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.appsforyourdomain.Name
- All Implemented Interfaces:
- Extension
public class Name
- extends ExtensionPoint
- implements Extension
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.
Constructor Summary |
Name()
|
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 |
EXTENSION_LOCAL_NAME
public static final java.lang.String EXTENSION_LOCAL_NAME
- See Also:
- Constant Field Values
ATTRIBUTE_FAMILY_NAME
public static final java.lang.String ATTRIBUTE_FAMILY_NAME
- See Also:
- Constant Field Values
ATTRIBUTE_GIVEN_NAME
public static final java.lang.String ATTRIBUTE_GIVEN_NAME
- See Also:
- Constant Field Values
Name
public Name()
getFamilyName
public java.lang.String getFamilyName()
setFamilyName
public void setFamilyName(java.lang.String familyName)
getGivenName
public java.lang.String getGivenName()
setGivenName
public void setGivenName(java.lang.String givenName)
getDefaultDescription
public static ExtensionDescription getDefaultDescription()
- Returns:
- Description of this extension
generate
public void generate(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 writerextensionProfile
- 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