cmu.survey.editor.data
Interface VariableDataBitSet

All Superinterfaces:
DataBitSet
All Known Implementing Classes:
AuxillaryOptionSecondVariableDataBitSetTable, AuxillaryOptionVariableDataBitSetTable, QuestionVariableDataBitSetSQL, VariableDataBitSetTableStub

public interface VariableDataBitSet
extends DataBitSet

A variable that can be saved to the database.


Method Summary
 boolean fix(StringDataBit answersTable)
           
 StringDataBit getDefaultValue()
           
 java.lang.String getErrorDescription(StringDataBit answersTable)
           
 StringDataBit getName()
           
 StringDataBit getType()
           
 boolean isTypeKey()
           
 boolean isTypeNumeric()
           
 int isValid(StringDataBit answersTable)
          An error code for what type of error the variable has.
 
Methods inherited from interface cmu.survey.editor.data.DataBitSet
hasBeenModified
 

Method Detail

getName

StringDataBit getName()

getType

StringDataBit getType()

getDefaultValue

StringDataBit getDefaultValue()

isTypeNumeric

boolean isTypeNumeric()

isTypeKey

boolean isTypeKey()

getErrorDescription

java.lang.String getErrorDescription(StringDataBit answersTable)
Returns:
an English description of the error that the variable has, fine-tuned for the Survey Editor GUI(this is admittedly not in line with the GUI-independent implementation of this data stuff, and at some point it should be refactored to a better location).

isValid

int isValid(StringDataBit answersTable)
An error code for what type of error the variable has.

Returns:

fix

boolean fix(StringDataBit answersTable)