| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ExtensionPoint | ||
| ↳ | com.google.gdata.data.geo.impl.W3CPoint | ||
Extension for a W3C geo:Point element. It contains the getter/setter for specifying the longitude and latitude of a geo-coordinate. Please see the W3C document http://www.w3.org/2003/01/geo for more information.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| W3CPoint.Handler | Simple delegating handler implementation that uses (only) ExtensionProfile linkages for child element lookup. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | NAME | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an empty geo:Point element.
| |||||||||||
Constructs a geo:Point element with child geo:lat and geo:long
elements based on the parameters passed in.
| |||||||||||
Constructs a geo:Point element copying the lat and lon values from the
given point.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
| |||||||||||
Generates the XML corresponding to this GeoPoint.
| |||||||||||
Returns the suggested extension description with configurable
repeatability.
| |||||||||||
Returns the suggested extension description and is repeatable.
| |||||||||||
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. | |||||||||||
Sets the geo location based on the passed in lat and lon values.
| |||||||||||
|
[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
| |||||||||||
From interface
com.google.gdata.data.geo.Point
| |||||||||||
Constructs an empty geo:Point element.
Constructs a geo:Point element with child geo:lat and geo:long elements based on the parameters passed in.
| lat | The latitude coordinate of this point. |
|---|---|
| lon | The longitude coordinate of this point. |
Constructs a geo:Point element copying the lat and lon values from the given point. If the given point is null an empty geo:Point element will be created.
| copyFrom |
|---|
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.
| extProfile | The ExtensionProfile to initialize. |
|---|
Generates the XML corresponding to this GeoPoint.
| w | XML writer |
|---|---|
| extProfile | Extension profile |
| IOException |
|---|
Returns the suggested extension description with configurable repeatability.
| repeatable |
|---|
Returns the suggested extension description and is repeatable.
The default implementation uses the AbstractExtension.AttributesHandler to handle
parsing the extension.
| extProfile | Extension profile |
|---|---|
| namespace | Extension namespace |
| localName | Tag name, without the namespace prefix |
| attrs | Tag attributes |
Sets the geo location based on the passed in lat and lon values. Both must be null or non null, and the lat must be between -90 and 90, and the lon between -180 and 180.
| lat | The latitude in degrees, from -90 to 90. |
|---|---|
| lon | The longitude in degrees, from -180 to 180. |