Package pyxb :: Package namespace :: Class _NamespaceComponentAssociation_mixin
[hide private]
[frames] | no frames]

type _NamespaceComponentAssociation_mixin

source code

object --+    
         |    
   cscRoot --+
             |
            _NamespaceComponentAssociation_mixin
Known Subclasses:

Mix-in for managing components defined within this namespace.

The component set includes not only top-level named components (such as those accessible through category maps), but internal anonymous components, such as those involved in representing the content model of a complex type definition. We need to be able to get a list of these components, sorted in dependency order, so that generated bindings do not attempt to refer to a binding that has not yet been generated.

Instance Methods [hide private]
 
_reset(self)
CSC extension to reset fields of a Namespace.
source code
 
_associateComponent(self, component)
Record that the responsibility for the component belongs to this namespace.
source code
 
_replaceComponent_csc(self, existing_def, replacement_def)
Replace a component definition in the set of associated components.
source code
 
addSchema(self, schema) source code
 
lookupSchemaByLocation(self, schema_location) source code
 
schemas(self) source code
 
components(self)
Return a frozenset of all components, named or unnamed, belonging to this namespace.
source code
 
_releaseNamespaceContexts(self) source code

Inherited from cscRoot: __init__

Class Variables [hide private]
  __components = None
  __origins = None
  _NamespaceComponentAssociation_mixin__components = None
  _NamespaceComponentAssociation_mixin__origins = None
Method Details [hide private]

_reset(self)

source code 

CSC extension to reset fields of a Namespace.

This one handles data related to component association with a namespace.

_replaceComponent_csc(self, existing_def, replacement_def)

source code 

Replace a component definition in the set of associated components.

Raises:
  • KeyError - existing_def is not in the set of components.