xsdata.formats.mixins module¶
-
class
xsdata.formats.mixins.GeneratorResult(path, title, source)[source]¶ Bases:
objectGenerator easy access output wrapper.
- Parameters
-
path: pathlib.Path¶
-
class
xsdata.formats.mixins.AbstractGenerator(tpl_dir, config)[source]¶ Bases:
objectAbstract code generator class.
- Parameters
tpl_dir (
str) – Templates directoryconfig (
GeneratorConfig) – Generator configuration
-
template(name)[source]¶ Return the named template from the initialized environment.
- Parameters
name (
str) –- Return type
Template
-
abstract
render(classes)[source]¶ Return a iterator of the generated results.
- Parameters
- Return type
-
classmethod
group_by_package(classes)[source]¶ Group the given list of classes by the target package directory.