com.google.gdata.data.extensions
Class ExtendedProperty
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.ExtendedProperty
- All Implemented Interfaces:
- Extension
public class ExtendedProperty
- extends ExtensionPoint
GData schema extension describing an entity's auxiliary property.
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, wait, wait, wait |
ExtendedProperty
public ExtendedProperty()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String n)
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String v)
hasValue
public boolean hasValue()
getRealm
public java.lang.String getRealm()
setRealm
public void setRealm(java.lang.String r)
hasRealm
public boolean hasRealm()
toString
public java.lang.String toString()
- Convert to String for debugging
- Overrides:
toString
in class java.lang.Object
getDefaultDescription
public static ExtensionDescription getDefaultDescription()
- Returns the suggested extension description.
generate
public void generate(XmlWriter w,
ExtensionProfile extProfile)
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 writerextProfile
- 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