Package pyxb :: Package xmlschema :: Module structures :: Class _PluralityData
[hide private]
[frames] | no frames]

Class _PluralityData

source code

object --+    
         |    
      list --+
             |
            _PluralityData

This class represents an abstraction of the set of documents conformant to a particle or particle term.

The abstraction of a given document is a map from element declarations that can appear at the top level of the document to a boolean that is true iff there could be multiple instances of that element declaration at the top level of a valid document. The abstraction of the set is a list of document abstractions.

This information is used in binding generation to determine whether a field associated with a tag might need to hold multiple instances.

Instance Methods [hide private]
 
combinedPlurality(self)
Combine all the document abstractions into a single one that covers all possible documents.
source code
 
__fromModelGroup(self, model_group) source code
 
__fromParticle(self, particle) source code
 
__setFromComponent(self, component=None) source code
new empty list
__init__(self, component=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_PluralityData__fromModelGroup(self, model_group) source code
 
_PluralityData__fromParticle(self, particle) source code
 
_PluralityData__setFromComponent(self, component=None) source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]
 
_MapUnion(self, map1, map2)
Given two maps, return an updated map indicating the unified plurality.
source code
Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

combinedPlurality(self)

source code 

Combine all the document abstractions into a single one that covers all possible documents.

The combined plurality is simply the elemental maximum over all document abstractions.

__init__(self, component=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: new empty list
Overrides: object.__init__
(inherited documentation)