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.
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)