Package org.vast.data

Class AllowedValuesImpl

java.lang.Object
org.vast.data.AbstractSWEImpl
org.vast.data.AllowedValuesImpl
All Implemented Interfaces:
Serializable, HasCopy, AbstractSWE, AllowedValues, DataConstraint

public class AllowedValuesImpl extends AbstractSWEImpl implements AllowedValues
POJO class for XML type AllowedValuesType(@http://www.opengis.net/swe/2.0). This is a complex type.
See Also:
  • Field Details

    • valueList

      protected ArrayList<Double> valueList
    • intervalList

      protected ArrayList<double[]> intervalList
    • significantFigures

      protected Integer significantFigures
  • Constructor Details

    • AllowedValuesImpl

      public AllowedValuesImpl()
  • Method Details

    • copy

      public AllowedValuesImpl copy()
      Specified by:
      copy in interface HasCopy
    • isValid

      public boolean isValid(double value)
    • getAssertionMessage

      public String getAssertionMessage()
    • getValueList

      public List<Double> getValueList()
      Gets the list of value properties
      Specified by:
      getValueList in interface AllowedValues
    • getNumValues

      public int getNumValues()
      Returns number of value properties
      Specified by:
      getNumValues in interface AllowedValues
    • addValue

      public void addValue(double value)
      Adds a new value property
      Specified by:
      addValue in interface AllowedValues
    • getIntervalList

      public List<double[]> getIntervalList()
      Gets the list of interval properties
      Specified by:
      getIntervalList in interface AllowedValues
    • getNumIntervals

      public int getNumIntervals()
      Returns number of interval properties
      Specified by:
      getNumIntervals in interface AllowedValues
    • addInterval

      public void addInterval(double[] interval)
      Adds a new interval property
      Specified by:
      addInterval in interface AllowedValues
    • getSignificantFigures

      public int getSignificantFigures()
      Gets the significantFigures property
      Specified by:
      getSignificantFigures in interface AllowedValues
    • isSetSignificantFigures

      public boolean isSetSignificantFigures()
      Checks if significantFigures is set
      Specified by:
      isSetSignificantFigures in interface AllowedValues
    • setSignificantFigures

      public void setSignificantFigures(int significantFigures)
      Sets the significantFigures property
      Specified by:
      setSignificantFigures in interface AllowedValues
    • unSetSignificantFigures

      public void unSetSignificantFigures()
      Unsets the significantFigures property
      Specified by:
      unSetSignificantFigures in interface AllowedValues