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

Source Code for Module pyxsd.elementRepresentatives.minExclusive

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