__init__(self,
value,
element_declaration=None,
instance=None,
tag=None)
(Constructor)
| source code
|
Create a wrapper associating a value with its element declaration.
Normally the element declaration is determined by consulting the
content model when creating a binding instance. When manipulating the
preferred content list, this may be inconvenient to obtain; in that case
provide the instance in which the content appears
immediately, along with the tag that is used for the Python
attribute that holds the element.
- Parameters:
value - the value of the element. Should be an instance of _TypeBinding_mixin,
but for simple types might be a Python native type.
element_declaration - The pyxb.binding.content.ElementDeclaration
associated with the element value. Should be None
if the element matches wildcard content.
instance - Alternative path to providing element_declaration
tag - Alternative path to providing element_declaration
- Overrides:
_Content.__init__
|