-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=StartsWithConstraintValidator.class) @SelfDocumented public @interface StartsWith
The annotated element value must start with the provided prefix.- Since:
- 0.1
- Author:
- nedis
- See Also:
StartsWithConstraintValidator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanoffAllows disabling the validation rule if this rule is inherited from super class.
-
-
-
Element Detail
-
value
String value
Returns the required prefix for the field value.- Returns:
- the required prefix for the field value.
-
-