public class

Image

extends ExtensionPoint
implements Extension
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.extensions.Image

Class Overview

GData schema extension describing an image.

Summary

Nested Classes
class Image.Rel Image type. 
Fields
protected Integer height Image height in pixels.
protected String rel
protected String src URI where the image can be downloaded.
protected Integer width Image width in pixels.
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Image()
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.
int getHeight()
String getRel()
String getSrc()
int getWidth()
void setHeight(int w)
void setRel(String v)
void setSrc(String s)
void setWidth(int w)
[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

Fields

protected Integer height

Image height in pixels.

protected String rel

protected String src

URI where the image can be downloaded.

protected Integer width

Image width in pixels.

Public Constructors

public Image ()

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 int getHeight ()

public String getRel ()

public String getSrc ()

public int getWidth ()

public void setHeight (int w)

Parameters
w

public void setRel (String v)

Parameters
v

public void setSrc (String s)

Parameters
s

public void setWidth (int w)

Parameters
w