Package com.networknt.schema
Class OutputFormat.Boolean
java.lang.Object
com.networknt.schema.OutputFormat.Boolean
- All Implemented Interfaces:
OutputFormat<Boolean>
- Enclosing interface:
OutputFormat<T>
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(ExecutionContext executionContext, SchemaContext schemaContext) Customize the execution context before validation.format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext) Formats the validation results.
-
Constructor Details
-
Boolean
public Boolean()
-
-
Method Details
-
customize
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<Boolean>- Parameters:
executionContext- the execution contextschemaContext- the schema context for reference
-
format
public Boolean format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext) Description copied from interface:OutputFormatFormats the validation results.- Specified by:
formatin interfaceOutputFormat<Boolean>- Parameters:
jsonSchema- the schemaexecutionContext- the execution contextschemaContext- the schema context- Returns:
- the result
-