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

# type _ModuleNaming_mixin

source code

    object --+
             |
            _ModuleNaming_mixin

Known Subclasses:
  - NamespaceGroupModule
  - , NamespaceModule

Instance Methods | [hide private]
generator(self) | source code
__init__(self, generator, *args, **kw) | 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

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`
| __anonCTDIndex = `None`
| __uniqueInModule = `None`
| __uniqueInClass = `None`
| __referencedFromClass = `None`
| _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`
| __referencedNamespaces = `None`
| __moduleUID = `None`
| __modulePath = `None`
| __bindingFile = `None`
| __bindingFilePath = `None`
| __RecordModuleMap = `{}`
| _ModuleNaming_mixin__ComponentBindingModuleMap = ``{``}``
| _ModuleNaming_mixin__RecordModuleMap = ``{``}``
| _ModuleNaming_mixin__anonCTDIndex = `None`
| _ModuleNaming_mixin__anonSTDIndex = `None`
| _ModuleNaming_mixin__bindingFile = `None`
| _ModuleNaming_mixin__bindingFilePath = `None`
| _ModuleNaming_mixin__generator = `None`
| _ModuleNaming_mixin__modulePath = `None`
| _ModuleNaming_mixin__moduleUID = `None`
| _ModuleNaming_mixin__referencedFromClass = `None`
| _ModuleNaming_mixin__referencedNamespaces = `None`
| _ModuleNaming_mixin__uniqueInClass = `None`
| _ModuleNaming_mixin__uniqueInModule = `None`

Method Details | [hide private]

### __init__(self, generator, *args, **kw) (Constructor) | source code
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'])