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

Source Code for Module pyxsd.elementRepresentatives.maxInclusive

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