Interface InputValue


  • public interface InputValue
    Interface for an input value for an argument.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getBoolean​(int index)
      Get the value for this argument as a boolean.
      long getDate​(int index)
      Get the value for this argument as a date (milliseconds since epoch).
      java.math.BigDecimal getDecimal​(int index)
      Get the value for this argument as a BigDecimal (for decimal and money types).
      double getDouble​(int index)
      Get the value for this argument as a double.
      float getFloat​(int index)
      Get the value for this argument as a float.
      int getInteger​(int index)
      Get the value for this argument as an integer.
      long getLong​(int index)
      Get the value for this argument as a long.
      Point getPoint​(int index)
      Get the value for this argument as a Point.
      Shape getShape​(int index)
      Get the value for this argument as a Shape.
      java.lang.String getString​(int index)
      Get the value for this argument as a String.
      int size()
      Get the number of values for this field.
    • Method Detail

      • size

        int size()
        Get the number of values for this field.

        Size may be 0, which indicates a null value.

      • getInteger

        int getInteger​(int index)
        Get the value for this argument as an integer.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not an integer.
      • getLong

        long getLong​(int index)
        Get the value for this argument as a long.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a long.
      • getFloat

        float getFloat​(int index)
        Get the value for this argument as a float.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a float.
      • getDouble

        double getDouble​(int index)
        Get the value for this argument as a double.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a double.
      • getBoolean

        boolean getBoolean​(int index)
        Get the value for this argument as a boolean.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a boolean.
      • getDate

        long getDate​(int index)
        Get the value for this argument as a date (milliseconds since epoch).
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a date.
      • getDecimal

        java.math.BigDecimal getDecimal​(int index)
        Get the value for this argument as a BigDecimal (for decimal and money types).
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a decimal or money type.
      • getString

        java.lang.String getString​(int index)
        Get the value for this argument as a String.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a string type.
      • getPoint

        Point getPoint​(int index)
        Get the value for this argument as a Point.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a point type.
      • getShape

        Shape getShape​(int index)
        Get the value for this argument as a Shape.
        Throws:
        java.lang.UnsupportedOperationException - if this argument is not a shape type.