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 void
buildIndex(OutputUnitKey key, Map<JsonNodePath,Map<JsonNodePath,OutputUnit>> index, Map<JsonNodePath,Set<JsonNodePath>> 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 OutputUnit
format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext, Function<ValidationMessage,Object> assertionMapper)
static OutputUnit
format(OutputUnit root, OutputUnitData data, JsonNodePath rootPath)
-
-
-
Method Detail
-
format
public static OutputUnit format(OutputUnit root, OutputUnitData data, JsonNodePath rootPath)
-
format
public static OutputUnit format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext, Function<ValidationMessage,Object> assertionMapper)
-
buildIndex
protected static void buildIndex(OutputUnitKey key, Map<JsonNodePath,Map<JsonNodePath,OutputUnit>> index, Map<JsonNodePath,Set<JsonNodePath>> 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
-
-