Package com.networknt.schema
Class OutputFormat.Boolean
- java.lang.Object
-
- com.networknt.schema.OutputFormat.Boolean
-
- All Implemented Interfaces:
OutputFormat<Boolean>
- Enclosing interface:
- OutputFormat<T>
public static class OutputFormat.Boolean extends Object implements OutputFormat<Boolean>
The Boolean 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
Constructors Constructor Description Boolean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(ExecutionContext executionContext, ValidationContext validationContext)
Customize the execution context before validation.Boolean
format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext)
Formats the validation results.
-
-
-
Method Detail
-
customize
public void customize(ExecutionContext executionContext, ValidationContext validationContext)
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<Boolean>
- Parameters:
executionContext
- the execution contextvalidationContext
- the validation context for reference
-
format
public Boolean format(JsonSchema jsonSchema, Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext)
Description copied from interface:OutputFormat
Formats the validation results.- Specified by:
format
in interfaceOutputFormat<Boolean>
- Parameters:
jsonSchema
- the schemavalidationMessages
- the validation messagesexecutionContext
- the execution contextvalidationContext
- the validation context- Returns:
- the result
-
-