-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=LengthConstraintValidator.class) public @interface Length
The annotated element must have the expected string length.- Since:
- 0.1
- Author:
- nedis
- See Also:
MinLength,MaxLength,LengthConstraintValidator
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intvalueReturns the expected string length.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanoffAllows disabling the validation rule if this rule is inherited from super class.
-