public abstract class DivisorKeywordValidator extends NumericKeywordValidator
divisibleBy (draft v3) and multipleOf (draft v4) keywordsnumberkeyword| Modifier | Constructor and Description |
|---|---|
protected |
DivisorKeywordValidator(String keyword,
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, validatealwaysTrue, newMsg, validateInstanceprotected final void validateLong(ValidationReport report, JsonNode instance)
NumericKeywordValidatorlongvalidateLong in class NumericKeywordValidatorreport - the validation reportinstance - the instance to validateprotected final void validateDecimal(ValidationReport report, JsonNode instance)
NumericKeywordValidatorlongvalidateDecimal in class NumericKeywordValidatorreport - the validation reportinstance - the instance to validateCopyright © 2013. All Rights Reserved.