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.
|
|
|
categories(self)
The list of individual categories held in this namespace. |
source code
|
|
|
_categoryMap(self)
Return the whole map from categories to named objects. |
source code
|
|
|
categoryMap(self,
category)
Map from local names to NamedObjectMap instances for the given
category. |
source code
|
|
|
__defineCategoryAccessors(self)
Define public methods on the Namespace which provide access to
individual NamedObjectMaps based on their category. |
source code
|
|
|
|
|
addCategoryObject(self,
category,
local_name,
named_object)
Allow access to the named_object by looking up the local_name in the
given category. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_NamespaceCategory_mixin__checkCategoriesEmpty(self) |
source code
|
|
|
_NamespaceCategory_mixin__defineCategoryAccessors(self)
Define public methods on the Namespace which provide access to
individual NamedObjectMaps based on their category. |
source code
|
|
Inherited from cscRoot :
__init__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|