Interface JsonSchemaBuilderFactory


  • public interface JsonSchemaBuilderFactory
    A factory interface for creating JsonSchemaBuilder instances.

    The following example shows how to create an instance of JsonSchemaBuilder.

    
     JsonValidationService service = JsonValidationService.newInstance();
     JsonSchemaBuilderFactory factory = service.createSchemaBuilderFactory();
     JsonSchemaBuilder builder = factory.createBuilder();
     

    Any instance of this class is safe for use by multiple concurrent threads. For most use cases, only one instance of this class is required within the application.

    Author:
    leadpony
    • Method Detail

      • createBuilder

        JsonSchemaBuilder createBuilder()
        Creates a new instance of JSON schema builder.
        Returns:
        the newly created instance of JSON schema builder.