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

Class _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)
x.__init__(...) initializes x; see help(type(x)) for signature
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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __wroteToArchive = None
hash(x)
  __loadedFromArchive = None
hash(x)
  __isActive = None
hash(x)
  __isImportAugmentable = False
  __moduleRecordMap = None
hash(x)
  _NamespaceArchivable_mixin__isActive = None
hash(x)
  _NamespaceArchivable_mixin__isImportAugmentable = False
  _NamespaceArchivable_mixin__loadedFromArchive = None
hash(x)
  _NamespaceArchivable_mixin__moduleRecordMap = None
hash(x)
  _NamespaceArchivable_mixin__wroteToArchive = None
hash(x)
Properties [hide private]

Inherited from object: __class__

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 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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.