javax.validation
Annotation Type Constraint


@Documented
@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
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.

Author:
Emmanuel Bernard, Gavin King, Hardy Ferentschik

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

Element Detail

validatedBy

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.

Returns:
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


Spec-Zone.ru - all specs in one place



free hit counter