Annotation Type Constraint

public @interface Constraint

Link between a constraint annotation and its constraint validation implementations.

A given constraint annotation should be annotated by a @Constraint annotation which refers to its list of constraint validation implementations.

Emmanuel Bernard, Gavin King, Hardy Ferentschik

Required Element Summary
 java.lang.Class<? extends ConstraintValidator<?,?>>[] validatedBy
          ConstraintValidator classes must reference distinct target types.

Element Detail


public abstract java.lang.Class<? extends ConstraintValidator<?,?>>[] validatedBy
ConstraintValidator classes must reference distinct target types. If two ConstraintValidator refer to the same type, an exception will occur.

array of ConstraintValidator classes implementing the constraint

Submit a bug or feature

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

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.