com.github.fge.jsonschema.keyword.validator.common
Class MaximumValidator
java.lang.Object
com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
com.github.fge.jsonschema.keyword.validator.helpers.NumericValidator
com.github.fge.jsonschema.keyword.validator.common.MaximumValidator
- All Implemented Interfaces:
- KeywordValidator
public final class MaximumValidator
- extends NumericValidator
Keyword validator for maximum
MaximumValidator
public MaximumValidator(JsonNode digest)
validateLong
protected 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 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