Interface AttributeValidator<T>

Type Parameters:
T - the value type
All Superinterfaces:
Serializable

public interface AttributeValidator<T> extends Serializable
Validates the value for an Attribute.

Note that this validator is only called for non-null values, use EntityValidator for null validation.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(T value)
    Validates the given value.
  • Method Details

    • validate

      void validate(T value)
      Validates the given value. This method is only called for non-null values.
      Parameters:
      value - the value to validate
      Throws:
      IllegalArgumentException - in case the value is invalid