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

Class ConstrainingFacet

source code

object --+        
         |        
   cscRoot --+    
             |    
         Facet --+
                 |
                ConstrainingFacet
Known Subclasses:

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

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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

Create a facet instance, initializing it from the keyword parameters.

Overrides: object.__init__
(inherited documentation)

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'>,
...