Package com.networknt.schema.output
Class HierarchicalOutputUnitFormatter
- java.lang.Object
-
- com.networknt.schema.output.HierarchicalOutputUnitFormatter
-
public class HierarchicalOutputUnitFormatter extends Object
HierarchicalOutputUnitFormatter.
-
-
Constructor Summary
Constructors Constructor Description HierarchicalOutputUnitFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidbuildIndex(OutputUnitKey key, Map<NodePath,Map<NodePath,OutputUnit>> index, Map<NodePath,Set<NodePath>> keys, OutputUnit root)Builds in the index of evaluation path to output units to be populated later and modify the root to add the appropriate children.static OutputUnitformat(OutputUnit root, OutputUnitData data, NodePath rootPath)static OutputUnitformat(Schema jsonSchema, List<Error> errors, ExecutionContext executionContext, SchemaContext schemaContext, Function<Error,Object> errorMapper)
-
-
-
Method Detail
-
format
public static OutputUnit format(OutputUnit root, OutputUnitData data, NodePath rootPath)
-
format
public static OutputUnit format(Schema jsonSchema, List<Error> errors, ExecutionContext executionContext, SchemaContext schemaContext, Function<Error,Object> errorMapper)
-
buildIndex
protected static void buildIndex(OutputUnitKey key, Map<NodePath,Map<NodePath,OutputUnit>> index, Map<NodePath,Set<NodePath>> keys, OutputUnit root)
Builds in the index of evaluation path to output units to be populated later and modify the root to add the appropriate children.- Parameters:
key- the current key to processindex- contains all the mappings from evaluation path to output unitskeys- that contain all the evaluation paths with instance dataroot- the root output unit
-
-