org.dom4j.util

Class IndexedElement

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 $

Author: James Strachan

Constructor Summary
IndexedElement(String name)
IndexedElement(QName qname)
IndexedElement(QName qname, int attributeCount)
Method Summary
protected voidaddNode(Node node)
protected voidaddToAttributeIndex(Attribute attribute)
protected voidaddToAttributeIndex(Object key, Attribute value)
protected voidaddToElementIndex(Element element)
protected voidaddToElementIndex(Object key, Element value)
protected ElementasElement(Object object)
protected IteratorasElementIterator(Object object)
DOCUMENT ME!
protected ListasElementList(Object object)
Attributeattribute(String name)
Attributeattribute(QName qName)
protected MapattributeIndex()
protected MapcreateAttributeIndex()
A Factory Method to create the index for attributes
protected MapcreateElementIndex()
A Factory Method to create the index for elements
protected MapcreateIndex()
Factory method to return a new map implementation for indices
protected ListcreateList()
Factory method to return a list implementation for indices
Elementelement(String name)
Elementelement(QName qName)
protected MapelementIndex()
Listelements(String name)
Listelements(QName qName)
protected voidremoveFromAttributeIndex(Attribute attribute)
protected voidremoveFromAttributeIndex(Object key, Attribute value)
protected voidremoveFromElementIndex(Element element)
protected voidremoveFromElementIndex(Object key, Element value)
protected booleanremoveNode(Node node)

Constructor Detail

IndexedElement

public IndexedElement(String name)

IndexedElement

public IndexedElement(QName qname)

IndexedElement

public IndexedElement(QName qname, int attributeCount)

Method Detail

addNode

protected void addNode(Node node)

addToAttributeIndex

protected void addToAttributeIndex(Attribute attribute)

addToAttributeIndex

protected void addToAttributeIndex(Object key, Attribute value)

addToElementIndex

protected void addToElementIndex(Element element)

addToElementIndex

protected void addToElementIndex(Object key, Element value)

asElement

protected Element asElement(Object object)

asElementIterator

protected Iterator asElementIterator(Object object)

Deprecated: WILL BE REMOVED IN dom4j-1.6 !!

DOCUMENT ME!

Parameters: object DOCUMENT ME!

Returns: DOCUMENT ME!

asElementList

protected List asElementList(Object object)

attribute

public Attribute attribute(String name)

attribute

public Attribute attribute(QName qName)

attributeIndex

protected Map attributeIndex()

createAttributeIndex

protected Map createAttributeIndex()
A Factory Method to create the index for attributes

Returns: DOCUMENT ME!

createElementIndex

protected Map createElementIndex()
A Factory Method to create the index for elements

Returns: DOCUMENT ME!

createIndex

protected Map createIndex()
Factory method to return a new map implementation for indices

Returns: DOCUMENT ME!

createList

protected List createList()
Factory method to return a list implementation for indices

Returns: DOCUMENT ME!

element

public Element element(String name)

element

public Element element(QName qName)

elementIndex

protected Map elementIndex()

elements

public List elements(String name)

elements

public List elements(QName qName)

removeFromAttributeIndex

protected void removeFromAttributeIndex(Attribute attribute)

removeFromAttributeIndex

protected void removeFromAttributeIndex(Object key, Attribute value)

removeFromElementIndex

protected void removeFromElementIndex(Element element)

removeFromElementIndex

protected void removeFromElementIndex(Object key, Element value)

removeNode

protected boolean removeNode(Node node)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge