public class MinimumHelper extends Object implements SimpleValidator<Number>
Number
s to check the minimum constraint.Constructor and Description |
---|
MinimumHelper(Number minimum,
boolean exclusiveMinimum)
Create a minimum helper.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(Number node,
JsonPointer at,
ErrorHandler handler)
Validates the
node value against the embedded schema object. |
public MinimumHelper(Number minimum, boolean exclusiveMinimum)
minimum
- The minimum.exclusiveMinimum
- Whether it is an exclusive minimum.public void validate(Number node, JsonPointer at, ErrorHandler handler) throws SchemaException
SimpleValidator
node
value against the embedded schema object.
The selected error handler defines the behaviour of the validator. The
FailFastErrorHandler
throws exception at firs violation.
Other customised ErrorHandler
can collect all exceptions and after the validation the
examination of the handler
contains the final result.validate
in interface SimpleValidator<Number>
node
- value to validateat
- JSONPath of the node. null means it's the root nodehandler
- customised error handler like FailFastErrorHandler
SchemaException
- when the node
violates with the schemaCopyright © 2025 Open Identity Platform Community. All rights reserved.