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

Class ElementWithAttributes

Node --+    
       |    
 Element --+
           |
          ElementWithAttributes

Known Subclasses:
PropertyManager

Elements that allow DOM access to Zope properties of type 'string'.

Note: This sub-class should only be used by PropertyManagers
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.
  getAttributes(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
    Inherited from Element
  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
  getNodeValue(self)
The value of this node, depending on its type
  getOwnerDocument(self)
The Document object associated with this node.
  hasChildNodes(self)
Returns true if the node has any children, false if it doesn't.

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

Method Details

getAttribute(self, name)

Retrieves an attribute value by name.
Overrides:
OFS.ZDOM.Element.getAttribute

getAttributeNode(self, name)

Retrieves an Attr node by name or None if there is no such attribute.
Overrides:
OFS.ZDOM.Element.getAttributeNode

getAttributes(self)

Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
Overrides:
OFS.ZDOM.Node.getAttributes

Class Variable Details

__implemented__

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

__provides__

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

Generated by Epydoc 2.1 on Mon Jun 27 12:46:20 2005 http://epydoc.sf.net