Class UnknownValue

java.lang.Object
org.n52.shetland.ogc.om.values.UnknownValue
All Implemented Interfaces:
Value<Object>

public class UnknownValue extends Object implements Value<Object>
Unknown value for observation if type is unknown
Since:
1.0.0
  • Constructor Details

    • UnknownValue

      public UnknownValue(Object value)
      Constructor
      Parameters:
      value - Measurement value
  • Method Details

    • setValue

      public UnknownValue setValue(Object value)
      Description copied from interface: Value
      Set the measurment value
      Specified by:
      setValue in interface Value<Object>
      Parameters:
      value - Value to set
    • getValue

      public Object getValue()
      Description copied from interface: Value
      Get the measurement value
      Specified by:
      getValue in interface Value<Object>
      Returns:
      Measurement value
    • setUnit

      public void setUnit(String unit)
      Description copied from interface: Value
      Set the unit of measure
      Specified by:
      setUnit in interface Value<Object>
      Parameters:
      unit - Unit of measure
    • setUnit

      public UnknownValue setUnit(UoM unit)
      Description copied from interface: Value
      Set the unit of measure object
      Specified by:
      setUnit in interface Value<Object>
      Parameters:
      unit - Unit of measure
    • getUnit

      public String getUnit()
      Description copied from interface: Value
      Get the unit of measure
      Specified by:
      getUnit in interface Value<Object>
      Returns:
      Unit of measure
    • getUnitObject

      public UoM getUnitObject()
      Description copied from interface: Value
      Get the unit of measure object
      Specified by:
      getUnitObject in interface Value<Object>
      Returns:
      Unit of measure
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public <X, E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E
      Specified by:
      accept in interface Value<Object>
      Throws:
      E