Interface ISchemaGenerator
- All Known Implementing Classes:
AbstractSchemaGenerator,JsonSchemaGenerator,XmlSchemaGenerator
public interface ISchemaGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIdentifies the supported schema generation formats. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateFromModule(IModule metaschema, Writer writer, IConfiguration<SchemaGenerationFeature<?>> configuration) Generate and write a schema for the providedmetaschemato theWriterprovided bywriterusing the providedconfiguration.static voidgenerateSchema(IModule module, Writer writer, ISchemaGenerator.SchemaFormat asFormat, IConfiguration<SchemaGenerationFeature<?>> configuration) static voidgenerateSchema(IModule module, Path destination, ISchemaGenerator.SchemaFormat asFormat, IConfiguration<SchemaGenerationFeature<?>> configuration)
-
Method Details
-
generateFromModule
void generateFromModule(@NonNull IModule metaschema, @NonNull Writer writer, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration) Generate and write a schema for the providedmetaschemato theWriterprovided bywriterusing the providedconfiguration.- Parameters:
metaschema- the Module to generate the schema forwriter- the writer to use to write the schemaconfiguration- the schema generation configuration- Throws:
SchemaGenerationException- if an error occurred while writing the schema
-
generateSchema
static void generateSchema(@NonNull IModule module, @NonNull Path destination, @NonNull ISchemaGenerator.SchemaFormat asFormat, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration) throws IOException - Throws:
IOException
-
generateSchema
static void generateSchema(@NonNull IModule module, @NonNull Writer writer, @NonNull ISchemaGenerator.SchemaFormat asFormat, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration) throws IOException - Throws:
IOException
-