Package com.networknt.schema
Class OutputFormat.Result
- java.lang.Object
-
- com.networknt.schema.OutputFormat.Result
-
- All Implemented Interfaces:
OutputFormat<Result>
- Enclosing interface:
- OutputFormat<T>
public static class OutputFormat.Result extends Object implements OutputFormat<Result>
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 Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(ExecutionContext executionContext, SchemaContext schemaContext)Customize the execution context before validation.Resultformat(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)Formats the validation results.
-
-
-
Method Detail
-
customize
public void customize(ExecutionContext executionContext, SchemaContext schemaContext)
Description copied from interface:OutputFormatCustomize the execution context before validation.The schema context should only be used for reference as it is shared.
- Specified by:
customizein interfaceOutputFormat<Result>- Parameters:
executionContext- the execution contextschemaContext- the schema context for reference
-
format
public Result format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)
Description copied from interface:OutputFormatFormats the validation results.- Specified by:
formatin interfaceOutputFormat<Result>- Parameters:
jsonSchema- the schemaexecutionContext- the execution contextschemaContext- the schema context- Returns:
- the result
-
-