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 --+ | | | utils.utility.PrivateTransient_mixin --+ | | | object --+ | | | | | cscRoot --+ | | | _NamedComponent_mixin --+ | object --+ | | | cscRoot --+ | | | namespace.resolution._Resolvable_mixin --+ | object --+ | | | cscRoot --+ | | | _Annotated_mixin --+ | object --+ | | | cscRoot --+ | | | _ValueConstraint_mixin --+ | object --+ | | | cscRoot --+ | | | _ScopedDeclaration_mixin --+ | ElementDeclaration
An XMLSchema Element Declaration component.
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
__typeDefinition = None hash(x) |
|||
__substitutionGroupAttribute = None hash(x) |
|||
__typeAttribute = None hash(x) |
|||
__nillable = False
|
|||
__identityConstraintDefinitions = None hash(x) |
|||
__substitutionGroupAffiliation = None hash(x) |
|||
SGE_none = 0
|
|||
SGE_extension = 1
|
|||
SGE_restriction = 2
|
|||
SGE_substitution = 4
|
|||
_SGE_Map =
|
|||
_DS_Map =
|
|||
__substitutionGroupExclusions = 0
|
|||
__disallowedSubstitutions = 0
|
|||
__abstract = False
|
|||
__isResolved = False
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Element declarations depend on the type definition of their content.
|
Initialize portions of a component.
|
Create an element declaration from the given DOM node. wxs is a Schema instance within which the element is being declared. scope is the _ScopeDeclaration_mixin context into which the element declaration is recorded. It can be SCOPE_global, a complex type definition, or None in the case of elements declared in a named model group. node is a DOM element. The name must be 'element', and the node must be in the XMLSchema namespace. |
Determine whether this element declaration is adaptable. OK, this gets ugly. First, if this declaration isn't resolved, it's clearly not adaptable. Now: For it to be adaptable, we must know enough about its type to verify that it is derivation-consistent with any other uses of the same name in the same complex type. If the element's type is resolved, that's good enough. If the element's type isn't resolved, we're golden as long as type-equivalent types were used. But it's also allowed for the derived ctd to use the element name constraining it to a derivation of the element base type. (Go see namespace http://www.opengis.net/ows/1.1 types PositionType, PositionType2D, BoundingBox, and WGS84BoundingBox for an example). So, we really do have to have the element's type resolved. Except that if a CTD's content incorporates an element with the same type as the CTD (i.e., nested), this will never happen, because the CTD can't get resolved until after it has been resolved. (Go see {http://www.opengis.net/ows/1.1}ContentsBaseType and {http://www.opengis.net/ows/1.1}DatasetDescriptionSummaryBaseType for an example). So, we give the world a break and assume that if the type we're trying to resolve is the same as the type of an element in that type, then the element type will be resolved by the point it's needed. In point of fact, it won't, but we'll only notice that if a CTD contains an element whose type is a restriction of the CTD. In that case, isDerivationConsistent will blow chunks and somebody'll have to come back and finish up this mess. |
Determine whether this named component is resolved. Override this in the child class.
|
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
|
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 Mon Dec 17 13:09:09 2012 | http://epydoc.sourceforge.net |