javax.validation
Annotation Type CrossParameterConstraint


@Documented
@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public @interface CrossParameterConstraint

Link between a cross-parameter constraint annotation and its constraint validation implementation.

Since:
1.1
Author:
Gunnar Morling

Required Element Summary
 Class<? extends ConstraintValidator<?,?>> validatedBy
          Returns the ConstraintValidator class for the annotated cross-parameter constraint.
 

Element Detail

validatedBy

public abstract Class<? extends ConstraintValidator<?,?>> validatedBy
Returns the ConstraintValidator class for the annotated cross-parameter constraint. The validator's type parameter T must resolve to Object[].

Returns:
Constraint validator class implementing the constraint


Copyright © 2007-2013. All Rights Reserved.