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

# type ConstrainingFacet

source code

    object --+
             |
       cscRoot --+
                 |
             Facet --+
                     |
                    ConstrainingFacet

Known Subclasses:
  - CF_enumeration
  - , CF_fractionDigits
  - , CF_length
  - , CF_maxExclusive
  - , CF_maxInclusive
  - , CF_maxLength
  - , CF_minExclusive
  - , CF_minInclusive
  - , CF_minLength
  - , CF_pattern
  - , CF_totalDigits
  - , CF_whiteSpace

One of the facets defined in section 4.3, which provide constraints on the lexical space of a type definition.

Instance Methods | [hide private]
__init__(self, **kw) Create a facet instance, initializing it from the keyword parameters. | source code
_validateConstraint_vx(self, value) | source code
validateConstraint(self, value) Return True iff the given value satisfies the constraint represented by this facet instance. | source code
__setFromKeywords(self, **kw) | source code
_setFromKeywords_vb(self, **kw) Extend base class. | source code
Inherited from `Facet`: `__str__`, `annotation`, `baseTypeDefinition`, `ownerTypeDefinition`, `setFromKeywords`, `value`, `valueDatatype` Inherited from `Facet` (private): `_value`, `_valueString`

Class Methods | [hide private]
Inherited from `Facet`: `ClassForFacet`, `Name`

Class Variables | [hide private]
| _FacetPrefix = ``'``CF``'``
| Facets = ``[`<class 'pyxb.binding.facets.CF_length'>`,` <class 'pyx`...``
Inherited from `Facet` (private): `_Name`, `_ValueDatatype`

Method Details | [hide private]

### __init__(self, **kw) (Constructor) | source code
Create a facet instance, initializing it from the keyword parameters. Overrides: cscRoot.__init__

### validateConstraint(self, value) | source code
Return True iff the given value satisfies the constraint represented by this facet instance. The actual test is delegated to the subclasses.

### _setFromKeywords_vb(self, **kw) | source code
Extend base class. Additional keywords: * value Parameters: `_reset` - If `False` or missing, existing values will be retained if they do not appear in the keywords. If `True`, members not defined in the keywords are set to a default. `base_type_definition` `owner_type_definition` `value_datatype` Overrides: Facet._setFromKeywords_vb

Class Variable Details | [hide private]

  ### Facets Value:
      [<class 'pyxb.binding.facets.CF_length'>,
       <class 'pyxb.binding.facets.CF_minLength'>,
       <class 'pyxb.binding.facets.CF_maxLength'>,
       <class 'pyxb.binding.facets.CF_pattern'>,
       <class 'pyxb.binding.facets.CF_enumeration'>,
       <class 'pyxb.binding.facets.CF_whiteSpace'>,
       <class 'pyxb.binding.facets.CF_minInclusive'>,
       <class 'pyxb.binding.facets.CF_maxInclusive'>,
      ...