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
Modifier and TypeMethodDescription<X,E extends Exception>
Xaccept(ValueVisitor<X, E> visitor) getUnit()Get the unit of measureGet the unit of measure objectgetValue()Get the measurement valuedefault booleanCheck whether the unit of measure is setdefault booleanCheck whether the value is setvoidSet the unit of measureSet the unit of measure objectSet the measurment value
-
Method Details
-
setValue
Set the measurment value- Parameters:
value- Value to set
-
getValue
T getValue()Get the measurement value- Returns:
- Measurement value
-
setUnit
Set the unit of measure- Parameters:
unit- Unit of measure
-
setUnit
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
- Throws:
E
-