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

Source Code for Module pyxsd.elementRepresentatives.minInclusive

 1  from elementRepresentative import ElementRepresentative 
 2   
 3  #============================================================ 
 4  # 
5 -class MinInclusive(ElementRepresentative):
6 """ 7 The class for the MinInclusive 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 17 self.getContainingType().minInclusive = self.value
18 19 20 #============================================================ 21 #
22 - def getName(self):
23 """ 24 Makes a name like this- `ContainingTypeName`|minInclusive. 25 The name on this class is used for almost nothing. 26 """ 27 28 return "%s|minInclusive" % self.getContainingTypeName()
29