RegexpValidator
.@Deprecated public class PatternValidator extends java.lang.Object implements Field.Validator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
message
Deprecated.
|
protected Messages |
messages
Deprecated.
|
protected java.lang.String |
messagesPack
Deprecated.
|
protected java.util.regex.Pattern |
pattern
Deprecated.
|
Constructor and Description |
---|
PatternValidator(org.dom4j.Element element,
java.lang.String messagesPack)
Deprecated.
|
PatternValidator(java.lang.String pattern)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(java.lang.Object value)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
protected java.util.regex.Pattern pattern
protected java.lang.String message
protected java.lang.String messagesPack
protected Messages messages
public PatternValidator(org.dom4j.Element element, java.lang.String messagesPack)
public PatternValidator(java.lang.String pattern)
public void validate(java.lang.Object value) throws ValidationException
validate
in interface Field.Validator
value
- field value to validateValidationException
- this exception must be thrown by the validator if the value is not valid