xsdata.codegen.handlers.attribute_substitution module¶
-
class
xsdata.codegen.handlers.attribute_substitution.
AttributeSubstitutionHandler
(container)[source]¶ Bases:
xsdata.codegen.mixins.HandlerInterface
Apply substitution attributes to the given class recursively.
Substitution attributes are placed below the attribute the are supposed to substitute. Exclude enumerations and wildcard attributes from the process.
- Parameters
container (
ContainerInterface
) –
-
container
: ContainerInterface = None¶
-
substitutions
: Optional[Dict[lxml.etree.QName, List[xsdata.codegen.models.Attr]]] = None¶