Package io.deephaven.web.client.api
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 Summary
Constructors -
Method Summary
Methods inherited from class io.deephaven.web.client.api.ColumnRestriction
getType
-
Constructor Details
-
NonEmptyColumnRestriction
-
-
Method Details
-
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
-