Save This Page
Home » dom4j-1.6.1 » org.dom4j.util » [javadoc | source]
org.dom4j.util
public class: IndexedElement [javadoc | source]
java.lang.Object
   org.dom4j.tree.AbstractNode
      org.dom4j.tree.AbstractBranch
         org.dom4j.tree.AbstractElement
            org.dom4j.tree.DefaultElement
               org.dom4j.util.IndexedElement

All Implemented Interfaces:
    Element, Branch, Cloneable, Node, Serializable

IndexedElement is an implementation of Element which maintains an index of the attributes and elements it contains to optimise lookups via name.

Fields inherited from org.dom4j.tree.AbstractElement:
EMPTY_LIST,  EMPTY_ITERATOR,  VERBOSE_TOSTRING,  USE_STRINGVALUE_SEPARATOR
Fields inherited from org.dom4j.tree.AbstractBranch:
DEFAULT_CONTENT_LIST_SIZE
Fields inherited from org.dom4j.tree.AbstractNode:
NODE_TYPE_NAMES
Constructor:
 public IndexedElement(String name) 
 public IndexedElement(QName qname) 
 public IndexedElement(QName qname,
    int attributeCount) 
Method from org.dom4j.util.IndexedElement Summary:
addNode,   addToAttributeIndex,   addToAttributeIndex,   addToElementIndex,   addToElementIndex,   asElement,   asElementIterator,   asElementList,   attribute,   attribute,   attributeIndex,   createAttributeIndex,   createElementIndex,   createIndex,   createList,   element,   element,   elementIndex,   elements,   elements,   removeFromAttributeIndex,   removeFromAttributeIndex,   removeFromElementIndex,   removeFromElementIndex,   removeNode
Methods from 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 from org.dom4j.tree.AbstractElement:
accept,   add,   add,   add,   add,   add,   add,   add,   add,   add,   addAttribute,   addAttribute,   addCDATA,   addComment,   addElement,   addEntity,   addNamespace,   addNewNode,   addNewNode,   addNode,   addNode,   addProcessingInstruction,   addProcessingInstruction,   addText,   additionalNamespaces,   additionalNamespaces,   appendAttributes,   asXML,   attribute,   attribute,   attribute,   attribute,   attributeCount,   attributeIterator,   attributeList,   attributeList,   attributeValue,   attributeValue,   attributeValue,   attributeValue,   attributes,   childAdded,   childRemoved,   createAttributeList,   createAttributeList,   createCopy,   createCopy,   createCopy,   createElement,   createElement,   createSingleIterator,   declaredNamespaces,   element,   element,   element,   elementIterator,   elementIterator,   elementIterator,   elementIterator,   elementText,   elementText,   elementTextTrim,   elementTextTrim,   elements,   elements,   elements,   elements,   ensureAttributesCapacity,   getData,   getDocumentFactory,   getName,   getNamespace,   getNamespaceForPrefix,   getNamespaceForURI,   getNamespacePrefix,   getNamespaceURI,   getNamespacesForURI,   getNodeType,   getPath,   getQName,   getQualifiedName,   getStringValue,   getUniquePath,   getXPathNameStep,   getXPathResult,   hasMixedContent,   indexOf,   isRootElement,   isTextOnly,   node,   nodeCount,   nodeIterator,   normalize,   processingInstruction,   processingInstructions,   processingInstructions,   remove,   remove,   remove,   remove,   remove,   remove,   remove,   remove,   remove,   removeNode,   removeProcessingInstruction,   setAttributeValue,   setAttributeValue,   setAttributes,   setData,   setName,   setNamespace,   setText,   toString,   write
Methods from 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 from 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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.util.IndexedElement Detail:
 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) 
Deprecated! WILL - BE REMOVED IN dom4j-1.6 !!

    DOCUMENT ME!
 protected List asElementList(Object object) 
 public Attribute attribute(String name) 
 public 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
 public Element element(String name) 
 public Element element(QName qName) 
 protected Map elementIndex() 
 public List elements(String name) 
 public 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)