public class EnumHelper extends Object implements SimpleValidator<Object>
equals method.| Constructor and Description |
|---|
EnumHelper(List<Object> enumValues)
Construct a new enum helper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Object node,
JsonPointer at,
ErrorHandler handler)
Validates the
node value against the embedded schema object. |
public void validate(Object node, JsonPointer at, ErrorHandler handler) throws SchemaException
SimpleValidatornode 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<Object>node - value to validateat - JSONPath of the node. null means it's the root nodehandler - customised error handler like FailFastErrorHandlerSchemaException - when the node violates with the schemaCopyright © 2025 Open Identity Platform Community. All rights reserved.