xsdata.codegen.transformer module¶
-
class
xsdata.codegen.transformer.
SchemaTransformer
(print, output)[source]¶ Bases:
object
-
print
: bool = None¶
-
output
: str = None¶
-
processed
: List[str] = None¶
-
process_schema
(url, namespace=None)[source]¶ Recursively parse the given schema url and the included schemas and generate a list of classes.
-
process_included
(included, namespace)[source]¶ Prepare the given included schema location and send it for processing.
-
generate_classes
(schema)[source]¶ Convert the given schema tree to codegen classes and use the writer factory to either generate or print the result code.
-
static
parse_schema
(url, namespace)[source]¶ Parse the given schema url 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.
-