| |
|
| java.lang.Object org.ozoneDB.xml.dom.html.HTMLElementListImpl
HTMLElementListImpl | final class HTMLElementListImpl implements NodeList(Code) | | Implements a list of HTML elements extracted based on their name attribute.
The constructor recieves the root element and name. It then obtains all the
elements contained within that element that match with their name
attribute. The list is then accessible through the
HTMLElementListImpl.item method.
The resulting list is a snapshot of the searched element at the time this
list was created. Updates to the document tree are not reflected in the list.
The list is implemented as a fast collection and access to elements in the
list is very rapid.
version: $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $ author: Assaf Arkin See Also: org.w3c.dom.NodeList See Also: HTMLElementImpl See Also: HTMLDocumentImpl |
Constructor Summary | |
| HTMLElementListImpl(Node element, String name) Constructor receieves an element and name attribute value and
extracts all the* sub elements based on that. |
HTMLElementListImpl | HTMLElementListImpl(Node element, String name)(Code) | | Constructor receieves an element and name attribute value and
extracts all the* sub elements based on that. After construction this object
is ready for element retrieval.
Parameters: element - The root element from which to extract all sub elements Parameters: name - The name attribute to match |
addElement | void addElement(Element newElem)(Code) | | Add a single element to the list of elements.
Parameters: newElem - The element to add |
addElements | void addElements(Node element, String name)(Code) | | Add all the elements contained in the root element and matching the
name attribute. Each element is added by calling
HTMLElementListImpl.addElement and the method is recursed on all sub-elements.
Parameters: element - The root element from which to extract all sub elements Parameters: name - The name attribute to match |
getLength | public int getLength()(Code) | | |
|
|
|