public class PatternValidator extends AbstractValidator
Constructor and Description |
---|
PatternValidator(String pattern)
Construct a PatternValidator with the given pattern.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a human readable representation of this Validator.
|
String |
validate(Object value)
Checks whether the given value is valid.
|
getObjectAs, isAlwaysTrue
public PatternValidator(String pattern)
pattern
- the pattern to usepublic String validate(Object value)
Validator
value
- the value to checkValidator.validate(Object)
public String getDescription()
Validator
Validator.getDescription()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a