Package com.networknt.schema
Class OutputFormat.Hierarchical
java.lang.Object
com.networknt.schema.OutputFormat.Hierarchical
- All Implemented Interfaces:
OutputFormat<OutputUnit>
- Enclosing interface:
OutputFormat<T>
The Hierarchical output format.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.networknt.schema.OutputFormat
OutputFormat.Boolean, OutputFormat.Default, OutputFormat.Flag, OutputFormat.Hierarchical, OutputFormat.List, OutputFormat.Result
-
Field Summary
Fields inherited from interface com.networknt.schema.OutputFormat
BOOLEAN, DEFAULT, FLAG, HIERARCHICAL, LIST, RESULT
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchical
(Function<ValidationMessage, Object> assertionMapper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(ExecutionContext executionContext, ValidationContext validationContext) Customize the execution context before validation.format
(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext) Formats the validation results.
-
Constructor Details
-
Hierarchical
public Hierarchical() -
Hierarchical
Constructor.- Parameters:
assertionMapper
- to map the assertion
-
-
Method Details
-
customize
Description copied from interface:OutputFormat
Customize the execution context before validation.The validation context should only be used for reference as it is shared.
- Specified by:
customize
in interfaceOutputFormat<OutputUnit>
- Parameters:
executionContext
- the execution contextvalidationContext
- the validation context for reference
-
format
public OutputUnit format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext) Description copied from interface:OutputFormat
Formats the validation results.- Specified by:
format
in interfaceOutputFormat<OutputUnit>
- Parameters:
jsonSchema
- the schemavalidationMessages
- the validation messagesexecutionContext
- the execution contextvalidationContext
- the validation context- Returns:
- the result
-