Interface DataParameterDescriptor


public interface DataParameterDescriptor
This interface describes the properties of a parameter. It is useful for any component that needs to know how to edit or visualize it.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Accepts a single value from a value set
    static final int
    Accepts a range of values defined with a minimum and a maximum value
    static final int
    Accepts a single value
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an array containing the available values accepted by the parameter.
    int
    Returns one of the available values type.
    int
    Returns the parameter's data type.
    Returns the parameter's default value.
    Returns the parameter's description
    Returns the maximum value when the parameter accepts a range of values.
    Returns the minimum value when the parameter accepts a range of values.
    Returns the parameter's name
  • Field Details

    • SINGLE

      static final int SINGLE
      Accepts a single value
      See Also:
    • CHOICE

      static final int CHOICE
      Accepts a single value from a value set
      See Also:
    • RANGE

      static final int RANGE
      Accepts a range of values defined with a minimum and a maximum value
      See Also:
  • Method Details

    • getName

      String getName()
      Returns the parameter's name
      Returns:
      String containing the parameter's name
    • getDescription

      String getDescription()
      Returns the parameter's description
      Returns:
      String containing the parameter's description.
    • getDataType

      int getDataType()
      Returns the parameter's data type.
      Returns:
      parameter's data type.
      See Also:
    • getDefaultValue

      Object getDefaultValue()
      Returns the parameter's default value.
      Returns:
      an Object containing the default value. Use the data type to cast.
    • getAvailableValuesType

      int getAvailableValuesType()
      Returns one of the available values type.
      Returns:
      an int with one of the available values type.
      See Also:
    • getAvailableValues

      Object[] getAvailableValues()
      Returns an array containing the available values accepted by the parameter.
      Returns:
      array of Object containing the available values accepted by the parameter. Use the data type to cast.
    • getMinValue

      Object getMinValue()
      Returns the minimum value when the parameter accepts a range of values.
      Returns:
      range's minimum value
    • getMaxValue

      Object getMaxValue()
      Returns the maximum value when the parameter accepts a range of values.
      Returns:
      range's maximum value.