@deephaven/jsapi-types
    Preparing search index...

    Class StringListColumnRestriction

    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.

    Hierarchy (View Summary)

    Index
    • get allowedValues(): string[]

      The list of allowed string values for this column.

      Returns string[]

      The allowed values

    • get type(): string

      The fully-qualified protobuf type name of this restriction (e.g., "io.deephaven.proto.backplane.grpc.IntegerRangeRestriction").

      Returns string

      The restriction type name

    • Validates a proposed value against this restriction.

      Parameters

      • value: any

        The proposed column value to validate

      Returns string

      An error message if the value violates the restriction, or null if the value is valid