Home | Trees | Indices | Help |
|
---|
|
object --+ | ValidationConfig
Class holding configuration related to validation.
pyxb.GlobalValidationConfig is available to influence validation in all contexts. Each binding class has a reference to an instance of this class, which can be inspected using pyxb.binding.basis._TypeBinding_mixin._GetValidationConfig and changed using pyxb.binding.basis._TypeBinding_mixin._SetValidationConfig. Each binding instance has a reference inherited from its class which can be inspected using pyxb.binding.basis._TypeBinding_mixin._validationConfig and changed using pyxb.binding.basis._TypeBinding_mixin._setValidationConfig.
This allows fine control on a per class and per-instance basis.
forBinding replaces RequireValidWhenParsing.
forDocument replaces RequireValidWhenGenerating.
contentInfluencesGeneration, orphanElementInContent, and invalidElementInContent control how pyxb.binding.basis.complexTypeDefinition.orderedContent affects generated documents.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
__forBinding = True
|
|||
__forDocument = True
|
|||
ALWAYS = -1 Always do it. |
|||
NEVER = 0 Never do it. |
|||
IGNORE_ONCE = 1 If an error occurs ignore it and continue with the next one. |
|||
GIVE_UP = 2 If an error occurs ignore it and stop using whatever provided the cause of the error. |
|||
RAISE_EXCEPTION = 3 If an error occurs, raise an exception. |
|||
MIXED_ONLY = 4 Only when content type is mixed. |
|||
__contentInfluencesGeneration = 4
|
|||
__orphanElementInContent = 1
|
|||
__invalidElementInContent = 1
|
|
|||
forBindingTrue iff validation should be performed when
manipulating a binding instance.
|
|||
forDocumentTrue iff validation should be performed when creating a
document from a binding instance.
|
|||
contentInfluencesGeneration Determine whether complex type content influences element order in document generation. |
|||
orphanElementInContent How to handle unrecognized elements in content lists. |
|||
invalidElementInContent How to handle invalid elements in content lists. |
|||
Inherited from |
|
This includes parsing a document or DOM tree, using a binding instance class constructor, or assigning to an element or attribute field of a binding instance. |
This applies at invocation of |
Determine whether complex type content influences element order in document generation. The value is one of ALWAYS, NEVER, MIXED_ONLY (default). |
How to handle unrecognized elements in content lists. This is used when consulting a complex type instance content list to influence the generation of documents from a binding instance. The value is one of IGNORE_ONCE (default), GIVE_UP, RAISE_EXCEPTION. |
How to handle invalid elements in content lists. The value is one of IGNORE_ONCE (default), GIVE_UP, RAISE_EXCEPTION. |
Make a copy of this instance. Use this to get a starting point when you need to customize validation on a per-instance/per-class basis. |
|
IGNORE_ONCEIf an error occurs ignore it and continue with the next one. (E.g., if an element in a content list fails skip it and continue with the next element in the list.)
|
GIVE_UPIf an error occurs ignore it and stop using whatever provided the cause of the error. (E.g., if an element in a content list fails stop processing the content list and execute as though it was absent).
|
|
forBinding
This includes parsing a document or DOM tree, using a binding instance class constructor, or assigning to an element or attribute field of a binding instance.
|
forDocument
This applies at invocation of
|
contentInfluencesGenerationDetermine whether complex type content influences element order in document generation. The value is one of ALWAYS, NEVER, MIXED_ONLY (default).
|
orphanElementInContentHow to handle unrecognized elements in content lists. This is used when consulting a complex type instance content list to influence the generation of documents from a binding instance. The value is one of IGNORE_ONCE (default), GIVE_UP, RAISE_EXCEPTION.
|
invalidElementInContentHow to handle invalid elements in content lists. The value is one of IGNORE_ONCE (default), GIVE_UP, RAISE_EXCEPTION.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:53 2013 | http://epydoc.sourceforge.net |