Class OutputFormat.Flag

java.lang.Object
com.networknt.schema.OutputFormat.Flag
All Implemented Interfaces:
OutputFormat<OutputFlag>
Enclosing interface:
OutputFormat<T>

public static class OutputFormat.Flag extends Object implements OutputFormat<OutputFlag>
The Flag output format.
  • Constructor Details

    • Flag

      public Flag()
  • Method Details

    • customize

      public void customize(ExecutionContext executionContext, SchemaContext schemaContext)
      Description copied from interface: OutputFormat
      Customize the execution context before validation.

      The schema context should only be used for reference as it is shared.

      Specified by:
      customize in interface OutputFormat<OutputFlag>
      Parameters:
      executionContext - the execution context
      schemaContext - the schema context for reference
    • format

      public OutputFlag format(Schema jsonSchema, ExecutionContext executionContext, SchemaContext schemaContext)
      Description copied from interface: OutputFormat
      Formats the validation results.
      Specified by:
      format in interface OutputFormat<OutputFlag>
      Parameters:
      jsonSchema - the schema
      executionContext - the execution context
      schemaContext - the schema context
      Returns:
      the result