Package pyxb :: Package xmlschema :: Module structures :: Class Wildcard |
[hide private]
[frames] | no frames]

# type Wildcard

source code

                                   object --+
                                            |
                                      cscRoot --+
                                                |
                              _ParticleTree_mixin --+
                                                    |
                           object --+               |
                                    |               |
                              cscRoot --+           |
                                        |           |
     utils.utility.PrivateTransient_mixin --+       |
                                            |       |
                               object --+   |       |
                                        |   |       |
                                  cscRoot --+       |
                                            |       |
         namespace._ComponentDependency_mixin --+   |
                                                |   |
                               object --+       |   |
                                        |       |   |
                                  cscRoot --+   |   |
                                            |   |   |
    namespace.archive._ArchivableObject_mixin --+   |
                                                |   |
                               object --+       |   |
                                        |       |   |
                                  cscRoot --+   |   |
                                            |   |   |
         utils.utility.PrivateTransient_mixin --+   |
                                                |   |
                               object --+       |   |
                                        |       |   |
                                  cscRoot --+   |   |
                                            |   |   |
                utils.utility.Locatable_mixin --+   |
                                                |   |
                           _SchemaComponent_mixin --+
                                                    |
                                   object --+       |
                                            |       |
                                      cscRoot --+   |
                                                |   |
                                 _Annotated_mixin --+
                                                    |
                                                   Wildcard

An XMLSchema Wildcard component.

Instance Methods | [hide private]
namespaceConstraint(self) A constraint on the namespace for the wildcard. | source code
processContents(self) | source code
hasWildcardElement(self) Return True, since Wildcard components are wildcards. | source code
__init__(self, *args, **kw) Initialize portions of a component. | source code
isAdaptable(self, ctd) | source code
_walkParticleTree(self, visit, arg) Mix-in supporting walks of Particle trees. | source code
_adaptForScope(self, owner, ctd) Wildcards are scope-independent; return self | source code
Inherited from `_SchemaComponent_mixin`: `bestNCName`, `facStateSortKey`, `hasBinding`, `isTypeDefinition`, `isUrTypeDefinition`, `nameInBinding`, `owner`, `schemaOrderSortKey`, `setNameInBinding` Inherited from `_SchemaComponent_mixin` (private): `_clearNamespaceContext`, `_clone`, `_cloneSource`, `_clones`, `_dissociateFromNamespace`, `_namespaceContext`, `_resetClone_csc`, `_scope`, `_scopeIsGlobal`, `_scopeIsIndeterminate`, `_setFacStateSortKey`, `_setOwner`, `_setScope`, `_updateFromOther_csc` Inherited from `namespace._ComponentDependency_mixin`: `bindingRequires` Inherited from `namespace._ComponentDependency_mixin` (private): `_bindingRequires_vx` Inherited from `namespace.archive._ArchivableObject_mixin` (private): `_allowUpdateFromOther`, `_objectOrigin`, `_prepareForArchive`, `_setObjectOrigin`, `_updateFromOther` Inherited from `utils.utility.PrivateTransient_mixin`: `__getstate__` Inherited from `utils.utility.Locatable_mixin` (private): `_location`, `_setLocation` Inherited from `_Annotated_mixin`: `annotation` Inherited from `_Annotated_mixin` (private): `_annotationFromDOM`

Class Methods | [hide private]
IntensionalUnion(cls, constraints) http://www.w3.org/TR/xmlschema-1/#cos-aw-union | source code
IntensionalIntersection(cls, constraints) http://www.w3.org/TR/xmlschema-1/#cos-aw-intersect | source code
CreateFromDOM(cls, node, **kw) | source code

Class Variables | [hide private]
| NC_any = ``'``##any``'``
| NC_not = ``'``##other``'``
| NC_targetNamespace = ``'``##targetNamespace``'``
| NC_local = ``'``##local``'``
| __namespaceConstraint = `None`
| PC_skip = ``'``skip``'``
| PC_lax = ``'``lax``'``
| PC_strict = ``'``strict``'``
| __processContents = `None`
Inherited from `_SchemaComponent_mixin` (private): `_SchemaComponent_mixin__PrivateTransient`, `_SchemaComponent_mixin__cloneSource`, `_SchemaComponent_mixin__clones`, `_SchemaComponent_mixin__facStateSortKey`, `_SchemaComponent_mixin__nameInBinding`, `_SchemaComponent_mixin__namespaceContext`, `_SchemaComponent_mixin__ownedComponents`, `_SchemaComponent_mixin__owner`, `_SchemaComponent_mixin__schemaOrderSortKey`, `_SchemaComponent_mixin__scope` Inherited from `namespace._ComponentDependency_mixin` (private): `_ComponentDependency_mixin__PrivateTransient`, `_ComponentDependency_mixin__bindingRequires` Inherited from `namespace.archive._ArchivableObject_mixin` (private): `_ArchivableObject_mixin__objectOrigin` Inherited from `_Annotated_mixin` (private): `_Annotated_mixin__annotation`

Method Details | [hide private]

### namespaceConstraint(self) | source code
A constraint on the namespace for the wildcard. Valid values are: Wildcard.NC_any A tuple ( Wildcard.NC_not, a_namespace ) set(of_namespaces) Note that namespace are represented by Namespace instances, not the URIs that actually define a namespace. Absence of a namespace is represented by `None`, both in the "not" pair and in the set.

### __init__(self, *args, **kw) (Constructor) | source code
Initialize portions of a component. Parameters: `scope` - The scope in which the component is defined `namespace_context` - The NamespaceContext to use within this component `node` - If no `namespace_context` is provided, a DOM node must be provided from which a namespace context can be identified. `owner` - Reference to the component that owns this one (the immediately enclosing component). Is `None` in the case of top-level components. `schema` - Reference to the Schema component to which the component belongs. Required for every component except Schema, Annotation, and Wildcard. Overrides: cscRoot.__init__

### _walkParticleTree(self, visit, arg) | source code
Mix-in supporting walks of Particle trees. This invokes a provided function on each node in a tree defining the content model of a particle, both on the way down the tree and on the way back up. A standard implementation would be:
     def _walkParticleTree (self, visit, arg):
       visit(self, True, arg)
       self.__term.walkParticleTree(visit, arg)
       visit(self, False, arg)
Parameters: `visit` - A callable with parameters `node, entering, arg` where `node` is an instance of a class inheriting _ParticleTree_mixin, `entering` indicates tree transition status, and `arg` is a caller-provided state parameter. `entering` is `True` if `node` has particle children and the call is before they are visited; `None` if the `node` has no particle children; and `False` if `node` has particle children and they have been visited. `arg` - The caller-provided state parameter to be passed along with the node and entry/exit status in the invocation of `visit`. Overrides: _ParticleTree_mixin._walkParticleTree (inherited documentation)