org.apache.tuscany.sca.databinding.xml
Class XmlNodeIterator

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.xml.XmlNodeIterator
All Implemented Interfaces:
java.util.Iterator<XmlNode>

public class XmlNodeIterator
extends java.lang.Object
implements java.util.Iterator<XmlNode>


Nested Class Summary
static class XmlNodeIterator.FastStack<T>
          An implementation of the Stack API that is based on an ArrayList instead of a Vector, so it is not synchronized to protect against multi-threaded access.
 
Field Summary
static int END
           
protected  org.apache.tuscany.sca.databinding.xml.XmlNodeIterator.NamespaceContextImpl nsContext
           
protected  XmlNodeIterator.FastStack<org.apache.tuscany.sca.databinding.xml.XmlNodeIterator.ElementHolder> stack
           
static int START
           
protected  int state
           
 
Constructor Summary
XmlNodeIterator(XmlNode rootNode)
           
 
Method Summary
 javax.xml.namespace.NamespaceContext getNamespaceContext()
           
 int getState()
           
 boolean hasNext()
           
 XmlNode next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START

public static final int START
See Also:
Constant Field Values

END

public static final int END
See Also:
Constant Field Values

stack

protected XmlNodeIterator.FastStack<org.apache.tuscany.sca.databinding.xml.XmlNodeIterator.ElementHolder> stack

state

protected int state

nsContext

protected org.apache.tuscany.sca.databinding.xml.XmlNodeIterator.NamespaceContextImpl nsContext
Constructor Detail

XmlNodeIterator

public XmlNodeIterator(XmlNode rootNode)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<XmlNode>

next

public XmlNode next()
Specified by:
next in interface java.util.Iterator<XmlNode>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<XmlNode>

getState

public int getState()

getNamespaceContext

public javax.xml.namespace.NamespaceContext getNamespaceContext()