Class NonEmptyColumnRestriction

java.lang.Object
io.deephaven.web.client.api.ColumnRestriction
io.deephaven.web.client.api.NonEmptyColumnRestriction

@TestUseOnly @TsName(namespace="dh") public class NonEmptyColumnRestriction extends ColumnRestriction
A ColumnRestriction that requires a string column value to be non-empty.

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 Details

  • Method Details

    • validate

      @JsMethod public @JsNullable String validate(@JsNullable jsinterop.base.Any value)
      Description copied from class: ColumnRestriction
      Validates a proposed value against this restriction.
      Specified by:
      validate in class ColumnRestriction
      Parameters:
      value - The proposed column value to validate
      Returns:
      An error message if the value violates the restriction, or null if the value is valid
    • toString

      public String toString()
      Overrides:
      toString in class ColumnRestriction