protected static class JsonSchemaValidatorFactory.MaximumValidator extends JsonSchemaValidatorFactory.NumericValidator
Validator.Factory, Validator.SchemaDocumentResolver
Constructor and Description |
---|
JsonSchemaValidatorFactory.MaximumValidator(String propertyName,
Number maximum) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isValid(double maximum,
double actualValue)
Evaluate whether the actual value and expected value violate the schema rule.
|
protected String |
ruleDescription() |
toString, validate
protected boolean isValid(double maximum, double actualValue)
JsonSchemaValidatorFactory.NumericValidator
isValid
in class JsonSchemaValidatorFactory.NumericValidator
maximum
- the expected valueactualValue
- the actual valueprotected String ruleDescription()
ruleDescription
in class JsonSchemaValidatorFactory.NumericValidator
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.