T - the type of the numberpublic abstract class NumberValidator<T extends Number> extends Object implements Validator
Number values.| Modifier | Constructor and Description |
|---|---|
protected |
NumberValidator(org.jsefa.common.validator.ConstraintsAccessor constraintsAccessor)
Constructs a new
NumberValidator. |
| Modifier and Type | Method and Description |
|---|---|
protected org.jsefa.common.validator.ConstraintsAccessor |
getConstraintsAccessor() |
ValidationResult |
validate(Object value)
Validates the given value and returns a
ValidationResult describing the result of the validation. |
protected NumberValidator(org.jsefa.common.validator.ConstraintsAccessor constraintsAccessor)
NumberValidator.constraintsAccessor - the accessor to the configured constraintspublic ValidationResult validate(Object value)
ValidationResult describing the result of the validation.protected org.jsefa.common.validator.ConstraintsAccessor getConstraintsAccessor()
Copyright © 2014. All rights reserved.