cmu.survey.editor.manipulators
Class VariableNameChecker.QuestionIterator

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

public static class VariableNameChecker.QuestionIterator
extends VariableNameChecker.PageIterator


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

Field Detail

nextQuestion

protected QuestionDataBitSet nextQuestion
Constructor Detail

VariableNameChecker.QuestionIterator

public VariableNameChecker.QuestionIterator(Page page)

VariableNameChecker.QuestionIterator

public VariableNameChecker.QuestionIterator(Survey survey)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class VariableNameChecker.PageIterator

getLastQuestion

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

Returns:

getLastQuestionIndexOnPage

public int getLastQuestionIndexOnPage()

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Overrides:
next in class VariableNameChecker.PageIterator

nextQuestion

public QuestionDataBitSet nextQuestion()
Use this ONLY when it is a QuestionIterator, not when it is a VariableIterator! We trust you not to use it when it's a VariableIterator.

Returns:

nextPage

public Page nextPage()
Description copied from class: VariableNameChecker.PageIterator
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.

Overrides:
nextPage in class VariableNameChecker.PageIterator
Returns: