Home | Trees | Indices | Help |
|
---|
|
object --+ | cscRoot --+ | utils.utility.Locatable_mixin --+ | _TypeBinding_mixin --+ | object --+ | | | utils.utility._DeconflictSymbols_mixin --+ | object --+ | | | cscRoot --+ | | | _DynamicCreate_mixin --+ | complexTypeDefinition
Base for any Python class that serves as the binding for an XMLSchema complexType.
Subclasses should define a class-level _AttributeMap variable which maps from the unicode tag of an attribute to the AttributeUse instance that defines it. Similarly, subclasses should define an _ElementMap variable.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
_CT_EMPTY =
|
|||
_CT_SIMPLE =
|
|||
_CT_MIXED =
hash(x) |
|||
_CT_ELEMENT_ONLY =
|
|||
_ContentTypeTag = None hash(x) |
|||
_TypeDefinition = None Subclass of simpleTypeDefinition that corresponds to the type content. |
|||
_AttributeWildcard = None hash(x) |
|||
_AttributeMap =
Map from expanded names to AttributeUse instances. |
|||
_HasWildcardElement = False
|
|||
_ElementMap =
Map from expanded names to ElementUse instances. |
|||
__wildcardAttributeMap = None hash(x) |
|||
__wildcardElements = None hash(x) |
|||
_ReservedSymbols =
There are no reserved symbols in the base class. |
|||
_ContentModel = None hash(x) |
|||
__content = None hash(x) |
|||
__modelState = None hash(x) |
|||
|
|||
Inherited from |
|
Obtain access to wildcard attributes. The return value is To Do: The map keys should be namespace extended names rather than QNames, as the in-scope namespace may not be readily available to the user. |
Obtain access to wildcard elements. The return value is |
Create a new instance of this binding. Arguments are used as transition values along the content model. Keywords are passed to the constructor of any simple content, or used to initialize attribute and element values whose id (not name) matches the keyword.
|
Method used by generated code to associate the element binding with a use in this type. This is necessary because all complex type classes appear in the module prior to any of the element instances (which reference type classes), so the association must be formed after the element instances are available. |
Return the ElementUse object corresponding to the element name.
|
Generate a list of children in the order in which they should be added to the parent when creating a DOM representation of this object. Note: This is not currently used; it is retained as an example of one way to override _validatedChildren in cases where content model validation is not required. |
Provide the child elements and non-element content in an order consistent with the content model. Returns a sequence of tuples representing a valid path through the content model where each transition corresponds to one of the member element instances within this instance. The tuple is a pair comprising the content.ElementUse instance and the value for the transition. If the content of the instance does not validate against the content
model, The base class implementation uses the content.ParticleModel.validate method. Subclasses may desire to override this in cases where the desired order is not maintained by model interpretation (for example, when an "all" model is used and the original element order is desired). See __childrenForDOM as an example of an alternative approach.
|
Return a map from content.ElementUse instances to a list of values associated with that use. This is used as the set of symbols available for transitions when validating content against a model. Note that the order of values within a use is likely to be significant, although the model cannot detect this. The value If an element use has no associated values, it must not appear in the returned map. |
Override in subclasses for type-specific validation of instance content.
|
Initialize the attributes of this element from those of the DOM node.
|
Validate the content against the simple type.
|
Return the content of the element. This must be a complex type with complex content. The return value is a list of the element and non-element content in the order in which it was added.
|
Return the value of the element. This must be a complex type with simple content. The returned value is expected to be an instance of some simpleTypeDefinition class.
|
|
Reset the instance. This resets all element and attribute fields, and discards any recorded content. It resets the DFA to the initial state of the content model. |
Determine what the given name means as an element in this type. Normally, It may also be that the If a non-
|
Add the value to the instance. The value should be a DOM node or other value that is or can be converted to a binding instance. If the instance has a DFA state, the value must be permitted by the content model.
|
|
Create a DOM element with the given tag holding the content of this instance.
|
CTDs with simple content are simple; other CTDs are not.
|
|
_TypeDefinitionSubclass of simpleTypeDefinition that corresponds to the type content. Only valid if _ContentTypeTag is _CT_SIMPLE
|
_ReservedSymbolsThere are no reserved symbols in the base class.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 9 14:08:49 2011 | http://epydoc.sourceforge.net |