xsdata.codegen.transformer module¶
-
class
xsdata.codegen.transformer.
SchemaTransformer
(print, output)[source]¶ Bases:
object
Orchestrate the code generation from a list of sources to the output format.
- Parameters
-
process_schema
(uri, namespace=None)[source]¶ Recursively parse the given schema uri and all the imports and generate a class map indexed with the schema uri.
-
static
parse_schema
(uri, namespace=None)[source]¶ Parse the given schema uri and return the schema tree object.
Optionally add the target namespace if the schema is included and is missing a target namespace.
-
static
analyze_classes
(classes)[source]¶ Analyzer the given class list and simplify attributes and extensions.