Package pyxb :: Package binding :: Module basis :: Class enumeration_mixin
[hide private]
[frames] | no frames]

Class enumeration_mixin

source code

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

Marker in case we need to know that a PST has an enumeration constraint facet.

Instance Methods [hide private]

Inherited from cscRoot: __init__

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

Class Methods [hide private]
 
itervalues(cls)
Return a generator for the values that the enumeration can take.
source code
 
values(cls)
Return a list of values that the enumeration can take.
source code
 
iteritems(cls)
Generate the associated pyxb.binding.facet._EnumerationElement instances.
source code
 
items(cls)
Return the associated pyxb.binding.facet._EnumerationElement instances.
source code
 
_elementForValue(cls, value)
Return the _EnumerationElement instance that has the given value.
source code
 
_valueForUnicode(cls, ustr)
Return the enumeration value corresponding to the given unicode string.
source code
Class Variables [hide private]
  _ReservedSymbols = set(['items', 'iteritems', 'itervalues', 'v...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_elementForValue(cls, value)
Class Method

source code 

Return the _EnumerationElement instance that has the given value.

Raises:
  • KeyError - the value is not valid for the enumeration.

_valueForUnicode(cls, ustr)
Class Method

source code 

Return the enumeration value corresponding to the given unicode string.

If ustr is not a valid option for this enumeration, return None.


Class Variable Details [hide private]

_ReservedSymbols

Value:
set(['items', 'iteritems', 'itervalues', 'values'])