-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=IPConstraintValidator.class) @SelfDocumented public @interface IP
The annotated element must be a valid IP address.- Since:
- 0.1
- Author:
- nedis
- See Also:
IPConstraintValidator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanoffAllows disabling the validation rule if this rule is inherited from super class.IP.Version[]valueBy default, support all versions, i.e.
-
-
-
-
value
IP.Version[] value
By default, support all versions, i.e. versions 4 and 6.- Returns:
- the supported IP protocol
IP.Versions
- Default:
- {io.rxmicro.validation.constraint.IP.Version.IP_V4, io.rxmicro.validation.constraint.IP.Version.IP_V6}
-
-