public final class ObjectValidator extends Object
The validators was designed to keep in the memory or other cache and validate multiple instances.
This implementation creates a new Validator
each time
and uses the FailFastErrorHandler
to validate the instance object.
Modifier and Type | Method and Description |
---|---|
static boolean |
validate(Object node,
Map<String,Object> schema)
Validate the given
node against the schema |
public static boolean validate(Object node, Map<String,Object> schema)
node
against the schema
This implementation is pessimistic and returns false if any exception was thrown.
node
- instance to validateschema
- schema for validationCopyright 2010-2018 ForgeRock AS.