Class NilTemplateValue

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

public class NilTemplateValue extends Object implements Value<String>
Nil template value for observation
Since:
1.0.0
  • Constructor Details

    • NilTemplateValue

      public NilTemplateValue()
  • Method Details

    • setValue

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

      public String getValue()
      Description copied from interface: Value
      Get the measurement value
      Specified by:
      getValue in interface Value<String>
      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<String>
      Parameters:
      unit - Unit of measure
    • setUnit

      public NilTemplateValue setUnit(UoM unit)
      Description copied from interface: Value
      Set the unit of measure object
      Specified by:
      setUnit in interface Value<String>
      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<String>
      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<String>
      Returns:
      Unit of measure
    • toString

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

      public boolean isSetValue()
      Description copied from interface: Value
      Check whether the value is set
      Specified by:
      isSetValue in interface Value<String>
      Returns:
      true, if value is set
    • accept

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