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

# Class StringElement

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

String data class.

Note that this class does not support the sequence protocol of strings: len(), iter(), str_attr[0], str_attr[0:1], etc. are not supported. Instead, use the .text attribute to get a 'real' string.

Instance Methods | [hide private]
__add__(x, y) x+y |
__complex__(...) |
__eq__(x, y) x==y |
__float__(x) float(x) |
__ge__(x, y) x>=y |
__gt__(x, y) x>y |
__hash__(x) hash(x) |
__int__(x) int(x) |
__le__(x, y) x<=y |
__long__(x) long(x) |
__lt__(x, y) x<y |
__mod__(x, y) x%y |
__mul__(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 |
__radd__(x, y) y+x |
__repr__(x) repr(x) |
__rmod__(x, y) y%x |
__rmul__(x, y) y*x |
strlen(...) |
Inherited from `ObjectifiedDataElement`: `__str__` Inherited from `ObjectifiedDataElement` (private): `_setText` Inherited from `ObjectifiedElement`: `__delattr__`, `__delitem__`, `__getattr__`, `__getattribute__`, `__getitem__`, `__iter__`, `__len__`, `__reduce__`, `__setattr__`, `__setitem__`, `addattr`, `countchildren`, `descendantpaths`, `getchildren` Inherited from `etree.ElementBase`: `__init__` Inherited from `etree._Element`: `__contains__`, `__copy__`, `__deepcopy__`, `__reversed__`, `addnext`, `addprevious`, `append`, `clear`, `cssselect`, `extend`, `find`, `findall`, `findtext`, `get`, `getiterator`, `getnext`, `getparent`, `getprevious`, `getroottree`, `index`, `insert`, `items`, `iter`, `iterancestors`, `iterchildren`, `iterdescendants`, `iterfind`, `itersiblings`, `itertext`, `keys`, `makeelement`, `remove`, `replace`, `set`, `values`, `xpath` Inherited from `etree._Element` (private): `_init` 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]

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

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