Interface ConstraintValidator<A extends Annotation>

    • Method Detail

      • initialize

        void initialize​(A annotation)
        Called before this validator is used with the constraint annotation value.
        Parameters:
        annotation - the annotation value this validator will be validating.
      • isValid

        boolean isValid​(String name,
                        Object value)
        Indicates if the given value is valid.
        Parameters:
        name - the name to use for error reporting
        value - the value to validate.
        Returns:
        true if the given value is valid.