|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.editor.data.table.QuestionDataBitSetTable
public abstract class QuestionDataBitSetTable
Field Summary | |
---|---|
protected StringDataBit |
backgroundColor
|
protected IntegerDataBit |
cacheRandomizeInnerOrder
|
static boolean |
debug
|
protected StringDataBit |
endQuestion
|
protected StringDataBit |
helpText
|
protected IntegerDataBit |
numberOfChoices
|
protected IntegerDataBit |
pageIDInsideThis
Not the page this is on. |
protected Page |
pageInsideThis
|
protected IntegerDataBit |
questionID
|
protected IntegerDataBit |
questionIDForChoicesTable
|
protected IntegerDataBit |
randomizeInnerOrder
|
protected IntegerDataBit |
singleQuestionFlag
|
protected StringDataBit |
sourceOfChoices
|
protected StringDataBit |
startQuestion
|
protected StringDataBit |
type
|
Constructor Summary | |
---|---|
QuestionDataBitSetTable(DataBitStorageTable objectStorage,
IntegerDataBit questionID,
StringDataBit startQuestion,
StringDataBit endQuestion,
StringDataBit helpText,
StringDataBit type,
StringDataBit backgroundColor,
IntegerDataBit questionIDForChoicesTable,
StringDataBit sourceOfChoices,
IntegerDataBit numberOfChoices,
IntegerDataBit pageIDInsideThis,
IntegerDataBit singleQuestionFlag,
IntegerDataBit randomizeInnerOrder,
IntegerDataBit cacheRandomizeInnerOrder)
|
Method Summary | |
---|---|
protected abstract AuxillaryQuestionPartSetTable |
getAuxillaryQuestionPartSet()
|
StringDataBit |
getBackgroundColor()
|
IntegerDataBit |
getCacheRandomizeInnerOrder()
|
IntegerDataBit |
getChoicesNumber()
|
StringDataBit |
getChoicesType()
|
StringDataBit |
getEndQuestion()
HTML text that shows at the end of the question. |
StringDataBit |
getHelpText()
HTML text that shows when you click a little "?". |
java.lang.Integer |
getID()
|
IntegerDataBit |
getPageIDInsideThis()
Only required when the type is PAGE. |
Page |
getPageInsideThis()
|
Page |
getPageInsideThisIfLoaded()
Only for things saving -- don't load the page if it's not loaded. |
IntegerDataBit |
getQuestionID()
|
IntegerDataBit |
getRandomizeInnerOrder()
|
boolean |
getSavesToDatabase()
|
IntegerDataBit |
getSingleQuestionFlag()
This means one of two things. |
StringDataBit |
getStartQuestion()
HTML text that shows at the beginning of the question. |
StringDataBit |
getType()
|
protected abstract VariableDataBitSetTableStub |
getVariableStubIfExists()
This will get |
java.util.Vector<DataBit> |
getVectorOfDataBits()
|
abstract boolean |
hasAuxOptionsBeenModified()
|
boolean |
hasBeenModified()
|
boolean |
hasBeenModifiedInDatabaseTable()
There's a separate method that does not check whether orderIndex has been modified because orderIndex actually gets saved to the Page table -- all the things mentioned here get saved to the questions table. |
boolean |
hasBeenModifiedWithoutChoicesOrAuxOptions()
|
boolean |
isNew()
|
protected boolean |
modifiedBit(DataBit bit)
|
boolean |
save(PageSQL p,
boolean createVariablesFresh)
|
protected abstract boolean |
saveAuxOptions()
|
protected abstract Pair<java.lang.Boolean,java.lang.Boolean> |
saveChoicesAndAuxOptions(PageSQL p)
|
protected boolean |
savePageIfNecessary()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cmu.survey.editor.data.QuestionDataBitSet |
---|
getAuxillaryParts, getChoices, getErrorDescription, getVariable, hasError |
Field Detail |
---|
public static final boolean debug
protected IntegerDataBit questionID
protected StringDataBit startQuestion
protected StringDataBit endQuestion
protected StringDataBit helpText
protected StringDataBit type
protected StringDataBit backgroundColor
protected IntegerDataBit questionIDForChoicesTable
protected IntegerDataBit pageIDInsideThis
protected Page pageInsideThis
protected StringDataBit sourceOfChoices
protected IntegerDataBit numberOfChoices
protected IntegerDataBit singleQuestionFlag
protected IntegerDataBit randomizeInnerOrder
protected IntegerDataBit cacheRandomizeInnerOrder
Constructor Detail |
---|
public QuestionDataBitSetTable(DataBitStorageTable objectStorage, IntegerDataBit questionID, StringDataBit startQuestion, StringDataBit endQuestion, StringDataBit helpText, StringDataBit type, StringDataBit backgroundColor, IntegerDataBit questionIDForChoicesTable, StringDataBit sourceOfChoices, IntegerDataBit numberOfChoices, IntegerDataBit pageIDInsideThis, IntegerDataBit singleQuestionFlag, IntegerDataBit randomizeInnerOrder, IntegerDataBit cacheRandomizeInnerOrder)
Method Detail |
---|
protected boolean modifiedBit(DataBit bit)
public boolean hasBeenModified()
hasBeenModified
in interface DataBitSet
public boolean hasBeenModifiedWithoutChoicesOrAuxOptions()
public boolean isNew()
isNew
in interface QuestionDataBitSet
public StringDataBit getChoicesType()
public IntegerDataBit getChoicesNumber()
public IntegerDataBit getQuestionID()
public StringDataBit getEndQuestion()
QuestionDataBitSet
getEndQuestion
in interface QuestionDataBitSet
public StringDataBit getStartQuestion()
QuestionDataBitSet
getStartQuestion
in interface QuestionDataBitSet
public StringDataBit getHelpText()
QuestionDataBitSet
getHelpText
in interface QuestionDataBitSet
public StringDataBit getType()
getType
in interface QuestionDataBitSet
public IntegerDataBit getPageIDInsideThis()
QuestionDataBitSet
getPageIDInsideThis
in interface QuestionDataBitSet
public Page getPageInsideThis()
getPageInsideThis
in interface QuestionDataBitSet
public Page getPageInsideThisIfLoaded()
public StringDataBit getBackgroundColor()
getBackgroundColor
in interface QuestionDataBitSet
public abstract boolean hasAuxOptionsBeenModified()
public boolean getSavesToDatabase()
getSavesToDatabase
in interface QuestionDataBitSet
protected abstract VariableDataBitSetTableStub getVariableStubIfExists()
v
- public java.util.Vector<DataBit> getVectorOfDataBits()
public java.lang.Integer getID()
getID
in interface HasID
protected abstract AuxillaryQuestionPartSetTable getAuxillaryQuestionPartSet()
protected abstract Pair<java.lang.Boolean,java.lang.Boolean> saveChoicesAndAuxOptions(PageSQL p)
protected abstract boolean saveAuxOptions()
public boolean save(PageSQL p, boolean createVariablesFresh)
protected boolean savePageIfNecessary()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasBeenModifiedInDatabaseTable()
public IntegerDataBit getSingleQuestionFlag()
QuestionDataBitSet
getSingleQuestionFlag
in interface QuestionDataBitSet
public IntegerDataBit getRandomizeInnerOrder()
getRandomizeInnerOrder
in interface QuestionDataBitSet
public IntegerDataBit getCacheRandomizeInnerOrder()
getCacheRandomizeInnerOrder
in interface QuestionDataBitSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |