org.eclipse.actf.model.locate
Class BaseNodeIterator

java.lang.Object
  extended by org.eclipse.actf.model.locate.BaseNodeIterator
All Implemented Interfaces:
org.apache.commons.jxpath.ri.model.NodeIterator
Direct Known Subclasses:
AccessibleNodeIterator, MozillaDomNodeIterator

public abstract class BaseNodeIterator
extends Object
implements org.apache.commons.jxpath.ri.model.NodeIterator


Field Summary
protected  Object child
           
protected  IModel model
           
protected  org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest
           
protected  org.apache.commons.jxpath.ri.model.NodePointer parent
           
protected  int position
           
protected  boolean reverse
           
 
Constructor Summary
BaseNodeIterator(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest, boolean reverse, org.apache.commons.jxpath.ri.model.NodePointer startWith, IModel model)
           
 
Method Summary
protected  Object firstChild()
           
 int getPosition()
           
protected  Object lastChild()
           
protected  boolean next()
           
protected  Object nextSibling(Object child)
           
protected  boolean previous()
           
protected  Object previousSibling(Object child)
           
 boolean setPosition(int position)
           
protected  boolean testChild()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jxpath.ri.model.NodeIterator
getNodePointer
 

Field Detail

parent

protected org.apache.commons.jxpath.ri.model.NodePointer parent

model

protected IModel model

nodeTest

protected org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest

child

protected Object child

reverse

protected boolean reverse

position

protected int position
Constructor Detail

BaseNodeIterator

public BaseNodeIterator(org.apache.commons.jxpath.ri.model.NodePointer parent,
                        org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
                        boolean reverse,
                        org.apache.commons.jxpath.ri.model.NodePointer startWith,
                        IModel model)
Method Detail

getPosition

public int getPosition()
Specified by:
getPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator

setPosition

public boolean setPosition(int position)
Specified by:
setPosition in interface org.apache.commons.jxpath.ri.model.NodeIterator

previous

protected boolean previous()
                    throws InvalidComponentException
Throws:
InvalidComponentException

next

protected boolean next()
                throws InvalidComponentException
Throws:
InvalidComponentException

testChild

protected boolean testChild()

nextSibling

protected Object nextSibling(Object child)
                      throws InvalidComponentException
Throws:
InvalidComponentException

previousSibling

protected Object previousSibling(Object child)
                          throws InvalidComponentException
Throws:
InvalidComponentException

firstChild

protected Object firstChild()

lastChild

protected Object lastChild()