layout: default title: CustomValidator Annotation parent: title: Annotations url: annotations.html

CustomValidator Annotation

This annotation can be used for custom validators. Use the ValidationParameter annotation to supply additional params.

Usage

The annotation must be applied at method or type level.

Parameters

Examples

 @CustomValidator(type ="customValidatorName", fieldName = "myField")

Adding Parameters

Use the ValidationParameter annotation to add custom parameter values.