net.sf.jsefa.common.validator
Class BigDecimalValidator

java.lang.Object
  extended by net.sf.jsefa.common.validator.NumberValidator<BigDecimal>
      extended by 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

Method Summary
static BigDecimalValidator create(ValidatorConfiguration configuration)
          Constructs a new BigDecimalValidator.
 ValidationResult validate(Object value)
          Validates the given value and returns a ValidationResult describing the result of the validation.
 
Methods inherited from class net.sf.jsefa.common.validator.NumberValidator
getConstraintsAccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.