1
2
3 from elementRepresentative import ElementRepresentative
4
5
6
8 """
9 The class for the Documentation tag. Subclass of *ElementRepresentative*.
10 """
12 """
13 See *ElementRepresentative* for documentation. Adds its documentation to the __doc__ field for the ER.
14 """
15 ElementRepresentative.__init__(self, xsdElement, parent)
16
17 self.contType = self.getContainingType()
18
19 self.contType.__doc__ = xsdElement.text.strip()
20
21
22
24 """
25 Makes a name like this- `ContainingTypeName`|documentation.
26 The name on this class is used for almost nothing.
27 """
28 return "%s|%s" % (self.getContainingTypeName(),
29 self.__class__.__name__)
30