Interface ISchemaGenerator
-
- All Known Implementing Classes:
AbstractSchemaGenerator,JsonSchemaGenerator,XmlSchemaGenerator
public interface ISchemaGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classISchemaGenerator.SchemaFormatIdentifies the supported schema generation formats.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerateFromModule(IModule metaschema, Writer writer, IConfiguration<SchemaGenerationFeature<?>> configuration)Generate and write a schema for the providedmetaschemato theWriterprovided bywriterusing the providedconfiguration.static voidgenerateSchema(IModule module, OutputStream os, ISchemaGenerator.SchemaFormat asFormat, IConfiguration<SchemaGenerationFeature<?>> configuration)static voidgenerateSchema(IModule module, Path destination, ISchemaGenerator.SchemaFormat asFormat, IConfiguration<SchemaGenerationFeature<?>> configuration)
-
-
-
Method Detail
-
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 OutputStream os, @NonNull ISchemaGenerator.SchemaFormat asFormat, @NonNull IConfiguration<SchemaGenerationFeature<?>> configuration) throws IOException
- Throws:
IOException
-
-