Package pyxb :: Class BIND
[hide private]
[frames] | no frames]

Class BIND

source code

object --+
         |
        BIND

Bundle data for automated binding generation.

Instances of this class capture positional and keyword arguments that are used to create binding instances based on context. For example, if w is an instance of a complex type whose option element is declared to be an anonymous class with simple content of type integer and an attribute of units, a correct assignment to that element could be achieved with:

 w.option = BIND(54, units="m")
Instance Methods [hide private]
 
__init__(self, *args, **kw)
Cache parameters for subsequent binding creation.
source code
 
createInstance(self, factory, **kw)
Invoke the given factory method.
source code

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

Class Variables [hide private]
  __args = None
hash(x)
  __kw = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Cache parameters for subsequent binding creation. Invoke just as you would the factory for a binding class.

Overrides: object.__init__

createInstance(self, factory, **kw)

source code 

Invoke the given factory method.

Position arguments to the factory are those cached in this instance. Keyword arguments are the ones on the command line, updated from the ones in this instance.