public class TextValue extends Object implements Value<String>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
serial number
|
private String |
unit
Unit of measure
|
private String |
value
Measurement value
|
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Get the unit of measure
|
String |
getValue()
Get the measurement value
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
boolean |
isSetValue()
Check whether the value is set
|
void |
setUnit(String unit)
Set the unit of measure
|
void |
setValue(String value)
Set the measurment value
|
String |
toString() |
private static final long serialVersionUID
private String value
private String unit
public TextValue(String value)
value
- Measurement valuepublic void setValue(String value)
Value
public String getValue()
Value
public void setUnit(String unit)
Value
public boolean isSetValue()
Value
isSetValue
in interface Value<String>
true
, if value is setCopyright © 2012-2014 52north.org. All Rights Reserved.