org.dom4j.util
public class IndexedElement extends DefaultElement
IndexedElement
is an implementation of Elementwhich
maintains an index of the attributes and elements it contains to optimise
lookups via name.
Version: $Revision: 1.10 $
Constructor Summary | |
---|---|
IndexedElement(String name) | |
IndexedElement(QName qname) | |
IndexedElement(QName qname, int attributeCount) |
Method Summary | |
---|---|
protected void | addNode(Node node) |
protected void | addToAttributeIndex(Attribute attribute) |
protected void | addToAttributeIndex(Object key, Attribute value) |
protected void | addToElementIndex(Element element) |
protected void | addToElementIndex(Object key, Element value) |
protected Element | asElement(Object object) |
protected Iterator | asElementIterator(Object object)
DOCUMENT ME!
|
protected List | asElementList(Object object) |
Attribute | attribute(String name) |
Attribute | attribute(QName qName) |
protected Map | attributeIndex() |
protected Map | createAttributeIndex()
A Factory Method to create the index for attributes
|
protected Map | createElementIndex()
A Factory Method to create the index for elements
|
protected Map | createIndex()
Factory method to return a new map implementation for indices
|
protected List | createList()
Factory method to return a list implementation for indices
|
Element | element(String name) |
Element | element(QName qName) |
protected Map | elementIndex() |
List | elements(String name) |
List | elements(QName qName) |
protected void | removeFromAttributeIndex(Attribute attribute) |
protected void | removeFromAttributeIndex(Object key, Attribute value) |
protected void | removeFromElementIndex(Element element) |
protected void | removeFromElementIndex(Object key, Element value) |
protected boolean | removeNode(Node node) |
Deprecated: WILL BE REMOVED IN dom4j-1.6 !!
DOCUMENT ME!Parameters: object DOCUMENT ME!
Returns: DOCUMENT ME!
Returns: DOCUMENT ME!
Returns: DOCUMENT ME!
Returns: DOCUMENT ME!
Returns: DOCUMENT ME!