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.
  • Constructor Details

    • Boolean

      public Boolean()
  • Method Details

    • 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 interface OutputFormat<Boolean>
      Parameters:
      executionContext - the execution context
      validationContext - 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 interface OutputFormat<Boolean>
      Parameters:
      jsonSchema - the schema
      validationMessages - the validation messages
      executionContext - the execution context
      validationContext - the validation context
      Returns:
      the result