1 from elementRepresentative import ElementRepresentative
2
3
4
6 """
7 The class for the Extension tag. Subclass of *ElementRepresentative*.
8 At the current time, attributeGroups may not be fully used in the
9 program. If your schema uses AttributeGroup, you might check to make
10 sure that they are being used correctly.
11 """
12
13
14
16 """
17 Creates a dictionary for attributes.
18 Adds itself to the attribute group dictionary in schema.
19 See *ElementRepresentative* for more documentation.
20 """
21 self.attributes = {}
22
23 ElementRepresentative.__init__(self, xsdElement, parent)
24
25 attrGroupContainer = self.parent.getContainingType()
26 attrGroupContainer.attributeGroups[self.name] = self
27 self.getSchema().attributeGroups[self.name] = self
28
29
31 """
32 Returns self, because Attribute groups are containg types.
33
34 No parameters
35 """
36 return self
37