xsdata.codegen.writer module¶
-
class
xsdata.codegen.writer.CodeWriter(generators=<factory>)[source]¶ Bases:
objectProxy to format generators and files structure creation.
- Parameters
generators (
Dict[str,AbstractGenerator]) –
-
generators: Dict[str, xsdata.formats.mixins.AbstractGenerator]¶
-
register_format(name, generator)[source]¶ Register a new generator by name.
- Parameters
name (
str) –generator (
AbstractGenerator) –
-
write(classes, output)[source]¶ Iterate over the designated generator outputs and create the necessary directories and files.
-
print(classes, output)[source]¶ Iterate over the designated generator outputs and print them to the console.
-
designate(classes, output, package, ns_struct)[source]¶ Normalize the target package and module names by the given output generator.