public final class MaximumKeywordValidator extends NumericKeywordValidator
maximum keyword
It also pairs with exclusiveMaximum, if found. The latter has
no signification in and of itself without maximum.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
exclusive |
decimalValue, longValuekeyword| Constructor and Description |
|---|
MaximumKeywordValidator(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 MaximumKeywordValidator(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.