cmu.survey.editor.manipulators
Class VariableNameChecker.PageIterator

java.lang.Object
  extended by cmu.survey.editor.manipulators.VariableNameChecker.PageIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
VariableNameChecker.QuestionIterator
Enclosing class:
VariableNameChecker

public static class VariableNameChecker.PageIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
protected  Page nextPage
           
 
Constructor Summary
VariableNameChecker.PageIterator(Survey survey)
           
 
Method Summary
 Page getLastPage()
          Last works before calling hasNext() or after calling next().
 boolean hasNext()
           
 java.lang.Object next()
           
 Page nextPage()
          Use this ONLY when it is a PageIterator, not when it is a QuestionIterator/VariableIterator!
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextPage

protected Page nextPage
Constructor Detail

VariableNameChecker.PageIterator

public VariableNameChecker.PageIterator(Survey survey)
Method Detail

hasNext

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

getLastPage

public Page getLastPage()
Last works before calling hasNext() or after calling next(). It will NOT work between calling hasNext() and next()!

Returns:

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

nextPage

public Page nextPage()
Use this ONLY when it is a PageIterator, not when it is a QuestionIterator/VariableIterator! We trust you not to use it when it's a QuestionIterator/VariableIterator.

Returns:

remove

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