java.lang.Object
io.deephaven.query.parameterized.impl.parameter.ParameterImpl
All Implemented Interfaces:
Parameter, Serializable
Direct Known Subclasses:
TableParameter

public class ParameterImpl extends Object implements Parameter, Serializable
The basic parameter implementation. An immutable set of the basic parameters and a constraint.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getName

      @NotNull public String getName()
      Description copied from interface: Parameter
      Get the name of the parameter
      Specified by:
      getName in interface Parameter
      Returns:
      the name
    • isCollection

      public boolean isCollection()
      Description copied from interface: Parameter
      Return if this parameter is a collection of the specified type, as opposed to a single value.
      Specified by:
      isCollection in interface Parameter
      Returns:
      true if this parameter is a set of values
    • isRequired

      public boolean isRequired()
      Description copied from interface: Parameter
      Check if this parameter is required for computation (may not be null)
      Specified by:
      isRequired in interface Parameter
      Returns:
      true if the parameter is required
    • getValueType

      @NotNull public ValueType getValueType()
      Description copied from interface: Parameter
      The type of this parameter
      Specified by:
      getValueType in interface Parameter
      Returns:
      the type
    • getDefaultValues

      @NotNull public String[] getDefaultValues()
      Description copied from interface: Parameter
      Get the default values for this parameter. A zero length array is returned when there are no defaults.
      Specified by:
      getDefaultValues in interface Parameter
      Returns:
      the default value
    • getConstraint

      @NotNull public Constraint getConstraint()
      Description copied from interface: Parameter
      Get the Constraint for this parameter.
      Specified by:
      getConstraint in interface Parameter
      Returns:
      the constraint or Constraint.UNCONSTRAINED if there are none.
    • getDisplayType

      @NotNull public DisplayType getDisplayType()
      Description copied from interface: Parameter
      Get the display hint for the control.
      Specified by:
      getDisplayType in interface Parameter
      Returns:
      the display type
    • getPropertyKeys

      @NotNull public Set<String> getPropertyKeys()
      Description copied from interface: Parameter
      Get the available property keys
      Specified by:
      getPropertyKeys in interface Parameter
      Returns:
      Array of property keys available to get with `getProperty`
    • getProperty

      @Nullable public String getProperty(@NotNull String name)
      Description copied from interface: Parameter
      Get the value of the specified constant property
      Specified by:
      getProperty in interface Parameter
      Parameters:
      name - the name of the property to retrieve
      Returns:
      the property value.
    • hasProperty

      public boolean hasProperty(@NotNull String name)
      Description copied from interface: Parameter
      Check if the parameter has the specified property.
      Specified by:
      hasProperty in interface Parameter
      Parameters:
      name - the name of the property
      Returns:
      true if the property exists.
    • toString

      public String toString()
      Overrides:
      toString in class Object