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.
numberkeyword, nodeFactory| Constructor and Description |
|---|
DivisibleByKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
validateDecimal(ValidationReport report,
JsonNode instance)
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,
JsonNode instance)
Method to be implemented by a numeric validator if both the keyword
value and instance value fit into a
long |
toString, validatenewMsg, validateInstancepublic DivisibleByKeywordValidator(JsonNode schema)
protected void validateLong(ValidationReport report, JsonNode instance)
NumericKeywordValidatorlongvalidateLong in class NumericKeywordValidatorreport - the validation reportinstance - the instance to validateprotected void validateDecimal(ValidationReport report, JsonNode instance)
NumericKeywordValidatorlongvalidateDecimal in class NumericKeywordValidatorreport - the validation reportinstance - the instance to validateCopyright © 2012. All Rights Reserved.