cmu.survey.editor.data
Interface AuxillaryQuestionPart

All Known Implementing Classes:
AuxillaryQuestionPartSQLStub

public interface AuxillaryQuestionPart


Method Summary
 ChoicesDataBitSet getChoices()
           
 StringDataBit getFilterType()
           
 VariableDataBitSet getSecondVariable()
           
 StringDataBit getTable()
           
 StringDataBit getText()
          Optional, hasText must return true if this returns non-null.
 StringDataBit getType()
          Returns one of the static types to mention what it is -- static types should all be in QuestionsFromDatabaseConstants.
 java.lang.String getTypeFriendlyName()
           
 VariableDataBitSet getVariable()
           
 boolean hasChoices()
           
 boolean hasFilterType()
           
 boolean hasSecondVariable()
          The second variable.
 boolean hasTable()
           
 boolean hasText()
           
 boolean hasVariable()
          True if this type has a variable.
 

Method Detail

hasText

boolean hasText()

getText

StringDataBit getText()
Optional, hasText must return true if this returns non-null.

Returns:

hasVariable

boolean hasVariable()
True if this type has a variable. There are two ways this can have a variable (a) it saves an answer to the database, and (b) it pulls info from the database.

Returns:

getVariable

VariableDataBitSet getVariable()

hasSecondVariable

boolean hasSecondVariable()
The second variable. This should be changed to something a bit more consistent, like just having one 'getVariables()' instead of 'hasVariable()', getVariable(), and getSecondVariable(), in which it's easy to forget the second variable.

Returns:

getSecondVariable

VariableDataBitSet getSecondVariable()

getType

StringDataBit getType()
Returns one of the static types to mention what it is -- static types should all be in QuestionsFromDatabaseConstants.

Returns:

getTypeFriendlyName

java.lang.String getTypeFriendlyName()

hasChoices

boolean hasChoices()

getChoices

ChoicesDataBitSet getChoices()

hasFilterType

boolean hasFilterType()

getFilterType

StringDataBit getFilterType()

hasTable

boolean hasTable()

getTable

StringDataBit getTable()