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

# type 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

Class Variables | [hide private]
| __args = `None`
| __kw = `None`

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.