com.google.gdata.data.extensions
Class Image
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.Image
- All Implemented Interfaces:
- Extension
public class Image
- extends ExtensionPoint
- implements Extension
GData schema extension describing an image.
Nested Class Summary |
static class |
Image.Rel
Image type. |
Field Summary |
protected java.lang.Integer |
height
Image height in pixels. |
protected java.lang.String |
rel
|
protected java.lang.String |
src
URI where the image can be downloaded. |
protected java.lang.Integer |
width
Image width in pixels. |
Constructor Summary |
Image()
|
Methods inherited from class com.google.gdata.data.ExtensionPoint |
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren |
Methods inherited from class com.google.gdata.data.AbstractExtension |
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rel
protected java.lang.String rel
width
protected java.lang.Integer width
- Image width in pixels.
height
protected java.lang.Integer height
- Image height in pixels.
src
protected java.lang.String src
- URI where the image can be downloaded.
Image
public Image()
getRel
public java.lang.String getRel()
setRel
public void setRel(java.lang.String v)
getWidth
public int getWidth()
setWidth
public void setWidth(int w)
getHeight
public int getHeight()
setHeight
public void setHeight(int w)
getSrc
public java.lang.String getSrc()
setSrc
public void setSrc(java.lang.String s)
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
AbstractExtension.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