public class GmlMeasureType extends Object
Modifier and Type | Field and Description |
---|---|
private String |
unit
Unit of measure
|
private BigDecimal |
value
Measured value
|
Constructor and Description |
---|
GmlMeasureType(BigDecimal value)
constructor
|
GmlMeasureType(BigDecimal value,
String unit)
constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Get unit of measure
|
BigDecimal |
getValue() |
boolean |
isSetUnit()
Check whether unit of measure is set
|
boolean |
isSetValue()
Check whether measured value is set
|
void |
setUnit(String unit)
Set unit of measure
|
void |
setValue(BigDecimal value) |
String |
toString() |
private BigDecimal value
private String unit
public GmlMeasureType(BigDecimal value)
value
- Measured valuepublic GmlMeasureType(BigDecimal value, String unit)
value
- Measured valueunit
- Unit of measurepublic void setValue(BigDecimal value)
value
- Measured value to setpublic BigDecimal getValue()
public void setUnit(String unit)
unit
- Unit of measure to setpublic String getUnit()
public boolean isSetValue()
true
, if measured value is setpublic boolean isSetUnit()
true
, if unit of measure is setCopyright © 2012-2014 52north.org. All Rights Reserved.