|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.geo.impl.GmlPoint
public class GmlPoint
Extension for a GML gml:Point element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
GmlPoint()
Constructs an empty gml:Point element. |
|
GmlPoint(java.lang.Double lat,
java.lang.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. |
Method Summary | |
---|---|
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()
Returns the suggested extension description and is repeatable. |
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatability. |
java.lang.Double |
getLatitude()
|
java.lang.Double |
getLongitude()
|
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the latitude and longitude of the gml:pos element of this Point to the latitude and longitude coordinates specified. |
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 |
Methods inherited from interface com.google.gdata.data.Extension |
---|
getHandler |
Constructor Detail |
---|
public GmlPoint()
public GmlPoint(java.lang.Double lat, java.lang.Double lon)
public GmlPoint(Point point)
Method Detail |
---|
public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public java.lang.Double getLatitude()
getLatitude
in interface Point
public java.lang.Double getLongitude()
getLongitude
in interface Point
public void setGeoLocation(java.lang.Double lat, java.lang.Double lon)
setGeoLocation
in interface Point
lat
- The latitude coordinate of this point.lon
- the longitude coordinate of this point.public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profile
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |