public class ReferenceValue extends Object implements Value<ReferenceType>
| Constructor and Description |
|---|
ReferenceValue() |
ReferenceValue(ReferenceType value) |
| Modifier and Type | Method and Description |
|---|---|
<X,E extends Exception> |
accept(ValueVisitor<X,E> visitor) |
String |
getUnit()
Get the unit of measure
|
UoM |
getUnitObject()
Get the unit of measure object
|
ReferenceType |
getValue()
Get the measurement value
|
boolean |
isSetValue()
Check whether the value is set
|
void |
setUnit(String unit)
Set the unit of measure
|
ReferenceValue |
setUnit(UoM unit)
Set the unit of measure object
|
ReferenceValue |
setValue(ReferenceType value)
Set the measurment value
|
String |
toString() |
public ReferenceValue()
public ReferenceValue(ReferenceType value)
public ReferenceValue setValue(ReferenceType value)
ValuesetValue in interface Value<ReferenceType>value - Value to setpublic ReferenceType getValue()
ValuegetValue in interface Value<ReferenceType>public void setUnit(String unit)
ValuesetUnit in interface Value<ReferenceType>unit - Unit of measurepublic ReferenceValue setUnit(UoM unit)
ValuesetUnit in interface Value<ReferenceType>unit - Unit of measurepublic String getUnit()
ValuegetUnit in interface Value<ReferenceType>public UoM getUnitObject()
ValuegetUnitObject in interface Value<ReferenceType>public boolean isSetValue()
ValueisSetValue in interface Value<ReferenceType>true, if value is setpublic <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
accept in interface Value<ReferenceType>E extends ExceptionCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.