Package pyxsd :: Package elementRepresentatives :: Module choice :: Class Choice
[hide private]
[frames] | no frames]

Class Choice

source code

                                 object --+    
                                          |    
elementRepresentative.ElementRepresentative --+
                                              |
                                             Choice

The class for the choice tag. Subclass of ElementRepresentative.

Instance Methods [hide private]
  __init__(self, xsdElement, parent)
Adds itself to the sequencesOrChoices list in its containing complexType.
  getName(self)
Makes a name like this- choice`some id number`.
  getMinOccurs(self)
retrieves the minOccurs value for elements in the choice.
  getMaxOccurs(self)
retrieves the maxOccurs value for elements in the choice.

Inherited from elementRepresentative.ElementRepresentative: __str__, addSuperClassName, checkTopLevelType, describe, findLayerNum, getContainingType, getContainingTypeName, getSchema, processChildren

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__


Class Methods [hide private]

Inherited from elementRepresentative.ElementRepresentative: classNameFor, factory, getFromName, register, typeFromName


Static Methods [hide private]

Inherited from elementRepresentative.ElementRepresentative: tryConvert


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, xsdElement, parent)
(Constructor)

source code 
Adds itself to the sequencesOrChoices list in its containing complexType. Makes a blank list for element children. Uses the ER '__init__`. See ElementRepresentative for more documentation.
Overrides: elementRepresentative.ElementRepresentative.__init__

getName(self)

source code 
Makes a name like this- choice`some id number`.
Overrides: elementRepresentative.ElementRepresentative.getName

getMinOccurs(self)

source code 

retrieves the minOccurs value for elements in the choice. Sets it to the default of 1 if it is not specified.

No parameters.

getMaxOccurs(self)

source code 

retrieves the maxOccurs value for elements in the choice. Sets it to the default of 1 if it is not specified. Sets 'unbounded' values to 99999, since it needs to be an integer.

No parameters.