Class that represents a schema element within a binding.
Within a PyXB binding, the element declarations from the original
complex type definition that have the same QName (after deconflicting the LocalPart) are associated with an attribute in the
class for the complex type. Each of these attributes is defined via a pyxb.binding.content.ElementDeclaration which provides
the mechanism by which the binding holds values associated with that
element.
Furthermore, in the FAC-based content model each schema element
declaration is associated with an ElementUse instance to locate the point in the schema
where content came from. Instances that refer to the same schema element
declaration share the same underlying pyxb.binding.content.ElementDeclaration.
This element isn't any of those elements. This element is the type
used for an attribute which associates the name of a element with data
required to represent it, all within a particular scope (a module for
global scope, the binding class for a complex type definition for local
scope). From the perspective of a PyXB user they look almost like a
class, in that you can call them to create instances of the underlying
complex type.
Global and local elements are represented by instances of this
class.
|
name(self)
The expanded name of the element within its scope. |
source code
|
|
|
|
|
|
|
|
|
nillable(self)
Indicate whether values matching this element can have nil set. |
source code
|
|
|
abstract(self)
Indicate whether this element is abstract (must use substitution
group members for matches). |
source code
|
|
|
documentation(self)
Contents of any documentation annotation in the definition. |
source code
|
|
|
|
|
|
|
_setSubstitutionGroup(self,
substitution_group) |
source code
|
|
|
|
|
|
|
substitutesFor(self,
other)
Stub replaced by _real_substitutesFor when element supports
substitution groups. |
source code
|
|
|
memberElement(self,
name)
Return a reference to the element instance used for the given name
within this element. |
source code
|
|
|
__init__(self,
name,
type_definition,
scope=None,
nillable=False,
abstract=False,
default_value=None,
substitution_group=None,
documentation=None,
location=None)
Create a new element binding. |
source code
|
|
|
__call__(self,
*args,
**kw)
Invoke the Factory method on the type associated with this element. |
source code
|
|
|
|
|
elementForName(self,
name)
Return the element that should be used if this element binding is
permitted and an element with the given name is encountered. |
source code
|
|
|
createFromDOM(self,
node,
fallback_namespace=None,
**kw)
Create an instance of this element using a DOM node as the source of
its content. |
source code
|
|
|
|
|
|
|
_description(self,
name_only=False,
user_documentation=True) |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|