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 String
static final String
static final String
static final String
Fields 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 theConstraint
for 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 parameterboolean
hasProperty
(String name) Check if the parameter has the specified property.boolean
Return if this parameter is a collection of the specified type, as opposed to a single value.boolean
Check 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, wait
Methods 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:Parameter
Get the name of the parameter -
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 interfaceParameter
- 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 interfaceParameter
- Returns:
- true if the parameter is required
-
getValueType
Description copied from interface:Parameter
The type of this parameter- Specified by:
getValueType
in interfaceParameter
- Returns:
- the type
-
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 interfaceParameter
- Returns:
- the default value
-
getConstraint
Description copied from interface:Parameter
Get theConstraint
for this parameter.- Specified by:
getConstraint
in interfaceParameter
- Returns:
- the constraint or
Constraint.UNCONSTRAINED
if there are none.
-
getDisplayType
Description copied from interface:Parameter
Get the display hint for the control.- Specified by:
getDisplayType
in interfaceParameter
- Returns:
- the display type
-
getPropertyKeys
Description copied from interface:Parameter
Get the available property keys- Specified by:
getPropertyKeys
in interfaceParameter
- Returns:
- Array of property keys available to get with `getProperty`
-
getProperty
Description copied from interface:Parameter
Get the value of the specified constant property- Specified by:
getProperty
in interfaceParameter
- Parameters:
name
- the name of the property to retrieve- Returns:
- the property value.
-
hasProperty
Description copied from interface:Parameter
Check if the parameter has the specified property.- Specified by:
hasProperty
in interfaceParameter
- Parameters:
name
- the name of the property- Returns:
- true if the property exists.
-
toString
-