Package pyxb :: Package binding :: Module facets :: Class _CollectionFacet_mixin |
[hide private]
[frames] | no frames]

# type _CollectionFacet_mixin

source code

    object --+
             |
       cscRoot --+
                 |
                _CollectionFacet_mixin

Known Subclasses:
  - CF_enumeration
  - , CF_pattern

Mix-in to handle facets whose values are collections, not scalars.

For example, the enumeration and pattern facets maintain a list of enumeration values and patterns, respectively, as their value space.

Subclasses must define a class variable _CollectionFacet_itemType which is a reference to a class that is used to construct members of the collection.

Instance Methods | [hide private]
_setFromKeywords_vb(self, **kw) Extend base class. | source code
_items(self) The members of the collection, as a reference. | source code
items(self) The members of the collection, as a copy. | source code
iteritems(self) The members of the collection as an iterator | source code
Inherited from `cscRoot`: `__init__`

Class Variables | [hide private]
| __items = `None`
| _CollectionFacet_mixin__items = `None`

Method Details | [hide private]

### _setFromKeywords_vb(self, **kw) | source code
Extend base class. Parameters: `_constructor` - If `False` or absent, the object being set is a member of the collection. If `True`, the object being set is the collection itself.