Package pyxb :: Package namespace :: Module archive :: Class _NamespaceArchivable_mixin
[hide private]
[frames] | no frames]

type _NamespaceArchivable_mixin

source code

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

Encapsulate the operations and data relevant to archiving namespaces.

This class mixes-in to pyxb.namespace.Namespace

Instance Methods [hide private]
 
_reset(self)
CSC extension to reset fields of a Namespace.
source code
 
_loadedFromArchive(self) source code
 
isActive(self, empty_inactive=False) source code
 
_activate(self) source code
 
__init__(self, *args, **kw) source code
 
_setLoadedFromArchive(self, archive) source code
 
_setWroteToArchive(self, archive) source code
 
_removeArchive(self, archive) source code
 
isLoadable(self)
Return True iff the component model for this namespace can be loaded from a namespace archive.
source code
 
isImportAugmentable(self)
Return True iff the component model for this namespace may be extended by import directives.
source code
 
setImportAugmentable(self, value=True) source code
 
loadableFrom(self)
Return the list of archives from which components for this namespace can be loaded.
source code
 
moduleRecords(self) source code
 
addModuleRecord(self, module_record) source code
 
lookupModuleRecordByUID(self, generation_uid, create_if_missing=False, *args, **kw) source code
 
_setState_csc(self, kw) source code
 
markNotLoadable(self)
Prevent loading this namespace from an archive.
source code
Class Variables [hide private]
  __wroteToArchive = None
  __loadedFromArchive = None
  __isActive = None
  __isImportAugmentable = False
  __moduleRecordMap = None
  _NamespaceArchivable_mixin__isActive = None
  _NamespaceArchivable_mixin__isImportAugmentable = False
  _NamespaceArchivable_mixin__loadedFromArchive = None
  _NamespaceArchivable_mixin__moduleRecordMap = None
  _NamespaceArchivable_mixin__wroteToArchive = None
Method Details [hide private]

_reset(self)

source code 

CSC extension to reset fields of a Namespace.

This one handles category-related data.

__init__(self, *args, **kw)
(Constructor)

source code 
Overrides: cscRoot.__init__

isImportAugmentable(self)

source code 

Return True iff the component model for this namespace may be extended by import directives.

This is the case if the namespace has been marked with setImportAugmentable, or if there is no archive or built-in that provides a component model for the namespace.

markNotLoadable(self)

source code 

Prevent loading this namespace from an archive.

This marks all archives in which the namespace appears, whether publically or privately, as not loadable.