IndexedElement is an implementation of Elementwhich
maintains an index of the attributes and elements it contains to optimise
lookups via name.
| Modifier and Type | Field and Description |
|---|---|
| private Map | attributeIndex
Lazily constructed index for attributes Keys are of type QName and String Values are of type <A> |
| private Map | elementIndex
Lazily constructed index for elements Keys are of type QName and String Values are of type Element and List<Element> |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected Element | |
| protected Iterator | Returns: DOCUMENT ME!DOCUMENT ME! object)
Deprecated
WILL BE REMOVED IN dom4j-1.6 !!
DOCUMENT ME!
|
| protected List | |
| public Attribute | attribute(String
DOCUMENT ME! name)Overrides org. Implements org. |
| public Attribute | attribute(QName
is the fully qualified name qName)Overrides org. Implements org. |
| protected Map | |
| protected Map | |
| protected Map | |
| protected < DOCUMENT ME! T> Map | |
| protected < DOCUMENT ME! T extends Node> List | |
| public Element | element(String
DOCUMENT ME! name)Overrides org. Implements org. |
| public Element | element(QName
is the fully qualified name to search for qName)Overrides org. Implements org. |
| protected Map | |
| public List | elements(String
DOCUMENT ME! name)Overrides org. Implements org. |
| public List | elements(QName
is the fully qualified name to search for qName)Overrides org. Implements org. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected boolean |
| attributeIndex | back to summary |
|---|---|
| private Map<Object, Attribute> attributeIndex Lazily constructed index for attributes Keys are of type QName and String Values are of type <A> | |
| elementIndex | back to summary |
|---|---|
| private Map<Object, Object> elementIndex Lazily constructed index for elements Keys are of type QName and String Values are of type Element and List<Element> | |
| IndexedElement | back to summary |
|---|---|
| public IndexedElement(String name) | |
| IndexedElement | back to summary |
|---|---|
| public IndexedElement(QName qname) | |
| IndexedElement | back to summary |
|---|---|
| public IndexedElement(QName qname, int attributeCount) | |
| addNode | back to summary |
|---|---|
| protected void addNode(Node node) Overrides org. | |
| addToAttributeIndex | back to summary |
|---|---|
| protected void addToAttributeIndex(Attribute attribute) | |
| addToAttributeIndex | back to summary |
|---|---|
| protected void addToAttributeIndex(Object key, Attribute value) | |
| addToElementIndex | back to summary |
|---|---|
| protected void addToElementIndex(Element element) | |
| addToElementIndex | back to summary |
|---|---|
| protected void addToElementIndex(Object key, Element value) | |
| asElement | back to summary |
|---|---|
| protected Element asElement(Object object) | |
| asElementIterator | back to summary |
|---|---|
| protected Iterator Deprecated WILL BE REMOVED IN dom4j-1.6 !! DOCUMENT ME! | |
| asElementList | back to summary |
|---|---|
| protected List | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name) Overrides org. Implements org. Doc from org. Returns the attribute with the given name | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(QName qName) Overrides org. Implements org. Doc from org. DOCUMENT ME! | |
| attributeIndex | back to summary |
|---|---|
| protected Map | |
| createAttributeIndex | back to summary |
|---|---|
| protected Map A Factory Method to create the index for attributes | |
| createElementIndex | back to summary |
|---|---|
| protected Map A Factory Method to create the index for elements | |
| createIndex | back to summary |
|---|---|
| protected <T> Map Factory method to return a new map implementation for indices | |
| createList | back to summary |
|---|---|
| protected <T extends Node> List Factory method to return a list implementation for indices
| |
| element | back to summary |
|---|---|
| public Element element(String name) Overrides org. Implements org. Doc from org. Returns the first element for the given local name and any namespace. | |
| element | back to summary |
|---|---|
| public Element element(QName qName) Overrides org. Implements org. Doc from org. Returns the first element for the given fully qualified name. | |
| elementIndex | back to summary |
|---|---|
| protected Map | |
| elements | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Returns the elements contained in this element with the given local name and any namespace. If no elements are found then this method returns an empty list. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. | |
| elements | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Returns the elements contained in this element with the given fully qualified name. If no elements are found then this method returns an empty list. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. | |
| removeFromAttributeIndex | back to summary |
|---|---|
| protected void removeFromAttributeIndex(Attribute attribute) | |
| removeFromAttributeIndex | back to summary |
|---|---|
| protected void removeFromAttributeIndex(Object key, Attribute value) | |
| removeFromElementIndex | back to summary |
|---|---|
| protected void removeFromElementIndex(Element element) | |
| removeFromElementIndex | back to summary |
|---|---|
| protected void removeFromElementIndex(Object key, Element value) | |
| removeNode | back to summary |
|---|---|
| protected boolean removeNode(Node node) Overrides org. | |