public class NumberValidator extends AbstractValidator
Modifier and Type | Class and Description |
---|---|
static class |
NumberValidator.Type
Type specifies what NumberValidator should check.
|
Constructor and Description |
---|
NumberValidator(NumberValidator.Type type,
BigDecimal value)
Construct a validator that checks the value of the input to match the
given type and value.
|
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 NumberValidator(NumberValidator.Type type, BigDecimal value)
type
- the condition to check forvalue
- the value to check forpublic String validate(Object value)
Validator
value
- the value to checkValidator.validate(java.lang.Object)
public String getDescription()
Validator
Validator.getDescription()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a