Home | Trees | Indices | Help |
|
---|
|
object --+ | cscRoot --+ | _NamespaceCategory_mixin
Mix-in that aggregates those aspects of XMLNamespaces that hold references to categories of named objects.
Arbitrary groups of named objects, each requiring unique names within
themselves, can be saved. Unless configured otherwise, the Namespace
instance is extended with accessors that provide direct access to
individual category maps. The name of the method is the category name
with a suffix of "s"; e.g., if a category
"typeDefinition" exists, it can be accessed from the namespace
using the syntax ns.typeDefinitions()
.
Note that the returned value from the accessor is a live reference to the category map; changes made to the map are reflected in the namespace.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
__categoryMap = None hash(x) |
|||
_NamespaceCategory_mixin__categoryMap = None hash(x) |
|
|||
Inherited from |
|
CSC extension to reset fields of a Namespace. This one handles category-related data. |
Ensure there is a map for each of the given categories. Category configuration activates a namespace. Existing maps are not affected. |
Allow access to the named_object by looking up the local_name in the given category. Raises pyxb.NamespaceUniquenessError if an object with the same name already exists in the category. |
Replace the referenced object in the category. The new object will be added only if the old_object matches the current entry for local_name in the category. |
Replace a component definition where present in the category maps. Note:
This is a high-cost operation, as every item in every category map
must be examined to see whether its value field matches
|
Add the named objects from the given map into the set held by this namespace. It is an error to name something which is already present. |
Return This only checks whether the corresponding categories have been added, not whether there are any entries in those categories. It is useful for identifying namespaces that were incorporated through a declaration but never actually referenced. |
Add links from pyxb.namespace.archive._ObjectOrigin instances. For any resolvable item in this namespace from an origin managed by the module_record, ensure that item can be found via a lookup through that origin. This allows these items to be found when a single namespace comprises items translated from different schema at different times using archives to maintain consistency. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:55 2013 | http://epydoc.sourceforge.net |