Class that represents a schema element.
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)
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,
expanded_name=None,
fallback_namespace=None,
**kw)
Create a binding instance from the given DOM node. |
source code
|
|
|
_createFromDOM(self,
node,
expanded_name,
**kw)
Create a binding instance from the given DOM node, using the provided
name to identify the correct binding. |
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__
|