public class ReferenceValue extends java.lang.Object implements Value<ReferenceType>
| Constructor and Description |
|---|
ReferenceValue() |
ReferenceValue(ReferenceType value) |
| Modifier and Type | Method and Description |
|---|---|
<X,E extends java.lang.Exception> |
accept(ValueVisitor<X,E> visitor) |
java.lang.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(java.lang.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
|
java.lang.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(java.lang.String unit)
ValuesetUnit in interface Value<ReferenceType>unit - Unit of measurepublic ReferenceValue setUnit(UoM unit)
ValuesetUnit in interface Value<ReferenceType>unit - Unit of measurepublic java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic <X,E extends java.lang.Exception> X accept(ValueVisitor<X,E> visitor) throws E extends java.lang.Exception
accept in interface Value<ReferenceType>E extends java.lang.ExceptionCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.