Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractElement
org.dom4j.tree.DefaultElement
org.dom4j.util.IndexedElement
public class IndexedElement
extends org.dom4j.tree.DefaultElement
IndexedElement
is an implementation of Element
which
maintains an index of the attributes and elements it contains to optimise
lookups via name.
Field Summary |
Fields inherited from class org.dom4j.tree.AbstractElement | |
EMPTY_ITERATOR , EMPTY_LIST , USE_STRINGVALUE_SEPARATOR , VERBOSE_TOSTRING |
Fields inherited from class org.dom4j.tree.AbstractBranch | |
DEFAULT_CONTENT_LIST_SIZE |
Fields inherited from class org.dom4j.tree.AbstractNode | |
NODE_TYPE_NAMES |
Fields inherited from interface org.dom4j.Node | |
ANY_NODE , ATTRIBUTE_NODE , CDATA_SECTION_NODE , COMMENT_NODE , DOCUMENT_NODE , DOCUMENT_TYPE_NODE , ELEMENT_NODE , ENTITY_REFERENCE_NODE , MAX_NODE_TYPE , NAMESPACE_NODE , PROCESSING_INSTRUCTION_NODE , TEXT_NODE , UNKNOWN_NODE |
Constructor Summary | |
| |
| |
|
Method Summary | |
protected void | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected Element |
|
protected Iterator |
|
protected List |
|
Attribute |
|
Attribute | |
protected Map | |
protected Map |
|
protected Map |
|
protected Map |
|
protected List |
|
Element |
|
Element | |
protected Map | |
List |
|
List | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected boolean |
|
Methods inherited from class org.dom4j.tree.DefaultElement | |
add , addNewNode , additionalNamespaces , additionalNamespaces , attribute , attribute , attribute , attribute , attributeCount , attributeIterator , attributeList , attributeList , attributes , clearContent , clone , contentList , declaredNamespaces , element , element , element , getDocument , getDocumentFactory , getNamespaceForPrefix , getNamespaceForURI , getParent , getQName , getStringValue , getText , indexOf , node , nodeCount , nodeIterator , processingInstruction , processingInstructions , processingInstructions , remove , removeNode , removeProcessingInstruction , setAttributeList , setAttributes , setContent , setDocument , setParent , setQName , supportsParent |
Methods inherited from class org.dom4j.tree.AbstractBranch | |
add , add , add , add , addElement , addElement , addElement , addElement , addNode , addNode , appendContent , childAdded , childRemoved , content , contentList , contentRemoved , createContentList , createContentList , createEmptyList , createResultList , createSingleResultList , elementByID , elementID , getContentAsStringValue , getContentAsText , getText , getTextTrim , hasContent , indexOf , invalidNodeTypeAddException , isReadOnly , node , nodeCount , nodeIterator , remove , remove , remove , remove , removeNode , setProcessingInstructions |
Methods inherited from class org.dom4j.tree.AbstractNode | |
asXPathResult , clone , createPattern , createXPath , createXPathFilter , createXPathResult , detach , getDocument , getDocumentFactory , getName , getNodeType , getNodeTypeName , getParent , getPath , getStringValue , getText , getUniquePath , hasContent , isReadOnly , matches , numberValueOf , selectNodes , selectNodes , selectNodes , selectObject , selectSingleNode , setDocument , setName , setParent , setText , supportsParent , valueOf , write |
protected void addNode(Node node)
- Overrides:
- addNode in interface org.dom4j.tree.AbstractElement
protected Iterator asElementIterator(Object object)
Deprecated. WILL BE REMOVED IN dom4j-1.6 !!
DOCUMENT ME!
- Parameters:
object
- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
protected List asElementList(Object object)
public Attribute attribute(String name)
- Overrides:
- attribute in interface org.dom4j.tree.DefaultElement
public Attribute attribute(QName qName)
- Overrides:
- attribute in interface org.dom4j.tree.DefaultElement
protected Map attributeIndex()
protected Map createAttributeIndex()
A Factory Method to create the index for attributes
- Returns:
- DOCUMENT ME!
protected Map createElementIndex()
A Factory Method to create the index for elements
- Returns:
- DOCUMENT ME!
protected Map createIndex()
Factory method to return a new map implementation for indices
- Returns:
- DOCUMENT ME!
protected List createList()
Factory method to return a list implementation for indices
- Returns:
- DOCUMENT ME!
public Element element(String name)
- Overrides:
- element in interface org.dom4j.tree.DefaultElement
public Element element(QName qName)
- Overrides:
- element in interface org.dom4j.tree.DefaultElement
protected Map elementIndex()
public List elements(String name)
- Overrides:
- elements in interface org.dom4j.tree.AbstractElement
public List elements(QName qName)
- Overrides:
- elements in interface org.dom4j.tree.AbstractElement
protected boolean removeNode(Node node)
- Overrides:
- removeNode in interface org.dom4j.tree.DefaultElement