Package io.deephaven.web.client.api
Class StringListColumnRestriction
java.lang.Object
io.deephaven.web.client.api.ColumnRestriction
io.deephaven.web.client.api.StringListColumnRestriction
@TestUseOnly
@TsName(namespace="dh")
public class StringListColumnRestriction
extends ColumnRestriction
A
ColumnRestriction that constrains a string column to one of a fixed set of allowed values.
This class is intended for testing and demonstrating validation functionality, it is not production ready and may be changed or removed at any time.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.deephaven.web.client.api.ColumnRestriction
getType
-
Constructor Details
-
StringListColumnRestriction
-
-
Method Details
-
getAllowedValues
The list of allowed string values for this column.- Returns:
- The allowed values
-
validate
Description copied from class:ColumnRestrictionValidates a proposed value against this restriction.- Specified by:
validatein classColumnRestriction- Parameters:
value- The proposed column value to validate- Returns:
- An error message if the value violates the restriction, or
nullif the value is valid
-
toString
- Overrides:
toStringin classColumnRestriction
-