Interface AttributeValidator

All Known Implementing Classes:
BasicAttributeValidator

public interface AttributeValidator
Describes a class able to to perform Attribute validations.
Author:
Markus MÃ¥rtensson
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(Attribute attribute, Object value)
    Validates a attribute/value pair.
  • Method Details

    • validate

      void validate(Attribute attribute, Object value)
      Validates a attribute/value pair.
      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; i.e. programming error.
      AttributeValidationException - if a constraint violation is detected.