cmu.survey.editor.data.table
Class VariableDataBitSetTableStub
java.lang.Object
cmu.survey.editor.data.table.VariableDataBitSetTableStub
- All Implemented Interfaces:
- DataBitSet, VariableDataBitSet
- Direct Known Subclasses:
- AuxillaryOptionSecondVariableDataBitSetTable, AuxillaryOptionVariableDataBitSetTable, QuestionVariableDataBitSetSQL
public abstract class VariableDataBitSetTableStub
- extends java.lang.Object
- implements VariableDataBitSet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableDataBitSetTableStub
public VariableDataBitSetTableStub(DataBitStorageTable storage)
getName
public abstract StringDataBit getName()
- Specified by:
getName
in interface VariableDataBitSet
getType
public abstract StringDataBit getType()
- Specified by:
getType
in interface VariableDataBitSet
isValid
public int isValid(StringDataBit answersTable)
- Description copied from interface:
VariableDataBitSet
- An error code for what type of error the variable has.
- Specified by:
isValid
in interface VariableDataBitSet
- Returns:
getErrorDescription
public java.lang.String getErrorDescription(StringDataBit answersTable)
- Specified by:
getErrorDescription
in interface VariableDataBitSet
- 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).
fix
public boolean fix(StringDataBit answersTable)
- Specified by:
fix
in interface VariableDataBitSet
hasBeenModified
public boolean hasBeenModified()
- Specified by:
hasBeenModified
in interface DataBitSet
- Returns:
- whether the question has been modified since load or if it is new. Basically, it returns whether this DataBitSet needs to be saved.
isNew
public boolean isNew()
setNew
public void setNew(boolean b)
isTypeNumeric
public boolean isTypeNumeric()
- Specified by:
isTypeNumeric
in interface VariableDataBitSet
isTypeKey
public boolean isTypeKey()
- Specified by:
isTypeKey
in interface VariableDataBitSet
getVectorOfDataBits
public abstract java.util.Vector<DataBit> getVectorOfDataBits()