| net.sf.oval.constraint.MatchPattern
MatchPattern | public @interface MatchPattern(Code) | | Check if the specified regular expression pattern is matched.
Note: This constraint is also satisified when the value to validate is null, therefore you might also need to specified @NotNull
author: Sebastian Thomschke |
errorCode | String errorCode(Code) | | errpr code passed to the ConstraintViolation object
|
flags | int flags(Code) | | Match flags, a bit mask that may include
Pattern.CASE_INSENSITIVE, Pattern.MULTILINE, Pattern.DOTALL,
Pattern.UNICODE_CASE, Pattern.CANON_EQ
See Also: java.util.regex.Pattern |
pattern | String pattern(Code) | | The regular expression to match against
Examples:
decimal number: "^-{0,1}(\\d*|(\\d{1,3}([,]\\d{3})*))[.]?\\d*$"
numbers only: "^\\d*$"
e-mail address: "^([a-z0-9]{1,}[\\.\\_\\-]?[a-z0-9]{1,})\\@([a-z0-9]{2,}\\.)([a-z]{2,2}|org|net|com|gov|edu|int|info|biz|museum)$"
See Also: java.util.regex.Pattern |
profiles | String[] profiles(Code) | | The associated validation profiles.
|
severity | int severity(Code) | | severity passed to the ConstraintViolation object
|
|
|