javax.validation

Annotation Type Constraint

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      ClassConstraintValidator>[] validatedBy
      ConstraintValidator classes must reference distinct target types for a given ValidationTarget If two ConstraintValidators refer to the same type, an exception will occur.
    • Element Detail

      • validatedBy

        public abstract ClassConstraintValidator>[] validatedBy
        ConstraintValidator classes must reference distinct target types for a given ValidationTarget If two ConstraintValidators refer to the same type, an exception will occur.

        At most one ConstraintValidator targeting the array of parameters of methods or constructors (aka cross-parameter) is accepted. If two or more are present, an exception will occur.

        Returns:
        array of (@code ConstraintValidator} classes implementing the constraint

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.