cmu.survey.editor.manipulators
Class VariableNameChecker.QuestionIterator
java.lang.Object
cmu.survey.editor.manipulators.VariableNameChecker.PageIterator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextQuestion
protected QuestionDataBitSet nextQuestion
VariableNameChecker.QuestionIterator
public VariableNameChecker.QuestionIterator(Page page)
VariableNameChecker.QuestionIterator
public VariableNameChecker.QuestionIterator(Survey survey)
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: