@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface ValidationParameter
Annotation usage:
The annotation must embedded into CustomValidator annotations as a parameter.
Annotation parameters:
Parameter | Required | Default | Notes |
---|---|---|---|
name | yes | parameter name. | |
value | yes | parameter value. |
Example code:
@CustomValidator( type ="customValidatorName", fieldName = "myField", parameters = { @ValidationParameter( name = "paramName", value = "paramValue" ) } )
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.