public final class DivisibleByKeywordValidator extends NumericKeywordValidator
disallow keyword
Note: in draft v4, the keyword will be renamed to mod,
but will work all the same.
decimalValue, longValuekeyword| Constructor and Description |
|---|
DivisibleByKeywordValidator(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 DivisibleByKeywordValidator(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.