Module dev.metaschema.schemagen
Package dev.metaschema.schemagen
package dev.metaschema.schemagen
Provides schema generation capabilities for Metaschema modules.
This package contains the core API and implementations for generating XML
Schema (XSD) and JSON Schema from Metaschema module definitions. The main
entry point is ISchemaGenerator, which
provides methods to generate schemas in different formats.
Key classes:
ISchemaGenerator- Main interface for schema generationIGenerationState- Manages state during schema generationIInlineStrategy- Controls definition inlining behaviorModuleIndex- Indexes definitions across modules
-
ClassDescriptionAbstractGenerationState<WRITER,
DATATYPE_MANAGER extends dev.metaschema.schemagen.datatype.IDatatypeManager> Provides a common base implementation for schema generation state management.Represents a collection of allowed values with a flag indicating whether the value set is closed (no other values allowed) or open.AbstractSchemaGenerator<T extends AutoCloseable,D extends dev.metaschema.schemagen.datatype.IDatatypeManager, S extends AbstractGenerationState<T, D>> Thsi abstract class provides a common implementation shared by all schema generators.An inline strategy that inlines definitions unless they are contained within a choice block.A utility class for filtering flag instances during schema generation.IGenerationState<WRITER>Represents the state information used during schema generation.A strategy for determining whether a definition should be inlined in the generated schema or referenced as a separate type definition.Provides the capability to generate a schema from a Metaschema module.Identifies the supported schema generation formats.Indexes definitions from a Metaschema module for use in schema generation.Represents an entry in the module index for a single definition.Indicates an unrecoverable error occurred during schema generation.Configuration options for schema generation.