package com.codename1.ui.validation

The validation framework allows us to mark invalid input in text components and disable components in the case of invalid input

Types

interface ConstraintTo perform validation we add a constraint to a validator, a constraint defines whether a value if valid for a given object
class ExistInConstraintCreates a validation constraint to ensure input value exists in a list of items
class GroupConstraintGroups several constraints as if they are one constraint
class LengthConstraintCreates a validation constraint based on minimum input length
class NotConstraintNegates a group of constraints, such that, if any of its child constraints is true, it returns false.
class NumericConstraintForces the value to be a number potentially within specific bounds
class RegexConstraintCreates a validation constraint based on a regular expression
class ValidatorBinds validation constraints to form elements, when validation fails it can be highlighted directly on the component via an emblem or change of the UIID (to original UIID name + “Invalid” e.g. “TextFieldInvalid”).