public class

GmlPoint

extends ExtensionPoint
implements Point
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.geo.impl.GmlPoint

Class Overview

Extension for a GML gml:Point element.

Summary

Constants
String NAME
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GmlPoint()
Constructs an empty gml:Point element.
GmlPoint(Double lat, Double lon)
Constructs a gml:Point element out of the given lat and lon values.
GmlPoint(Point point)
Constructs a gml:Point element using the given Point coordinates for the nested gml:pos element.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
void generate(XmlWriter w, ExtensionProfile extProfile)
Generates the XML corresponding to this gml point.
static ExtensionDescription getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatability.
static ExtensionDescription getDefaultDescription()
Returns the suggested extension description and is repeatable.
Double getLatitude()
Double getLongitude()
void setGeoLocation(Double lat, Double lon)
Sets the latitude and longitude of the gml:pos element of this Point to the latitude and longitude coordinates specified.
[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

Constants

static final String NAME

Constant Value: "Point"

Public Constructors

public GmlPoint ()

Constructs an empty gml:Point element.

public GmlPoint (Double lat, Double lon)

Constructs a gml:Point element out of the given lat and lon values. This will construct a gml:pos element to hold the actual values. If the values are null then an empty gml:pos element will be created.

Parameters
lat
lon

public GmlPoint (Point point)

Constructs a gml:Point element using the given Point coordinates for the nested gml:pos element. If the point is already a gml:pos, then it will be used directly as the extension, otherwise a gml:pos element will be created as a copy of the given point.

Parameters
point

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

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.

Parameters
extProfile The ExtensionProfile to initialize.

public void generate (XmlWriter w, ExtensionProfile extProfile)

Generates the XML corresponding to this gml point.

Parameters
w XML writer
extProfile Extension profile
Throws
IOException

public static ExtensionDescription getDefaultDescription (boolean repeatable)

Returns the suggested extension description with configurable repeatability.

Parameters
repeatable

public static ExtensionDescription getDefaultDescription ()

Returns the suggested extension description and is repeatable.

public Double getLatitude ()

Returns
  • the value of the gml:pos element within this Point.

public Double getLongitude ()

Returns
  • the value of the gml:pos element's longitude within this Point.

public void setGeoLocation (Double lat, Double lon)

Sets the latitude and longitude of the gml:pos element of this Point to the latitude and longitude coordinates specified.

Parameters
lat The latitude coordinate of this point.
lon The longitude coordinate of this point.