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 Details

    • setValue

      Value<T> setValue(T value)
      Set the measurment value
      Parameters:
      value - Value to set
    • 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
      Throws:
      E