Package OFS :: Module ZDOM :: Class Node
[show private | hide private]
[frames | no frames]

Class Node

Known Subclasses:
Element

Node Interface
Method Summary
  getAttributes(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
  getChildNodes(self)
Returns a NodeList that contains all children of this node.
  getFirstChild(self)
The first child of this node.
  getLastChild(self)
The last child of this node.
  getNextSibling(self)
The node immediately preceding this node.
  getNodeName(self)
The name of this node, depending on its type
  getNodeValue(self)
The value of this node, depending on its type
  getOwnerDocument(self)
The Document object associated with this node.
  getParentNode(self)
The parent of this node.
  getPreviousSibling(self)
The node immediately preceding this node.
  hasChildNodes(self)
Returns true if the node has any children, false if it doesn't.

Class Variable Summary
tuple __ac_permissions__ = (('Access contents information', ('...
Implements __implemented__ = <implementedBy OFS.ZDOM.Node>
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

getAttributes(self)

Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.

getChildNodes(self)

Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList

getFirstChild(self)

The first child of this node. If there is no such node this returns None.

getLastChild(self)

The last child of this node. If there is no such node this returns None.

getNextSibling(self)

The node immediately preceding this node. If there is no such node, this returns None.

getNodeName(self)

The name of this node, depending on its type

getNodeValue(self)

The value of this node, depending on its type

getOwnerDocument(self)

The Document object associated with this node. When this is a document this is None

getParentNode(self)

The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent

getPreviousSibling(self)

The node immediately preceding this node. If there is no such node, this returns None.

hasChildNodes(self)

Returns true if the node has any children, false if it doesn't.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Access contents information',
  ('getNodeName',
   'getNodeValue',
   'getParentNode',
   'getChildNodes',
   'getFirstChild',
   'getLastChild',
   'getPreviousSibling',
...                                                                    

__implemented__

Type:
Implements
Value:
<implementedBy OFS.ZDOM.Node>                                          

__providedBy__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x1569ab0>        

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x1569ab0>        

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net