Aggregate the information relevant to an element of a complex
type.
|
|
pyxb.namespace.ExpandedName
|
name(self)
The expanded name of the element. |
source code
|
|
|
id(self)
The string name of the binding class field used to hold the element
values. |
source code
|
|
|
elementBinding(self)
The basis.element instance identifying the information
associated with the element declaration. |
source code
|
|
|
|
|
isPlural(self)
True iff the content model indicates that more than one element can
legitimately belong to this use. |
source code
|
|
|
__init__(self,
name,
id,
key,
is_plural,
location,
element_binding=None)
Create an ElementDeclaration instance. |
source code
|
|
|
|
|
|
|
value(self,
ctd_instance)
Return the value for this use within the given instance. |
source code
|
|
|
reset(self,
ctd_instance)
Set the value for this use in the given element to its default. |
source code
|
|
|
set(self,
ctd_instance,
value)
Set the value of this element in the given instance. |
source code
|
|
|
setOrAppend(self,
ctd_instance,
value)
Invoke either set or append, depending on whether the element use is
plural. |
source code
|
|
|
append(self,
ctd_instance,
value)
Add the given value as another instance of this element within the
binding instance. |
source code
|
|
|
toDOM(self,
dom_support,
parent,
value)
Convert the given value to DOM as an instance of this element. |
source code
|
|
|
_description(self,
name_only=False,
user_documentation=True) |
source code
|
|
|
|
|
|