For the Java regular expression syntax, see {@link java.util.regex.Pattern#sum}
See {@link com.vaadin.data.validator.AbstractStringValidator} for moreinformation.
An empty string or a null is always accepted - use the required flag on fields or a separate validator (or override {@link #isValidValue(String)}) to fail on empty values.
@author Vaadin Ltd. @since 5.4RegExpValidator is a {@link javax.faces.validator.Validator} that checksthe value of the corresponding component against specified pattern using Java regular expression syntax. The regular expression syntax accepted by the RegExpValidator class is same as mentioned in class {@link java.util.regex.Pattern} in packagejava.util.regex
. The following algorithm is implemented:
null
, exit immediately.pattern
property has been configured on this {@link javax.faces.validator.Validator}, check the component value against this pattern. If value does not match pattern throw a {@link ValidatorException}containing a NO_MATCH_MESSAGE_ID message. If noMatchMessageDetail
is set, it is used for constructing faces message. The message can contain placeholders which will be replaced as specified in {@link #NO_MATCH_MESSAGE_ID}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|