Home | Trees | Indices | Help |
|
---|
|
object --+ | utils.utility._DeconflictSymbols_mixin --+ | object --+ | | | cscRoot --+ | | | _DynamicCreate_mixin --+ | element
Class that represents a schema element within a binding.
This gets a little confusing. Within a schema, the pyxb.xmlschema.structures.ElementDeclaration type represents an element declaration. Those declarations may be global (have a name that is visible in the namespace), or local (have a name that is visible only within a complex type definition). Further, local (but not global) declarations may have a reference to a global declaration (which might be in a different namespace).
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.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
__name = None hash(x) |
|||
__typeDefinition = None hash(x) |
|||
__xsdLocation = None hash(x) |
|||
__scope = None hash(x) |
|||
__nillable = False
|
|||
__abstract = False
|
|||
__documentation = None hash(x) |
|||
__defaultValue = None hash(x) |
|||
__fixed = False
|
|||
__substitutionGroup = None hash(x) |
|||
Inherited from |
|
|||
Inherited from |
|
The scope of the element. This is either |
The default value of the element.
Note:
A non- |
The element instance to whose substitution group this
element belongs. |
Determine whether an instance of this element can substitute for the other element. To Do: Do something about blocking constraints. This ignores them, as does everything leading to this point. |
Return a reference to the element instance used for the given name within this element. The type for this element must be a complex type definition. |
Create a new element binding.
|
Invoke the Factory method on the type associated with this element.
Note: Other keywords are passed to _TypeBinding_mixin.Factory. |
Return a variant of the value that is compatible with this element. This mostly defers to _TypeBinding_mixin._CompatibleValue.
|
Create a binding from a DOM node.
|
Create an instance of an element from a DOM node. This method does minimal processing of
|
Return the element that should be used if this element binding is permitted and an element with the given name is encountered. Normally, the incoming name matches the name of this binding, and
|
Create an instance of this element using a DOM node as the source of its content. This method does minimal processing of
Note: Keyword parameters are passed to CreateDOMBinding. |
Create an instance from a DOM node given the name of an element. This method does minimal processing of
Note: Keyword parameters are passed to CreateDOMBinding. |
str(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:53 2013 | http://epydoc.sourceforge.net |