Class ParameterImpl
java.lang.Object
io.deephaven.query.parameterized.impl.parameter.ParameterImpl
- All Implemented Interfaces:
Parameter,Serializable
- Direct Known Subclasses:
TableParameter
The basic parameter implementation. An immutable set of the basic parameters and a constraint.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface io.deephaven.query.parameterized.Parameter
ZERO_LENGTH_PARAMETER_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionParameterImpl(String name, ValueType valueType, DisplayType displayType, boolean isCollection, boolean required, String[] defaultValues, Constraint constraint, Map<String, String> props) -
Method Summary
Modifier and TypeMethodDescriptionGet theConstraintfor this parameter.String[]Get the default values for this parameter.Get the display hint for the control.getName()Get the name of the parametergetProperty(String name) Get the value of the specified constant propertyGet the available property keysThe type of this parameterbooleanhasProperty(String name) Check if the parameter has the specified property.booleanReturn if this parameter is a collection of the specified type, as opposed to a single value.booleanCheck if this parameter is required for computation (may not be null)toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.query.parameterized.Parameter
getIntProperty
-
Field Details
-
PROP_TOOLTIP
- See Also:
-
PROP_WIDTH_HINT
- See Also:
-
PROP_HEIGHT_HINT
- See Also:
-
PROP_COLUMN
- See Also:
-
-
Constructor Details
-
ParameterImpl
public ParameterImpl(String name, ValueType valueType, DisplayType displayType, boolean isCollection, boolean required, String[] defaultValues, Constraint constraint, Map<String, String> props)
-
-
Method Details
-
getName
Description copied from interface:ParameterGet the name of the parameter -
isCollection
public boolean isCollection()Description copied from interface:ParameterReturn if this parameter is a collection of the specified type, as opposed to a single value.- Specified by:
isCollectionin interfaceParameter- Returns:
- true if this parameter is a set of values
-
isRequired
public boolean isRequired()Description copied from interface:ParameterCheck if this parameter is required for computation (may not be null)- Specified by:
isRequiredin interfaceParameter- Returns:
- true if the parameter is required
-
getValueType
Description copied from interface:ParameterThe type of this parameter- Specified by:
getValueTypein interfaceParameter- Returns:
- the type
-
getDefaultValues
Description copied from interface:ParameterGet the default values for this parameter. A zero length array is returned when there are no defaults.- Specified by:
getDefaultValuesin interfaceParameter- Returns:
- the default value
-
getConstraint
Description copied from interface:ParameterGet theConstraintfor this parameter.- Specified by:
getConstraintin interfaceParameter- Returns:
- the constraint or
Constraint.UNCONSTRAINEDif there are none.
-
getDisplayType
Description copied from interface:ParameterGet the display hint for the control.- Specified by:
getDisplayTypein interfaceParameter- Returns:
- the display type
-
getPropertyKeys
Description copied from interface:ParameterGet the available property keys- Specified by:
getPropertyKeysin interfaceParameter- Returns:
- Array of property keys available to get with `getProperty`
-
getProperty
Description copied from interface:ParameterGet the value of the specified constant property- Specified by:
getPropertyin interfaceParameter- Parameters:
name- the name of the property to retrieve- Returns:
- the property value.
-
hasProperty
Description copied from interface:ParameterCheck if the parameter has the specified property.- Specified by:
hasPropertyin interfaceParameter- Parameters:
name- the name of the property- Returns:
- true if the property exists.
-
toString
-