Package pyxsd :: Package elementRepresentatives :: Module annotation
[hide private]
[frames] | no frames]

Source Code for Module pyxsd.elementRepresentatives.annotation

 1   
 2   
 3  from elementRepresentative import ElementRepresentative 
 4   
 5  #============================================================ 
 6  # 
7 -class Annotation(ElementRepresentative):
8 """ 9 The class for the Annotation tag. Subclass of ElementRepresentative. 10 """
11 - def __init__(self, xsdElement, parent):
12 """ 13 See *ElementRepresentative* for documentation. 14 """ 15 ElementRepresentative.__init__(self, xsdElement, parent)
16 17 #============================================================ 18 #
19 - def getName(self):
20 """ 21 Makes a name like this- `ContainingTypeName`|annotation. 22 The name on this class is used for almost nothing. 23 """ 24 contName = self.getContainingTypeName() 25 26 return "%s|%s" % (contName, self.__class__.__name__)
27