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

Type ObjectifiedDataElement

object --+            
         |            
  _Element --+        
             |        
   ElementBase --+    
                 |    
ObjectifiedElement --+
                     |
                    ObjectifiedDataElement

Known Subclasses:
BoolElement, NoneElement, NumberElement, StringElement

This is the base class for all data type Elements. Subclasses should override the 'pyval' property and possibly the __str__ method.
Method Summary
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __repr__(x)
x.__repr__() <==> repr(x)
  __str__(x)
x.__str__() <==> str(x)
    Inherited from ObjectifiedElement
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __delitem__(x, y)
x.__delitem__(y) <==> del x[y]
  __delslice__(x, i, j)
Use of negative indices is not supported.
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getitem__(x, y)
x.__getitem__(y) <==> x[y]
  __getslice__(x, i, j)
Use of negative indices is not supported.
  __iter__(x)
x.__iter__() <==> iter(x)
  __len__(x)
x.__len__() <==> len(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setitem__(x, i, y)
x.__setitem__(i, y) <==> x[i]=y
  __setslice__(x, i, j, y)
Use of negative indices is not supported.
  addattr(...)
Add a child value to the element.
  countchildren(...)
Return the number of children of this element, regardless of their name.
  descendantpaths(...)
Returns a list of object path expressions for all descendants.
  find(...)
  findall(...)
  findtext(...)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle

Class Variable Summary
getset_descriptor pyval = <attribute 'pyval' of 'lxml.objectify.Objectifie...
    Inherited from ObjectifiedElement
getset_descriptor text = <attribute 'text' of 'lxml.objectify.ObjectifiedE...

Method Details

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
lxml.objectify.ObjectifiedElement.__new__

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)
Returns:
repr(x)
Overrides:
lxml.etree._Element.__repr__

__str__(x)
(Informal representation operator)

x.__str__() <==> str(x)
Returns:
str(x)
Overrides:
lxml.objectify.ObjectifiedElement.__str__

Class Variable Details

pyval

Type:
getset_descriptor
Value:
<attribute 'pyval' of 'lxml.objectify.ObjectifiedDataElement' objects> 

Generated by Epydoc 2.1 on Sat Aug 18 12:44:27 2007 http://epydoc.sf.net