xsdata.codegen.handlers.attribute_group module

class xsdata.codegen.handlers.attribute_group.AttributeGroupHandler(container)[source]

Bases: xsdata.codegen.mixins.HandlerInterface

Replace attribute groups with the source class attributes.

Parameters

container (ContainerInterface) –

container: ContainerInterface
process(target)[source]

Iterate over all group attributes and apply handler logic.

Group attributes can refer to attributes or other group attributes, repeat until there is no group attribute left.

Parameters

target (Class) –

process_attribute(target, attr)[source]

Find the source class the attribute refers to and copy its attributes to the target class.

Raises

AnalyzerValueError – if source class is not found.

Parameters