cmu.survey.editor.manipulators
Class VariableNameChecker.VariableIterator

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

public static class VariableNameChecker.VariableIterator
extends VariableNameChecker.QuestionIterator


Field Summary
 
Fields inherited from class cmu.survey.editor.manipulators.VariableNameChecker.QuestionIterator
nextQuestion
 
Fields inherited from class cmu.survey.editor.manipulators.VariableNameChecker.PageIterator
nextPage
 
Constructor Summary
VariableNameChecker.VariableIterator(Page page)
           
VariableNameChecker.VariableIterator(QuestionDataBitSet question)
           
VariableNameChecker.VariableIterator(Survey survey)
           
 
Method Summary
 VariableDataBitSet getLastVariable()
          Last works before calling hasNext() or after calling next().
 StringDataBit getLastVariableType()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 QuestionDataBitSet nextQuestion()
          Use this ONLY when it is a QuestionIterator, not when it is a VariableIterator!
 VariableDataBitSet nextVariable()
           
 
Methods inherited from class cmu.survey.editor.manipulators.VariableNameChecker.QuestionIterator
getLastQuestion, getLastQuestionIndexOnPage, nextPage
 
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
 

Constructor Detail

VariableNameChecker.VariableIterator

public VariableNameChecker.VariableIterator(QuestionDataBitSet question)

VariableNameChecker.VariableIterator

public VariableNameChecker.VariableIterator(Page page)

VariableNameChecker.VariableIterator

public VariableNameChecker.VariableIterator(Survey survey)
Method Detail

hasNext

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

getLastVariable

public VariableDataBitSet getLastVariable()
Last works before calling hasNext() or after calling next(). It will NOT work between calling hasNext() and next() -- after you call hasNext(), getLast... will return the new one!

Returns:

next

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

getLastVariableType

public StringDataBit getLastVariableType()

nextVariable

public VariableDataBitSet nextVariable()

nextQuestion

public QuestionDataBitSet nextQuestion()
Description copied from class: VariableNameChecker.QuestionIterator
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.

Overrides:
nextQuestion in class VariableNameChecker.QuestionIterator
Returns: