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

Class Element

Node --+
       |
      Element

Known Subclasses:
ElementWithAttributes, Item

Element interface
Method Summary
  getAttribute(self, name)
Retrieves an attribute value by name.
  getAttributeNode(self, name)
Retrieves an Attr node by name or None if there is no such attribute.
  getChildNodes(self)
Returns a NodeList that contains all children of this node.
  getElementsByTagName(self, tagname)
Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree.
  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
  getNodeType(self)
A code representing the type of the node.
  getParentNode(self)
The parent of this node.
  getPreviousSibling(self)
The node immediately preceding this node.
  getTagName(self)
The name of the element
Inherited from Node: getAttributes, getNodeValue, getOwnerDocument, hasChildNodes

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

Method Details

getAttribute(self, name)

Retrieves an attribute value by name.

getAttributeNode(self, name)

Retrieves an Attr node by name or None if there is no such attribute.

getChildNodes(self)

Returns a NodeList that contains all children of this node. If there are no children, this is a empty NodeList
Overrides:
OFS.ZDOM.Node.getChildNodes

getElementsByTagName(self, tagname)

Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. Parameter: tagname The name of the tag to match (* = all tags). Return Value: A new NodeList object containing all the matched Elements.

getFirstChild(self)

The first child of this node. If there is no such node this returns None
Overrides:
OFS.ZDOM.Node.getFirstChild

getLastChild(self)

The last child of this node. If there is no such node this returns None.
Overrides:
OFS.ZDOM.Node.getLastChild

getNextSibling(self)

The node immediately preceding this node. If there is no such node, this returns None.
Overrides:
OFS.ZDOM.Node.getNextSibling

getNodeName(self)

The name of this node, depending on its type
Overrides:
OFS.ZDOM.Node.getNodeName

getNodeType(self)

A code representing the type of the node.

getParentNode(self)

The parent of this node. All nodes except Document DocumentFragment and Attr may have a parent
Overrides:
OFS.ZDOM.Node.getParentNode

getPreviousSibling(self)

The node immediately preceding this node. If there is no such node, this returns None.
Overrides:
OFS.ZDOM.Node.getPreviousSibling

getTagName(self)

The name of the element

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Access contents information',
  ('getTagName', 'getAttribute', 'getAttributeNode', 'getElementsByTag\
Name')),)                                                              

__implemented__

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

__provides__

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

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