public class ReferenceValue extends Object implements Value<ReferenceType>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private String |
unit
Unit of measure
|
private ReferenceType |
value |
Constructor and Description |
---|
ReferenceValue() |
ReferenceValue(ReferenceType value) |
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Get the unit of measure
|
ReferenceType |
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(ReferenceType value)
Set the measurment value
|
String |
toString() |
private static final long serialVersionUID
private ReferenceType value
private String unit
public ReferenceValue()
public ReferenceValue(ReferenceType value)
public void setValue(ReferenceType value)
Value
setValue
in interface Value<ReferenceType>
value
- Value to setpublic ReferenceType getValue()
Value
getValue
in interface Value<ReferenceType>
public void setUnit(String unit)
Value
setUnit
in interface Value<ReferenceType>
unit
- Unit of measurepublic String getUnit()
Value
getUnit
in interface Value<ReferenceType>
public boolean isSetValue()
Value
isSetValue
in interface Value<ReferenceType>
true
, if value is setpublic boolean isSetUnit()
Value
isSetUnit
in interface Value<ReferenceType>
true
, if unit of measure is setCopyright © 2012-2015 52north.org. All Rights Reserved.