Class ValidCharactersConstraint

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, Constraint
Direct Known Subclasses:
ValidCharactersPatternConstraint, ValidDataPatternConstraint

public class ValidCharactersConstraint extends BaseConstraint
This is a constraint that limits attribute values to some subset of valid characters or to match a particular regular expression. For example: - To limit to both upper and lower-case letters, value can be set to "[A-Za-z]*" - To limit to any character except carriage returns and line feeds, value can be set to "[^\n\r]*"
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • value

      protected String value
  • Constructor Details

    • ValidCharactersConstraint

      public ValidCharactersConstraint()
  • Method Details

    • getValue

      public String getValue()
      The Java based regex for valid characters This value should include the ^ and $ symbols if needed
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Parameters:
      value - the value to set
    • completeValidation

      public void completeValidation(ValidationTrace tracer)
      Validates different requirements of component compiling a series of reports detailing information on errors found in the component. Used by the RiceDictionaryValidator.
      Overrides:
      completeValidation in class BaseConstraint
      Parameters:
      tracer - Record of component's location