|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.gd.GeoPt
public class GeoPt
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. |
protected |
GeoPt(ElementKey<?,? extends GeoPt> key)
Subclass constructor, allows subclasses to supply their own element 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. |
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,GeoPt> KEY
public static final AttributeKey<java.lang.Float> ELEV
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.Float> LAT
public static final AttributeKey<java.lang.Float> LON
public static final AttributeKey<DateTime> TIME
Constructor Detail |
---|
public GeoPt()
protected GeoPt(ElementKey<?,? extends GeoPt> key)
protected GeoPt(ElementKey<?,? extends GeoPt> key, Element source)
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
Element.createElement(ElementKey, Element)
.
key
- The key to use for this element.source
- source elementMethod Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public GeoPt lock()
Element
lock
in class Element
public java.lang.Float getElev()
public GeoPt setElev(java.lang.Float elev)
elev
- Elevation or null
to reset
public boolean hasElev()
public java.lang.String getLabel()
public GeoPt setLabel(java.lang.String label)
label
- Label or null
to reset
public boolean hasLabel()
public java.lang.Float getLat()
public GeoPt setLat(java.lang.Float lat)
lat
- Latitude or null
to reset
public boolean hasLat()
public java.lang.Float getLon()
public GeoPt setLon(java.lang.Float lon)
lon
- Longitude or null
to reset
public boolean hasLon()
public DateTime getTime()
public GeoPt setTime(DateTime time)
time
- Time or null
to reset
public boolean hasTime()
public boolean equals(java.lang.Object obj)
equals
in class Element
public int hashCode()
hashCode
in class Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |