|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.ExtendedProperty
public class ExtendedProperty
GData schema extension describing an entity's auxiliary property.
Nested Class Summary | |
---|---|
static class |
ExtendedProperty.Realm
Limits on where the extended property applies. |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary | |
---|---|
protected java.lang.String |
name
Property name expressed as an URI (required). |
protected java.lang.String |
realm
Limits on where the extended property applies. |
protected java.lang.String |
val
Property value (required). |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
ExtendedProperty()
|
Method Summary | |
---|---|
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,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle
parsing the extension. |
java.lang.String |
getName()
|
java.lang.String |
getRealm()
|
java.lang.String |
getValue()
|
boolean |
hasRealm()
|
boolean |
hasValue()
|
protected void |
initializeArbitraryXml(ExtensionProfile profile,
java.lang.Class<? extends ExtensionPoint> extPoint,
XmlParser.ElementHandler handler)
Overrides arbitrary XML initialization - ExtendedProperty needs mixed content as well. |
void |
setName(java.lang.String n)
|
void |
setRealm(java.lang.String r)
|
void |
setValue(java.lang.String v)
|
java.lang.String |
toString()
Convert to String for debugging |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
eg: http://schemas.google.com/g/2005#exif.focalLength
protected java.lang.String val
protected java.lang.String realm
Constructor Detail |
---|
public ExtendedProperty()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String n)
public java.lang.String getValue()
public void setValue(java.lang.String v)
public boolean hasValue()
public java.lang.String getRealm()
public void setRealm(java.lang.String r)
public boolean hasRealm()
public java.lang.String toString()
toString
in class java.lang.Object
public static ExtensionDescription getDefaultDescription()
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AbstractExtension.AttributesHandler
to handle
parsing the extension.
getHandler
in interface Extension
getHandler
in class ExtensionPoint
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
protected void initializeArbitraryXml(ExtensionProfile profile, java.lang.Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)
initializeArbitraryXml
in class ExtensionPoint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |