com.google.gdata.model.gd
Class GeoPt

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.gd.GeoPt

public class GeoPt
extends Element

GData schema extension describing a geographic location.


Field Summary
static AttributeKey<java.lang.Float> ELEV
          Elevation.
static ElementKey<java.lang.Void,GeoPt> KEY
          The key for this element.
static AttributeKey<java.lang.String> LABEL
          Label.
static AttributeKey<java.lang.Float> LAT
          Latitude.
static AttributeKey<java.lang.Float> LON
          Longitude.
static AttributeKey<DateTime> TIME
          Time.
 
Constructor Summary
GeoPt()
          Constructs an instance using the default key.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Float getElev()
          Returns the Elevation.
 java.lang.String getLabel()
          Returns the Label.
 java.lang.Float getLat()
          Returns the Latitude.
 java.lang.Float getLon()
          Returns the Longitude.
 DateTime getTime()
          Returns the Time.
 boolean hasElev()
          Returns whether it has the Elevation.
 int hashCode()
           
 boolean hasLabel()
          Returns whether it has the Label.
 boolean hasLat()
          Returns whether it has the Latitude.
 boolean hasLon()
          Returns whether it has the Longitude.
 boolean hasTime()
          Returns whether it has the Time.
 GeoPt lock()
          Locks this element.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 GeoPt setElev(java.lang.Float elev)
          Sets the Elevation.
 GeoPt setLabel(java.lang.String label)
          Sets the Label.
 GeoPt setLat(java.lang.Float lat)
          Sets the Latitude.
 GeoPt setLon(java.lang.Float lon)
          Sets the Longitude.
 GeoPt setTime(DateTime time)
          Sets the Time.
 
Methods inherited from class com.google.gdata.model.Element
addElement, addElement, addElement, clear, createElement, createElement, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,GeoPt> KEY
The key for this element.


ELEV

public static final AttributeKey<java.lang.Float> ELEV
Elevation.


LABEL

public static final AttributeKey<java.lang.String> LABEL
Label.


LAT

public static final AttributeKey<java.lang.Float> LAT
Latitude.


LON

public static final AttributeKey<java.lang.Float> LON
Longitude.


TIME

public static final AttributeKey<DateTime> TIME
Time.

Constructor Detail

GeoPt

public GeoPt()
Constructs an instance using the default key.

Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.


lock

public GeoPt lock()
Description copied from class: Element
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

Overrides:
lock in class Element

getElev

public java.lang.Float getElev()
Returns the Elevation.

Returns:
Elevation

setElev

public GeoPt setElev(java.lang.Float elev)
Sets the Elevation.

Parameters:
elev - Elevation or null to reset
Returns:
this to enable chaining setters

hasElev

public boolean hasElev()
Returns whether it has the Elevation.

Returns:
whether it has the Elevation

getLabel

public java.lang.String getLabel()
Returns the Label.

Returns:
Label

setLabel

public GeoPt setLabel(java.lang.String label)
Sets the Label.

Parameters:
label - Label or null to reset
Returns:
this to enable chaining setters

hasLabel

public boolean hasLabel()
Returns whether it has the Label.

Returns:
whether it has the Label

getLat

public java.lang.Float getLat()
Returns the Latitude.

Returns:
Latitude

setLat

public GeoPt setLat(java.lang.Float lat)
Sets the Latitude.

Parameters:
lat - Latitude or null to reset
Returns:
this to enable chaining setters

hasLat

public boolean hasLat()
Returns whether it has the Latitude.

Returns:
whether it has the Latitude

getLon

public java.lang.Float getLon()
Returns the Longitude.

Returns:
Longitude

setLon

public GeoPt setLon(java.lang.Float lon)
Sets the Longitude.

Parameters:
lon - Longitude or null to reset
Returns:
this to enable chaining setters

hasLon

public boolean hasLon()
Returns whether it has the Longitude.

Returns:
whether it has the Longitude

getTime

public DateTime getTime()
Returns the Time.

Returns:
Time

setTime

public GeoPt setTime(DateTime time)
Sets the Time.

Parameters:
time - Time or null to reset
Returns:
this to enable chaining setters

hasTime

public boolean hasTime()
Returns whether it has the Time.

Returns:
whether it has the Time

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Element

hashCode

public int hashCode()
Overrides:
hashCode in class Element