com.github.fge.jsonschema.keyword.validator.helpers
Class DivisorValidator
java.lang.Object
com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
com.github.fge.jsonschema.keyword.validator.helpers.NumericValidator
com.github.fge.jsonschema.keyword.validator.helpers.DivisorValidator
- All Implemented Interfaces:
- KeywordValidator
- Direct Known Subclasses:
- DivisibleByValidator, MultipleOfValidator
public abstract class DivisorValidator
- extends NumericValidator
Helper keyword validator for draft v4's multipleOf and draft v3's
divisibleBy
DivisorValidator
protected DivisorValidator(String keyword,
JsonNode digest)
validateLong
protected final void validateLong(ProcessingReport report,
MessageBundle bundle,
FullData data)
throws ProcessingException
- Description copied from class:
NumericValidator
- Method to be implemented by a numeric validator if both the keyword
value and instance value fit into a
long
- Specified by:
validateLong in class NumericValidator
- Parameters:
report - the validation reportbundle - the message bundle to usedata - the validation data
- Throws:
ProcessingException
validateDecimal
protected final void validateDecimal(ProcessingReport report,
MessageBundle bundle,
FullData data)
throws ProcessingException
- Description copied from class:
NumericValidator
- Method to be implemented by a numeric validator if either of the
keyword value or instance value do not fit into a
long
- Specified by:
validateDecimal in class NumericValidator
- Parameters:
report - the validation reportbundle - the message bundle to usedata - the validation data
- Throws:
ProcessingException