# Package com.codename1.ui.validation

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

- Related Packages
  Package
  Description
  com.codename1.ui
  Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT.
- Class
  Description
  Constraint
  To perform validation we add a constraint to a validator, a constraint defines whether a value if valid for a given object
  ExistInConstraint
  Creates a validation constraint to ensure input value exists in a list of items
  GroupConstraint
  Groups several constraints as if they are one constraint
  LengthConstraint
  Creates a validation constraint based on minimum input length
  NotConstraint
  Negates a group of constraints, such that, if any of its child constraints is true, it returns false.
  NumericConstraint
  Forces the value to be a number potentially within specific bounds
  RegexConstraint
  Creates a validation constraint based on a regular expression
  Validator
  Binds 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").
  Validator.HighlightMode
  Indicates the validation failure modes