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.
|
Modifier | Constructor and Description |
---|---|
|
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. |
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.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, 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 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 elementpublic 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()