xsdata.transformer module¶
-
class
xsdata.transformer.
SchemaTransformer
(print, output)[source]¶ Bases:
object
-
print
: bool = None¶
-
output
: str = None¶
-
processed
: List[Path] = None¶
-
process_schema
(schema_path, package, target_namespace=None)[source]¶ Recursively parse the given schema and all it’s included schemas and generate a list of classes.
-
process_included
(included, package, target_namespace)[source]¶ Prepare the given included schema location and send it for processing.
-
generate_classes
(schema, package)[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
(schema_path, target_namespace)[source]¶ Parse the given schema path and return the schema tree object.
Optionally add the target namespace if the schema is included and is missing a target namespace.
- Return type
-
static
analyze_classes
(classes)[source]¶ Analyzer the given class list and simplify attributes and extensions.
-