public class Height extends PointingElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEIGHT_TAG
height
|
static java.lang.String |
UNITS_TAG
units
|
Constructor and Description |
---|
Height()
Creates a height expressed in km and value 0
|
Height(PointingElement org) |
Height(java.lang.String units,
float value)
Creates a height with units and value
|
Height(java.lang.String units,
java.lang.String value)
Creates a height with units and value
|
Modifier and Type | Method and Description |
---|---|
Height |
copy() |
float |
getHeight()
Get the value of the height
|
float |
getHeight(java.lang.String unit) |
java.lang.String |
getUnit()
Get the unit where the height is expressed
|
void |
setHeight(float h)
Set the value of the height
|
void |
setUnit(java.lang.String units)
Set the unit where the height is expressed
|
addAttribute, addChild, asDataset, copyFrom, equals, getAttribute, getAttributes, getChild, getChildren, getDescription, getFirstLevelTextContent, getName, getValue, hasAttributtes, hasChildren, readFrom, regenerate, removeAttribute, removeAttribute, setDescription, setValue, toString, toStringParameter, toXml, validate
public static java.lang.String HEIGHT_TAG
public static java.lang.String UNITS_TAG
public Height(PointingElement org)
public Height(java.lang.String units, java.lang.String value)
units
- value
- public Height(java.lang.String units, float value)
units
- value
- public Height()
units
- value
- public Height copy()
copy
in class PointingElement
public void setHeight(float h)
h
- public float getHeight()
public float getHeight(java.lang.String unit)
public java.lang.String getUnit()
public void setUnit(java.lang.String units)