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

Class 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, bindingSortKey, hasBinding, isTypeDefinition, isUrTypeDefinition, nameInBinding, owner, setNameInBinding

Inherited from namespace._ComponentDependency_mixin: bindingRequires

Inherited from utils.utility.PrivateTransient_mixin: __getstate__

Inherited from _Annotated_mixin: annotation

Inherited from _Annotated_mixin (private): _annotationFromDOM

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

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
hash(x)
  PC_skip = 'skip'
  PC_lax = 'lax'
  PC_strict = 'strict'
  __processContents = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

namespaceConstraint(self)

source code 

A constraint on the namespace for the wildcard.

Valid values are:

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: object.__init__
(inherited documentation)

_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)