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

Class _LateDatatype_mixin

source code

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

Marker class to indicate that the facet instance must be told its datatype when it is constructed.

This is necessary for facets like CF_minInclusive and CF_minExclusive, for which the value is determined by the base type definition of the associated STD. In some cases the value that must be used in the facet cannot be represented in the Python type used for the facet; see LateDatatypeBindsSuperclass.

Instance Methods [hide private]
 
bindValueDatatype(self, value_datatype) source code

Inherited from cscRoot: __init__

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

Class Methods [hide private]
 
LateDatatypeBindsSuperclass(cls)
Return true if false if the proposed datatype should be used, or True if the base type definition of the proposed datatype should be used.
source code
 
BindingValueDatatype(cls, value_type)
Find the datatype for facet values when this facet is bound to the given value_type.
source code
Class Variables [hide private]
  _LateDatatypeBindsSuperclass = None
The class variable that indicates that the Subclasses must override this variable with a value of True or False.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

BindingValueDatatype(cls, value_type)
Class Method

source code 

Find the datatype for facet values when this facet is bound to the given value_type.

If the value_type is an STD, the associated Python support datatype from this value_type scanning up through the base type hierarchy is used.


Class Variable Details [hide private]

_LateDatatypeBindsSuperclass

The class variable that indicates that the Subclasses must override this variable with a value of True or False. The value is True iff the value used for the facet is not within the value space of the corresponding value datatype; for example, CF_minExclusive.

Value:
None