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

Class _CollectionFacet_mixin

source code

object --+    
         |    
   cscRoot --+
             |
            _CollectionFacet_mixin
Known Subclasses:

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__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __items = None
hash(x)
  _CollectionFacet_mixin__items = None
hash(x)
Properties [hide private]

Inherited from object: __class__

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.