public final class MinimumKeywordValidator extends NumericKeywordValidator
minimum keyword
This validator pairs with exclusiveMinimum. The latter has no
signification by itself without minimum.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
exclusive |
decimalValue, longValuekeyword| Constructor and Description |
|---|
MinimumKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
validateDecimal(ValidationReport report,
BigDecimal instanceValue)
Method to be implemented by a numeric validator if either of the
keyword value or instance value do not fit into a
long |
protected void |
validateLong(ValidationReport report,
long instanceValue)
Method to be implemented by a numeric validator if both the keyword
value and instance value fit into a
long |
toString, validatevalidateInstancepublic MinimumKeywordValidator(JsonNode schema)
protected void validateLong(ValidationReport report, long instanceValue)
NumericKeywordValidatorlongvalidateLong in class NumericKeywordValidatorreport - the validation reportinstanceValue - the instance value to validate as a longprotected void validateDecimal(ValidationReport report, BigDecimal instanceValue)
NumericKeywordValidatorlongvalidateDecimal in class NumericKeywordValidatorreport - the validation reportinstanceValue - the instance to validate as a BigDecimalCopyright © 2012. All Rights Reserved.