Package com.networknt.schema
Class OutputFormat.Result
java.lang.Object
com.networknt.schema.OutputFormat.Result
- All Implemented Interfaces:
OutputFormat<ValidationResult>
- Enclosing interface:
OutputFormat<T>
The Result output format.
This is currently not exposed to consumers.
-
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
Constructors -
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
-
Result
public Result()
-
-
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<ValidationResult>
- Parameters:
executionContext
- the execution contextvalidationContext
- the validation context for reference
-
format
public ValidationResult format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext) Description copied from interface:OutputFormat
Formats the validation results.- Specified by:
format
in interfaceOutputFormat<ValidationResult>
- Parameters:
jsonSchema
- the schemavalidationMessages
- the validation messagesexecutionContext
- the execution contextvalidationContext
- the validation context- Returns:
- the result
-