Package lxml :: Module objectify :: Class BoolElement

[hide private]
[frames] | no frames]

# Class BoolElement

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

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

Instance Methods | [hide private]

__eq__(x, y) x==y |

__ge__(x, y) x>=y |

__gt__(x, y) x>y |

__le__(x, y) x<=y |

__lt__(x, y) x<y |

__ne__(x, y) x!=y |

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

__nonzero__(x) x != 0 |

__repr__(...) |

__str__(...) |

Inherited from `ObjectifiedDataElement` (private): `_setText`

Inherited from `ObjectifiedElement`: `__delattr__`, `__delitem__`, `__getattr__`, `__getattribute__`, `__getitem__`, `__iter__`, `__len__`, `__setattr__`, `__setitem__`, `addattr`, `countchildren`, `descendantpaths`, `find`, `findall`, `findtext`, `getchildren`, `iterfind`

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 `etree._Element` (private): `_init`

Inherited from `object`: `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`

Properties | [hide private]

| pyval
Inherited from `ObjectifiedElement`: `text` Inherited from `etree._Element`: `attrib`, `nsmap`, `prefix`, `sourceline`, `tag`, `tail` Inherited from `object`: `__class__`

Method Details | [hide private]

### __new__(T, S, ...)

Returns:

      a new object with type S, a subtype of T

Overrides: ObjectifiedDataElement.__new__

### __nonzero__(x)
(Boolean test operator)

x != 0

Overrides: etree._Element.__nonzero__

### __repr__(...)
(Representation operator)

Overrides: ObjectifiedDataElement.__repr__

### __str__(...)
(Informal representation operator)

Overrides: ObjectifiedDataElement.__str__