Save This Page
Home » dom4j-1.6.1 » org.dom4j.io » [javadoc | source]
org.dom4j.io
class: ElementStack [javadoc | source]
java.lang.Object
   org.dom4j.io.ElementStack

All Implemented Interfaces:
    ElementPath

Direct Known Subclasses:
    PruningElementStack

ElementStack is used internally inside the SAXContentHandler to maintain a stack of Element instances. It opens an integration possibility allowing derivations to prune the tree when a node is complete.

Field Summary
protected  Element[] stack    stack of Element objects 
protected  int lastElementIndex    index of the item at the top of the stack or -1 if the stack is empty 
Constructor:
 public ElementStack() 
 public ElementStack(int defaultCapacity) 
Method from org.dom4j.io.ElementStack Summary:
addHandler,   clear,   containsHandler,   getCurrent,   getDispatchHandler,   getElement,   getPath,   peekElement,   popElement,   pushElement,   reallocate,   removeHandler,   setDispatchHandler,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.io.ElementStack Detail:
 public  void addHandler(String path,
    ElementHandler elementHandler) 
 public  void clear() 
    Peeks at the top element on the stack without changing the contents of the stack.
 public boolean containsHandler(String path) 
    DOCUMENT ME!
 public Element getCurrent() 
 public DispatchHandler getDispatchHandler() 
 public Element getElement(int depth) 
 public String getPath() 
 public Element peekElement() 
    Peeks at the top element on the stack without changing the contents of the stack.
 public Element popElement() 
    Pops the element off the stack
 public  void pushElement(Element element) 
    Pushes a new element onto the stack
 protected  void reallocate(int size) 
    Reallocates the stack to the given size
 public  void removeHandler(String path) 
 public  void setDispatchHandler(DispatchHandler dispatchHandler) 
 public int size()