| java.lang.Object org.ozoneDB.xml.dom.ElementListImpl
ElementListImpl | final class ElementListImpl implements NodeList,Externalizable(Code) | | Implements a list of elements extracted based on their tag name.
The constructor recieves the root element and tag name. It then obtains
all the elements contained within that element that match the tag name,
or all of them if the tag name is "*". The list is then accessible
through the
ElementListImpl.item method.
The returned list is a snapshot of the element's contents at the time
of calling. Subsequent updates to the element are not reflected in the
list. This might result in inaccuracies when working from multiple threads.
version: $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $ author: Assaf Arkin See Also: org.w3c.dom.NodeList See Also: ElementImpl |
serialVersionUID | final static long serialVersionUID(Code) | | |
ElementListImpl | public ElementListImpl()(Code) | | |
ElementListImpl | ElementListImpl(Node element, String tagName)(Code) | | Constructor receieves an element and tag name and extracts all the
matching sub elements. After construction this object is ready for
element retrieval.
Parameters: element - The root element from which to extract all sub elements Parameters: tagName - The tag name to match or "*" to match all tags |
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 tagName)(Code) | | Add all the elements contained in the root element and matching the
tag name. If the tag name is "*", all elements are added. Each element
is added by calling
ElementListImpl.addElement and the method is recursed on
all sub-elements.
Parameters: element - The root element from which to extract all sub elements Parameters: tagName - The tag name to match or "*" to match all tags |
getLength | public int getLength()(Code) | | |
|
|