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

Module structures

source code

Classes corresponding to W3C XML Schema components.

Class names and behavior should conform to the schema components described in XML Schema Part 1: Structures. References to sections in the documentation of this module generally refers to that document.

Each class has a CreateFromDOM class method that creates an instance and initializes it from a DOM node. Only the Wildcard, Particle, and ModelGroup components are created from non-DOM sources. However, the requirements on DOM interface are restricted to attributes, child nodes, and basic fields, though all these must support namespaces.

Classes [hide private]
  _PickledAnonymousReference
A helper that encapsulates a reference to an anonymous type in a different namespace.
  AttributeDeclaration
An XMLSchema Attribute Declaration component.
  AttributeUse
An XMLSchema Attribute Use component.
  ElementDeclaration
An XMLSchema Element Declaration component.
  ComplexTypeDefinition
  AttributeGroupDefinition
An XMLSchema Attribute Group Definition component.
  ModelGroupDefinition
An XMLSchema Model Group Definition component.
  ModelGroup
An XMLSchema Model Group component.
  Particle
An XMLSchema Particle component.
  Wildcard
An XMLSchema Wildcard component.
  IdentityConstraintDefinition
An XMLSchema Identity Constraint Definition component.
  NotationDeclaration
An XMLSchema Notation Declaration component.
  Annotation
An XMLSchema Annotation component.
  SimpleTypeDefinition
An XMLSchema Simple Type Definition component.
  Schema
An XMLSchema Schema.
    Mixins
  _SchemaComponent_mixin
A mix-in that marks the class as representing a schema component.
  _ParticleTree_mixin
  _Singleton_mixin
This class is a mix-in which guarantees that only one instance of the class will be created.
  _Annotated_mixin
Mix-in that supports an optional single annotation that describes the component.
  _NamedComponent_mixin
Mix-in to hold the name and targetNamespace of a component.
  _ValueConstraint_mixin
Mix-in indicating that the component contains a simple-type value that may be constrained.
  _ScopedDeclaration_mixin
Mix-in class for named components that have a scope.
  _AttributeWildcard_mixin
Support for components that accept attribute wildcards.
    Ur Type Specializations
  _UrTypeDefinition
Subclass ensures there is only one ur-type.
  _SimpleUrTypeDefinition
Subclass ensures there is only one simple ur-type.
    Utilities
  _ImportElementInformationItem
Data associated with an import statement within a schema.
Functions [hide private]
 
_AddSimpleTypes(namespace)
Add to the schema the definitions of the built-in types of XMLSchema.
source code
Variables [hide private]
  _log = logging.getLogger(__name__)
  _PastAddBuiltInTypes = True
  __package__ = 'pyxb.xmlschema'
Function Details [hide private]

_AddSimpleTypes(namespace)

source code 

Add to the schema the definitions of the built-in types of XMLSchema. This should only be invoked by pyxb.namespace when the built-in namespaces are initialized.