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.FlagOutput
-
-
Field Summary
-
Fields inherited from interface com.networknt.schema.OutputFormat
BOOLEAN, DEFAULT, FLAG
-
-
Constructor Summary
Constructors Constructor Description Boolean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(ExecutionContext executionContext, ValidationContext validationContext)Customize the execution context before validation.Booleanformat(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:OutputFormatCustomize the execution context before validation.The validation context should only be used for reference as it is shared.
- Specified by:
customizein interfaceOutputFormat<Boolean>- Parameters:
executionContext- the execution contextvalidationContext- the validation context for reference
-
format
public Boolean format(Set<ValidationMessage> validationMessages, ExecutionContext executionContext, ValidationContext validationContext)
Description copied from interface:OutputFormatFormats the validation results.- Specified by:
formatin interfaceOutputFormat<Boolean>- Returns:
- the result
-
-