public class

GeoPt

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.GeoPt

Class Overview

GData schema extension describing a geographic location.

Summary

Fields
public static final AttributeKey<Float> ELEV Elevation.
public static final ElementKey<Void, GeoPt> KEY The key for this element.
public static final AttributeKey<String> LABEL Label.
public static final AttributeKey<Float> LAT Latitude.
public static final AttributeKey<Float> LON Longitude.
public static final AttributeKey<DateTime> TIME Time.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
GeoPt()
Constructs an instance using the default key.
Protected Constructors
GeoPt(ElementKey<?, ? extends GeoPt> key)
Subclass constructor, allows subclasses to supply their own element key.
GeoPt(ElementKey<?, ? extends GeoPt> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
boolean equals(Object obj)
Float getElev()
Returns the Elevation.
String getLabel()
Returns the Label.
Float getLat()
Returns the Latitude.
Float getLon()
Returns the Longitude.
DateTime getTime()
Returns the Time.
boolean hasElev()
Returns whether it has the Elevation.
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.
int hashCode()
GeoPt lock()
Locks this element.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
GeoPt setElev(Float elev)
Sets the Elevation.
GeoPt setLabel(String label)
Sets the Label.
GeoPt setLat(Float lat)
Sets the Latitude.
GeoPt setLon(Float lon)
Sets the Longitude.
GeoPt setTime(DateTime time)
Sets the Time.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final AttributeKey<Float> ELEV

Elevation.

public static final ElementKey<Void, GeoPt> KEY

The key for this element.

public static final AttributeKey<String> LABEL

Label.

public static final AttributeKey<Float> LAT

Latitude.

public static final AttributeKey<Float> LON

Longitude.

public static final AttributeKey<DateTime> TIME

Time.

Public Constructors

public GeoPt ()

Constructs an instance using the default key.

Protected Constructors

protected GeoPt (ElementKey<?, ? extends GeoPt> key)

Subclass constructor, allows subclasses to supply their own element key.

Parameters
key

protected GeoPt (ElementKey<?, ? extends GeoPt> key, Element source)

Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element. This constructor is used when adapting from one element key to another. You cannot call this constructor directly, instead use createElement(ElementKey, Element).

Parameters
key The key to use for this element.
source Source element

Public Methods

public boolean equals (Object obj)

Parameters
obj

public Float getElev ()

Returns the Elevation.

Returns
  • Elevation

public String getLabel ()

Returns the Label.

Returns
  • Label

public Float getLat ()

Returns the Latitude.

Returns
  • Latitude

public Float getLon ()

Returns the Longitude.

Returns
  • Longitude

public DateTime getTime ()

Returns the Time.

Returns
  • Time

public boolean hasElev ()

Returns whether it has the Elevation.

Returns
  • whether it has the Elevation

public boolean hasLabel ()

Returns whether it has the Label.

Returns
  • whether it has the Label

public boolean hasLat ()

Returns whether it has the Latitude.

Returns
  • whether it has the Latitude

public boolean hasLon ()

Returns whether it has the Longitude.

Returns
  • whether it has the Longitude

public boolean hasTime ()

Returns whether it has the Time.

Returns
  • whether it has the Time

public int hashCode ()

public GeoPt lock ()

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.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public GeoPt setElev (Float elev)

Sets the Elevation.

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

public GeoPt setLabel (String label)

Sets the Label.

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

public GeoPt setLat (Float lat)

Sets the Latitude.

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

public GeoPt setLon (Float lon)

Sets the Longitude.

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

public GeoPt setTime (DateTime time)

Sets the Time.

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