Package dev.harrel.jsonschema
Class Draft7EvaluatorFactory
java.lang.Object
dev.harrel.jsonschema.Draft7EvaluatorFactory
- All Implemented Interfaces:
EvaluatorFactory
EvaluatorFactory implementation that supports draft 7 specification.-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.harrel.jsonschema.EvaluatorFactory
EvaluatorFactory.Builder -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Draft7EvaluatorFactory
public Draft7EvaluatorFactory()
-
-
Method Details
-
create
Description copied from interface:EvaluatorFactoryThis method will be invoked for each JSON object field during schema parsing process. Must not throw any exceptions.- Specified by:
createin interfaceEvaluatorFactory- Parameters:
ctx- current schema parsing contextfieldName- field name (keyword) in JSON object for whichEvaluatorshould be creatednode- value of field in JSON object- Returns:
- If this factory supports given field name (keyword) it should return corresponding
Evaluatorwrapped inOptional,Optional.empty()otherwise.
-