Package org.forgerock.json.schema.validator.validators
package org.forgerock.json.schema.validator.validators
These classes are capable of validating the objects against the initially loaded schema.
All class implements the abstract Validator
class constructor.
Each class is responsible for validating one object type. See the mappings between the types and classes in the this list:
- string:
StringTypeValidator
- number:
NumberTypeValidator
- integer:
IntegerTypeValidator
- boolean:
BooleanTypeValidator
- object:
ObjectTypeValidator
- array:
ArrayTypeValidator
- null:
NullTypeValidator
- any:
AnyTypeValidator
- Union Types:
UnionTypeValidator
Other type values MAY be used for custom purposes, but minimal validators of the specification implementation can allow any instance value on unknown type values.
-
ClassDescriptionAnyTypeValidator applies all the constraints of a
any
type.ArrayTypeValidator applies all the constraints of aarray
type.BooleanTypeValidator applies all the constraints of aboolean
type.IntegerTypeValidator applies all the constraints of ainteger
type.null Value MUST be null.NumberTypeValidator applies all the constraints of anumber
type.ObjectTypeValidator applies all the constraints of aobject
type.ReferenceTypeValidator holds a reference to another validator.SimpleValidator is a base interface for all validator implementation.StringTypeValidator applies all the constraints of astring
type.Union Types An array of two or more simple validators definitions.Validator is the abstract base class of all typed validator.