public class GeoPt extends Element
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GeoPt()
Constructs an instance using the default key.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
public static void registerMetadata(MetadataRegistry registry)
public GeoPt lock()
Element
public java.lang.Float getElev()
public GeoPt setElev(java.lang.Float elev)
elev
- Elevation or null
to resetpublic boolean hasElev()
public java.lang.String getLabel()
public GeoPt setLabel(java.lang.String label)
label
- Label or null
to resetpublic boolean hasLabel()
public java.lang.Float getLat()
public GeoPt setLat(java.lang.Float lat)
lat
- Latitude or null
to resetpublic boolean hasLat()
public java.lang.Float getLon()
public GeoPt setLon(java.lang.Float lon)
lon
- Longitude or null
to resetpublic boolean hasLon()
public DateTime getTime()
public GeoPt setTime(DateTime time)
time
- Time or null
to resetpublic boolean hasTime()