public abstract class BigDecValidator extends BaseValidator<BigDecimal>
| Modifier and Type | Class and Description |
|---|---|
static class |
BigDecValidator.GreaterThan
Validate that a BigDecimal is greater than a specified reference.
|
static class |
BigDecValidator.GreaterThanOrEqualTo
Validate that a BigDecimal is greater than or equal to a specified reference.
|
static class |
BigDecValidator.LessThan
Validate that a BigDecimal is less than a specified reference.
|
static class |
BigDecValidator.LessThanOrEqualTo
Validate that a BigDecimal is less than or equal to a specified reference.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInvalidSpecificationMessage()
If the specification itself is invalid (such as a bad regex string), this
will build a message describing the problem to the user.
|
boolean |
isSpecificationValid()
Returns true if the validation criteria itself is valid.
|
getInvalidMessage, isValid, isValidWithoutNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTheValueMustDescriptionpublic boolean isSpecificationValid()
ValidatorFor things like regex expressions, this would check to see if the regex expression is a valid expression.
public String getInvalidSpecificationMessage()
ValidatorThis method may return a message regardless of if the validation is invalid or not - use isSpecificationValid() to determine if the Validator is configured correctly or not.
Copyright © 2022. All rights reserved.