public final class ObjectValidatorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Validator |
getTypeValidator(Map<String,Object> schema)
Returns a validator validating the schema.
|
static Validator |
getTypeValidator(Map<String,Object> schema,
List<String> jsonPointer)
Returns a validator validating the schema.
|
static Validator |
getTypeValidator(String type,
Map<String,Object> schema,
List<String> jsonPointer)
Instantiates a validator of the passed in type with the given schema.
|
public static Validator getTypeValidator(Map<String,Object> schema)
schema
- JSON Schema Draft-03 objectValidator
instance.NullPointerException
- when the schema
is null.RuntimeException
- when the validators in the schema
is not supported.public static Validator getTypeValidator(Map<String,Object> schema, List<String> jsonPointer)
schema
- JSON Schema Draft-03 objectjsonPointer
- the list of tokens representing the JSON pointer leading to this validatorValidator
instance.NullPointerException
- when the schema
is null.RuntimeException
- when the validators in the schema
is not supported.public static Validator getTypeValidator(String type, Map<String,Object> schema, List<String> jsonPointer)
type
- the type of Validator to instantiateschema
- the schema that the instantiated validator will validatejsonPointer
- the list of tokens representing the JSON pointer leading to this validatorRuntimeException
- when the validators in the schema
is not supported.Copyright © 2025 Open Identity Platform Community. All rights reserved.