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. |
|||
_HasWildcardElement = False
|
|||
_ElementMap =
Map from expanded names to ElementDeclaration instances. |
|||
__wildcardAttributeMap = None hash(x) |
|||
__wildcardElements = None hash(x) |
|||
_ReservedSymbols =
There are no reserved symbols in the base class. |
|||
_Automaton = None hash(x) |
|||
__content = None hash(x) |
|||
__NeedWarnOnContent = True
|
|||
__automatonConfiguration = None hash(x) |
|||
Inherited from Inherited from |
|
|||
Inherited from 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 ElementDeclaration 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 only used when pyxb.RequireValidWhenGenerating has disabled validation. Consequently, it may not generate valid XML. |
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.ElementDeclaration instance and the value for the transition. If the content of the instance does not validate against the content model, an exception is raised.
|
Return a map from content.ElementDeclaration 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 original content.ElementUse that may have validated the assignment of the symbol to the content is no longer available, which may result in a different order being generated by the content model. Preservation of the original order mitigates this risk. 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.
|
Validate the content against the simple type.
|
Return the element and non-element content of the instance in order. This must be a complex type with complex content. The return value is a list of the element and non-element content in a preferred order. The returned list contains element and non-element content in the order which it was added to the instance. This may have been through parsing a document, constructing an instance using positional arguments, invoking the append or extend methods, or assigning directly to an instance attribute associated with an element binding.
Notes:
|
Legacy interface for ordered content. This version does not accurately distinguish non-element content from element content that happens to have unicode type. Deprecated: use orderedContent. |
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 content of an element value. This is not a public method. For simple types, this does nothing. For complex types, this clears the content array, removing all non-element content from the instance. It optionally also removes all element content.
|
Reset the instance. This resets all element and attribute fields, and discards any recorded content. It resets the content model automaton to its initial state. See Also: Manipulate the return value of orderedContent if your intent is to influence the generation of documents from the binding instance without changing its (element) content. |
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, or a string if the instance allows mixed content. The value must be permitted by the content model.
|
Inform content model that all additions have been provided. This is used to resolve any pending non-determinism when the content of an element is provided through a DOM assignment or through positional arguments in a constructor.
|
|
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 Mon Dec 17 13:09:07 2012 | http://epydoc.sourceforge.net |