Home | Trees | Indices | Help |
|
---|
|
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 --+ | | | namespace.resolution._Resolvable_mixin --+ | Particle
An XMLSchema Particle component.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
frozenset
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|
|||
__minOccurs = 1
|
|||
__maxOccurs = 1
|
|||
__term = None hash(x) |
|||
__pendingTerm = None hash(x) |
|||
__refAttribute = None hash(x) |
|||
__resolvableType = None hash(x) |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
The minimum number of times the term may appear. Defaults to 1. |
Upper limit on number of times the term may appear. If None, the term may appear any number of times; otherwise, this is an integral value indicating the maximum number of times the term may appear. The default value is 1; the value, unless None, must always be at least minOccurs(). |
Extend the concept of effective total range to all particles. See http://www.w3.org/TR/xmlschema-1/#cos-seq-range and http://www.w3.org/TR/xmlschema-1/#cos-choice-range |
Return See http://www.w3.org/TR/xmlschema-1/#cos-group-emptiable |
Return True iff this particle has a wildcard in its term. Note that the wildcard may be in a nested model group. |
Create a particle from the given DOM node. term is a XML Schema Component: one of ModelGroup, ElementDeclaration, and Wildcard. The following keyword arguments are processed: min_occurs is a non-negative integer value with default 1, denoting the minimum number of terms required by the content model. max_occurs is a positive integer value with default 1, or None indicating unbounded, denoting the maximum number of terms allowed by the content model. scope is the _ScopeDeclaration_mxin context that is assigned to declarations that appear within the particle. It can be None, indicating no scope defined, or a complex type definition.
|
Perform whatever steps are required to resolve this component. Resolution is performed in the context of the namespace to which the component belongs. Invoking this method may fail to complete the resolution process if the component itself depends on unresolved components. The sole caller of this should be _NamespaceResolution_mixin.resolveDefinitions. This method is permitted (nay, encouraged) to raise an exception if resolution requires interpreting a QName and the named component cannot be found. Override this in the child class. In the prefix, if isResolved is true, return right away. If something
prevents you from completing resolution, invoke self._queueForResolution() (so
it is retried later) and immediately return self. Prior to leaving after
successful resolution discard any cached dom node by setting
|
Determine whether this named component is resolved. Override this in the child class.
|
Create a particle from the given DOM node. wxs is a Schema instance within which the model group is being defined. node is a DOM element. The name must be one of ( 'group', 'element', 'any', 'all', 'choice', 'sequence' ), and the node must be in the XMLSchema namespace. scope is the _ScopeDeclaration_mxin context that is assigned to declarations that appear within the model group. It can be None, indicating no scope defined, or a complex type definition. |
Placeholder for subclass method that identifies the necessary components.
|
The entry-point to walk a particle tree defining a content model. See _ParticleTree_mixin._walkParticleTree. |
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)
|
str(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:55 2013 | http://epydoc.sourceforge.net |