Interface ISchemaGenerator
- All Known Implementing Classes:
AbstractSchemaGenerator
,JsonSchemaGenerator
,XmlSchemaGenerator
public interface ISchemaGenerator
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Identifies the supported schema generation formats. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateFromModule
(IModule metaschema, Writer writer, IConfiguration<SchemaGenerationFeature<?>> configuration) Generate and write a schema for the providedmetaschema
to theWriter
provided bywriter
using the providedconfiguration
.static void
generateSchema
(IModule module, Writer writer, ISchemaGenerator.SchemaFormat asFormat, IConfiguration<SchemaGenerationFeature<?>> configuration) static void
generateSchema
(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 providedmetaschema
to theWriter
provided bywriter
using 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
-