net.sf.jsefa.common.validator
Class BigDecimalValidator
java.lang.Object
net.sf.jsefa.common.validator.NumberValidator<BigDecimal>
net.sf.jsefa.common.validator.BigDecimalValidator
- All Implemented Interfaces:
- Validator
public final class BigDecimalValidator
- extends NumberValidator<BigDecimal>
A validator for BigDecimal
values.
- Author:
- Norman Lahme-Huetig
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static BigDecimalValidator create(ValidatorConfiguration configuration)
- Constructs a new
BigDecimalValidator
.
- Parameters:
configuration
- the validator configuration
- Returns:
- a big decimal validator
validate
public ValidationResult validate(Object value)
- Validates the given value and returns a
ValidationResult
describing the result of the validation.
- Specified by:
validate
in interface Validator
- Overrides:
validate
in class NumberValidator<BigDecimal>
- Parameters:
value
- the value to validate
- Returns:
- the result of the validation.
Copyright © 2014. All rights reserved.