Package pyxb :: Package binding :: Module generate :: Class _ModuleNaming_mixin
[hide private]
[frames] | no frames]

Class _ModuleNaming_mixin

source code

object --+
         |
        _ModuleNaming_mixin
Known Subclasses:

Instance Methods [hide private]
 
generator(self) source code
 
__init__(self, generator, *args, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_importModule(self, module) source code
 
uniqueInClass(self, component) source code
 
bindingIO(self) source code
 
moduleUID(self) source code
 
_moduleUID_vx(self) source code
 
bindingTag(self)
Return a distinct string recorded in the first 4096 bytes of the binding file.
source code
 
_bindingTagPrefix_vx(self) source code
 
bindingPreface(self)
Return a block of binding text (comment or code) serving as a preface.
source code
 
_bindingPreface_vx(self) source code
 
moduleContents(self) source code
 
modulePath(self) source code
 
_setModulePath(self, path_data) source code
 
pathFromImport(self, module, name)
Python code reference to an object in an imported module
source code
 
bindingFile(self) source code
 
_initializeUniqueInModule(self, unique_in_module) source code
 
uniqueInModule(self) source code
 
_bindComponent(self, component) source code
 
nameInModule(self, component) source code
 
referenceSchemaComponent(self, component) source code
 
_referencedNamespaces(self) source code
 
defineNamespace(self, namespace, name, definition=None, **kw) source code
 
referenceNamespace(self, namespace) source code
 
importForDeclaration(self, decl)
Import the binding from which the declaration came.
source code
 
literal(self, *args, **kw) source code
 
addImportsFrom(self, module) source code
 
writeToModuleFile(self) source code

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

Class Methods [hide private]
 
BindComponentInModule(cls, component, module) source code
 
ComponentBindingModule(cls, component) source code
 
_RecordModule(cls, module) source code
 
_ForRecord(cls, module_record) source code
Class Variables [hide private]
  __anonSTDIndex = None
hash(x)
  __anonCTDIndex = None
hash(x)
  __uniqueInModule = None
hash(x)
  __uniqueInClass = None
hash(x)
  __referencedFromClass = None
hash(x)
  _UniqueInModule = set(['pyxb', 'sys'])
Identifiers that are reserved within a module.
  _ReferencedFromClass = set(['pyxb', 'sys'])
Identifiers defined in module that are accessed unqualified from class.
  __ComponentBindingModuleMap = {}
  __generator = None
hash(x)
  __referencedNamespaces = None
hash(x)
  __moduleUID = None
hash(x)
  __modulePath = None
hash(x)
  __bindingFile = None
hash(x)
  __bindingFilePath = None
hash(x)
  __RecordModuleMap = {}
  _ModuleNaming_mixin__ComponentBindingModuleMap = {}
  _ModuleNaming_mixin__RecordModuleMap = {}
  _ModuleNaming_mixin__anonCTDIndex = None
hash(x)
  _ModuleNaming_mixin__anonSTDIndex = None
hash(x)
  _ModuleNaming_mixin__bindingFile = None
hash(x)
  _ModuleNaming_mixin__bindingFilePath = None
hash(x)
  _ModuleNaming_mixin__generator = None
hash(x)
  _ModuleNaming_mixin__modulePath = None
hash(x)
  _ModuleNaming_mixin__moduleUID = None
hash(x)
  _ModuleNaming_mixin__referencedFromClass = None
hash(x)
  _ModuleNaming_mixin__referencedNamespaces = None
hash(x)
  _ModuleNaming_mixin__uniqueInClass = None
hash(x)
  _ModuleNaming_mixin__uniqueInModule = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

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

Overrides: object.__init__
(inherited documentation)

bindingTag(self)

source code 

Return a distinct string recorded in the first 4096 bytes of the binding file.

This is used to ensure uniqueness and avoid overwriting data belonging to a different binding. The return value comprises the class-specialized _bindingTagPrefix_vx with the moduleUID.

bindingPreface(self)

source code 

Return a block of binding text (comment or code) serving as a preface.

Normally this should describe the module contents.

importForDeclaration(self, decl)

source code 

Import the binding from which the declaration came.

Figure out where the declaration came from. If it's not part of this binding, make sure we import the binding associated with the schema from which it came. We need that, if not for something in the declaration itself, at least to be able to get the Namespace for the declaration's name. None of this is relevant if the declaration has no namespace.


Class Variable Details [hide private]

_UniqueInModule

Identifiers that are reserved within a module.

Subclasses extend this with the identifiers they add to the module. Module-level schema-derived identifiers (such as type definition and element names) are deconflicted from this set and from each other.

Value:
set(['pyxb', 'sys'])

_ReferencedFromClass

Identifiers defined in module that are accessed unqualified from class.

These include standard import module names and globals such as references to namespaces.

Value:
set(['pyxb', 'sys'])