lxml.objectify.BoolElement

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

# Class BoolElement

        object --+
                 |
    etree._Element --+
                     |
     etree.ElementBase --+
                         |
        ObjectifiedElement --+
                             |
        ObjectifiedDataElement --+
                                 |
                     NumberElement --+
                                     |
                            IntElement --+
                                         |
                                        BoolElement

Boolean type base on string values: 'true' or 'false'.

Note that this inherits from IntElement to mimic the behaviour of Python's bool type.

Instance Methods | [hide private]
__eq__(x, y) x==y |
__ge__(x, y) x>=y |
__gt__(x, y) x>y |
__hash__(x) hash(x) |
__le__(x, y) x<=y |
__lt__(x, y) x<y |
__ne__(x, y) x!=y |
a new object with type S, a subtype of T |
__new__(T, S, ...) |
__nonzero__(x) x != 0 |
__repr__(x) repr(x) |
__str__(x) str(x) |
_init(self) Called after object initialisation. Custom subclasses may override this if they recursively call _init() in the superclasses. |
Inherited from `NumberElement`: `__abs__`, `__add__`, `__and__`, `__complex__`, `__div__`, `__float__`, `__hex__`, `__int__`, `__invert__`, `__long__`, `__lshift__`, `__mod__`, `__mul__`, `__neg__`, `__oct__`, `__or__`, `__pos__`, `__pow__`, `__radd__`, `__rand__`, `__rdiv__`, `__rlshift__`, `__rmod__`, `__rmul__`, `__ror__`, `__rpow__`, `__rrshift__`, `__rshift__`, `__rsub__`, `__rtruediv__`, `__rxor__`, `__sub__`, `__truediv__`, `__xor__` Inherited from `NumberElement` (private): `_setValueParser` Inherited from `ObjectifiedDataElement` (private): `_setText` Inherited from `ObjectifiedElement`: `__delattr__`, `__delitem__`, `__getattr__`, `__getattribute__`, `__getitem__`, `__iter__`, `__len__`, `__reduce__`, `__setattr__`, `__setitem__`, `addattr`, `countchildren`, `descendantpaths`, `find`, `findall`, `findtext`, `getchildren`, `iterfind` Inherited from `etree.ElementBase`: `__init__` Inherited from `etree._Element`: `__contains__`, `__copy__`, `__deepcopy__`, `__reversed__`, `addnext`, `addprevious`, `append`, `clear`, `extend`, `get`, `getiterator`, `getnext`, `getparent`, `getprevious`, `getroottree`, `index`, `insert`, `items`, `iter`, `iterancestors`, `iterchildren`, `iterdescendants`, `itersiblings`, `itertext`, `keys`, `makeelement`, `remove`, `replace`, `set`, `values`, `xpath` Inherited from `object`: `__format__`, `__reduce_ex__`, `__sizeof__`, `__subclasshook__`

Properties | [hide private]
| pyval
Inherited from `ObjectifiedElement`: `text` Inherited from `etree._Element`: `attrib`, `base`, `nsmap`, `prefix`, `sourceline`, `tag`, `tail` Inherited from `object`: `__class__`

Method Details | [hide private]

### __eq__(x, y) (Equality operator) |
x==y Overrides: NumberElement.__eq__

### __ge__(x, y) (Greater-than-or-equals operator) |
x>=y Overrides: NumberElement.__ge__

### __gt__(x, y) (Greater-than operator) |
x>y Overrides: NumberElement.__gt__

### __hash__(x) (Hashing function) |
hash(x) Overrides: object.__hash__

### __le__(x, y) (Less-than-or-equals operator) |
x<=y Overrides: NumberElement.__le__

### __lt__(x, y) (Less-than operator) |
x<y Overrides: NumberElement.__lt__

### __ne__(x, y) |
x!=y Overrides: NumberElement.__ne__

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

### __nonzero__(x) (Boolean test operator) |
x != 0 Overrides: etree._Element.__nonzero__

### __repr__(x) (Representation operator) |
repr(x) Overrides: object.__repr__

### __str__(x) (Informal representation operator) |
str(x) Overrides: object.__str__

### _init(self) |
Called after object initialisation. Custom subclasses may override this if they recursively call _init() in the superclasses. Overrides: etree._Element._init (inherited documentation)