|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.geo.impl.PointDataImpl
public class PointDataImpl
Implementation of the PointData interface. Currently only supports
a non-repeating Point extension. This class uses an ExtensionPoint
that is passed in to store the Point extension.
Constructor Summary | |
---|---|
PointDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of PointData with the given extension point as the backing storage for data. |
Method Summary | |
---|---|
void |
clearPoint()
Clears the point data and removes the extension point. |
static void |
clearPoint(ExtensionPoint ext)
Removes the first Point extension found on the extension point. |
void |
declareExtensions(ExtensionProfile extProfile)
|
Point |
getGeoLocation()
Gets the geo-location of the entity. |
static Point |
getPoint(ExtensionPoint ext)
Helper method to retrieve the Box extension point. |
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the geo-location of the entity based on the lat and long coordinates passed in. |
void |
setGeoLocation(Point point)
Sets the geo-location of the entity based on the Point extension. |
static void |
setPoint(ExtensionPoint ext,
Point point)
Sets the geo point of the extension passed in. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointDataImpl(ExtensionPoint extensionPoint)
Method Detail |
---|
public void setGeoLocation(java.lang.Double lat, java.lang.Double lon) throws java.lang.IllegalArgumentException
setGeoLocation
in interface PointData
lat
- The latitude coordinate, between -90 and 90 degrees.lon
- The longitude coordinate, between -180 and 180 degrees.
java.lang.IllegalArgumentException
- if the latitude and longitude coordinates
are invalid.public void setGeoLocation(Point point)
setGeoLocation
in interface PointData
point
- A point containing the latitude and longitude coordinates.public Point getGeoLocation()
getGeoLocation
in interface PointData
public void clearPoint()
PointData
clearPoint
in interface PointData
public void declareExtensions(ExtensionProfile extProfile)
public static void setPoint(ExtensionPoint ext, Point point)
ext
- The extension point to add the Point to.point
- The new point information.public static Point getPoint(ExtensionPoint ext)
ext
- The containing extension point.
public static void clearPoint(ExtensionPoint ext)
ext
- The extension point from which to clear the Box extension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |