Package org.n52.shetland.ogc.om.values
Class ReferenceValue
- java.lang.Object
-
- org.n52.shetland.ogc.om.values.ReferenceValue
-
- All Implemented Interfaces:
Value<ReferenceType>
public class ReferenceValue extends Object implements Value<ReferenceType>
-
-
Constructor Summary
Constructors Constructor Description ReferenceValue()ReferenceValue(ReferenceType value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)StringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectReferenceTypegetValue()Get the measurement valuebooleanisSetValue()Check whether the value is setvoidsetUnit(String unit)Set the unit of measureReferenceValuesetUnit(UoM unit)Set the unit of measure objectReferenceValuesetValue(ReferenceType value)Set the measurment valueStringtoString()
-
-
-
Constructor Detail
-
ReferenceValue
public ReferenceValue()
-
ReferenceValue
public ReferenceValue(ReferenceType value)
-
-
Method Detail
-
setValue
public ReferenceValue setValue(ReferenceType value)
Description copied from interface:ValueSet the measurment value- Specified by:
setValuein interfaceValue<ReferenceType>- Parameters:
value- Value to set
-
getValue
public ReferenceType getValue()
Description copied from interface:ValueGet the measurement value- Specified by:
getValuein interfaceValue<ReferenceType>- Returns:
- Measurement value
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<ReferenceType>- Parameters:
unit- Unit of measure
-
setUnit
public ReferenceValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<ReferenceType>- Parameters:
unit- Unit of measure
-
getUnit
public String getUnit()
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<ReferenceType>- Returns:
- Unit of measure
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<ReferenceType>- Returns:
- Unit of measure
-
isSetValue
public boolean isSetValue()
Description copied from interface:ValueCheck whether the value is set- Specified by:
isSetValuein interfaceValue<ReferenceType>- Returns:
true, if value is set
-
accept
public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Specified by:
acceptin interfaceValue<ReferenceType>- Throws:
E extends Exception
-
-