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

# type _LateDatatype_mixin

source code

    object --+
             |
       cscRoot --+
                 |
                _LateDatatype_mixin

Known Subclasses:
  - CF_enumeration
  - , CF_maxExclusive
  - , CF_maxInclusive
  - , CF_minExclusive
  - , CF_minInclusive

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__`

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`.

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