Class BasicAttributeValidator

java.lang.Object
com.mayam.wf.attributes.shared.BasicAttributeValidator
All Implemented Interfaces:
AttributeValidator

public class BasicAttributeValidator extends Object implements AttributeValidator
Very limited validator handling a subset of the jakarta.validation.constraints annotations.
See Also:
  • Size
  • Min
  • Max
  • Pattern
  • Constructor Details

    • BasicAttributeValidator

      public BasicAttributeValidator()
    • BasicAttributeValidator

      @Inject public BasicAttributeValidator(AttributeDescription.Producer describer)
  • Method Details

    • validate

      public void validate(Attribute attribute, Object value)
      Validates a attribute/value pair.
      Specified by:
      validate in interface AttributeValidator
      Parameters:
      attribute - the attribute having associated validation rules.
      value - the value to test for validity.
      Throws:
      ClassCastException - if the object is of the wrong class.
      AttributeValidationException - if any constraint violation is detected.
      See Also:
      • Size
      • Min
      • Max
      • Pattern