Package org.n52.shetland.ogc.om.values
Interface Value<T>
-
- Type Parameters:
T- specific value type
- All Known Subinterfaces:
ComparableValue<T,C>,DiscreteCoverage<T>,MultiValue<T>,XmlValue<T>
- All Known Implementing Classes:
BooleanValue,CategoryValue,ComplexValue,CountValue,CvDiscretePointCoverage,GeometryValue,HrefAttributeValue,MultiPointCoverage,NilTemplateValue,ProfileValue,QuantityRangeValue,QuantityValue,RectifiedGridCoverage,ReferenceValue,SweDataArrayValue,TextValue,TimeRangeValue,TimeValue,TLVTValue,TrajectoryValue,TVPValue,UnknownValue
public interface Value<T>Interface for measurement value representation for observation- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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 objectTgetValue()Get the measurement valuedefault booleanisSetUnit()Check whether the unit of measure is setdefault booleanisSetValue()Check whether the value is setvoidsetUnit(String unit)Set the unit of measureValue<T>setUnit(UoM unit)Set the unit of measure objectValue<T>setValue(T value)Set the measurment value
-
-
-
Method Detail
-
getValue
T getValue()
Get the measurement value- Returns:
- Measurement value
-
setUnit
void setUnit(String unit)
Set the unit of measure- Parameters:
unit- Unit of measure
-
setUnit
Value<T> setUnit(UoM unit)
Set the unit of measure object- Parameters:
unit- Unit of measure
-
getUnitObject
UoM getUnitObject()
Get the unit of measure object- Returns:
- Unit of measure
-
getUnit
String getUnit()
Get the unit of measure- Returns:
- Unit of measure
-
isSetValue
default boolean isSetValue()
Check whether the value is set- Returns:
true, if value is set
-
isSetUnit
default boolean isSetUnit()
Check whether the unit of measure is set- Returns:
true, if unit of measure is set
-
accept
<X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Throws:
E extends Exception
-
-