Class OutputFormat.Boolean

  • All Implemented Interfaces:
    OutputFormat<java.lang.Boolean>
    Enclosing interface:
    OutputFormat<T>

    public static class OutputFormat.Boolean
    extends java.lang.Object
    implements OutputFormat<java.lang.Boolean>
    The Boolean output format.
    • Constructor Detail

      • Boolean

        public Boolean()
    • 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 interface OutputFormat<java.lang.Boolean>
        Parameters:
        executionContext - the execution context
        validationContext - the validation context for reference
      • format

        public java.lang.Boolean format​(JsonSchema jsonSchema,
                                        java.util.Set<ValidationMessage> validationMessages,
                                        ExecutionContext executionContext,
                                        ValidationContext validationContext)
        Description copied from interface: OutputFormat
        Formats the validation results.
        Specified by:
        format in interface OutputFormat<java.lang.Boolean>
        Parameters:
        jsonSchema - the schema
        validationMessages - the validation messages
        executionContext - the execution context
        validationContext - the validation context
        Returns:
        the result