Package lxml :: Module objectify :: Class ObjectifyElementClassLookup |
[hide private]
[frames] | no frames]

# Class ObjectifyElementClassLookup

                  object --+
                           |
    etree.ElementClassLookup --+
                               |
                              ObjectifyElementClassLookup

ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None) Element class lookup method that uses the objectify classes.

Instance Methods | [hide private]
__init__(self, tree_class=None, empty_data_class=None) Lookup mechanism for objectify. |
a new object with type S, a subtype of T |
__new__(T, S, ...) |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, tree_class=None, empty_data_class=None) (Constructor) |
Lookup mechanism for objectify. The default Element classes can be replaced by passing subclasses of ObjectifiedElement and ObjectifiedDataElement as keyword arguments. 'tree_class' defines inner tree classes (defaults to ObjectifiedElement), 'empty_data_class' defines the default class for empty data elements (defauls to StringElement). Overrides: object.__init__

### __new__(T, S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__