public class

ExtendedProperty

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.extensions.ExtendedProperty

Class Overview

GData schema extension describing an entity's auxiliary property.

Summary

Nested Classes
class ExtendedProperty.Realm Limits on where the extended property applies. 
Constants
String EXTENDED_PROPERTY XML "extendedProperty" element name
Fields
protected String name Property name expressed as an URI (required).
protected String realm Limits on where the extended property applies.
protected String val Property value (required).
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
ExtendedProperty()
Public Methods
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates an XML representation for the extension.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
String getName()
String getRealm()
String getValue()
boolean hasRealm()
boolean hasValue()
void setName(String n)
void setRealm(String r)
void setValue(String v)
String toString()
Convert to String for debugging
Protected Methods
void initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)
Overrides arbitrary XML initialization - ExtendedProperty needs mixed content as well.
[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

static final String EXTENDED_PROPERTY

XML "extendedProperty" element name

Constant Value: "extendedProperty"

Fields

protected String name

Property name expressed as an URI (required). Extended property URIs follow the {scheme}#{local-name} convention.

eg: http://schemas.google.com/g/2005#exif.focalLength

protected String realm

Limits on where the extended property applies.

protected String val

Property value (required).

Public Constructors

public ExtendedProperty ()

Public Methods

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates an XML representation for the extension.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description.

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 getName ()

public String getRealm ()

public String getValue ()

public boolean hasRealm ()

public boolean hasValue ()

public void setName (String n)

Parameters
n

public void setRealm (String r)

Parameters
r

public void setValue (String v)

Parameters
v

public String toString ()

Convert to String for debugging

Protected Methods

protected void initializeArbitraryXml (ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)

Overrides arbitrary XML initialization - ExtendedProperty needs mixed content as well.

Parameters
profile
extPoint
handler