cmu.survey.data
Class DatabaseConstants.AuxillaryOptions

java.lang.Object
  extended by cmu.survey.data.DatabaseConstants.AuxillaryOptions
Enclosing class:
DatabaseConstants

public static final class DatabaseConstants.AuxillaryOptions
extends java.lang.Object

See QuestionsAuxillaryOptionTypes.xls (in this folder) for a spreadsheet of most of these, with details about which columns from the database they should get pulled from.


Field Summary
static java.lang.String COLUMNS
           
static java.lang.String DATABASE_FIELD
           
static java.lang.String DEFAULT_VALUE
           
static java.lang.String HORIZONTAL
           
static java.lang.String NEW_COLUMN
           
static java.lang.String OTHER_AUXILLARY_FEATURES
           
static java.lang.String OTHER_TEXT_FIELD
           
static java.lang.String PLAIN_TEXT
           
static java.lang.String ROWS
           
 
Constructor Summary
DatabaseConstants.AuxillaryOptions()
           
 
Method Summary
static java.lang.String[][] getAllPartTypesAndFriendlyNames()
           
static java.lang.String[] getAllTypes()
           
static java.lang.String getQuestionPartFriendlyName(java.lang.String type)
           
static java.lang.String[] getQuestionPartTypes()
           
static boolean hasSecondVariable(java.lang.String type)
           
static boolean hasVariable(java.lang.String type)
           
static boolean isAQuestionPart(java.lang.String type)
          Returns whether this type is a "question part" -- see AuxillaryQuestionPart.
static boolean isAValidAuxillaryOptionType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VALUE

public static final java.lang.String DEFAULT_VALUE
See Also:
Constant Field Values

OTHER_AUXILLARY_FEATURES

public static final java.lang.String OTHER_AUXILLARY_FEATURES
See Also:
Constant Field Values

HORIZONTAL

public static final java.lang.String HORIZONTAL
See Also:
Constant Field Values

OTHER_TEXT_FIELD

public static final java.lang.String OTHER_TEXT_FIELD
See Also:
Constant Field Values

COLUMNS

public static final java.lang.String COLUMNS
See Also:
Constant Field Values

ROWS

public static final java.lang.String ROWS
See Also:
Constant Field Values

NEW_COLUMN

public static final java.lang.String NEW_COLUMN
See Also:
Constant Field Values

DATABASE_FIELD

public static final java.lang.String DATABASE_FIELD
See Also:
Constant Field Values

PLAIN_TEXT

public static final java.lang.String PLAIN_TEXT
See Also:
Constant Field Values
Constructor Detail

DatabaseConstants.AuxillaryOptions

public DatabaseConstants.AuxillaryOptions()
Method Detail

getAllTypes

public static java.lang.String[] getAllTypes()

getQuestionPartTypes

public static java.lang.String[] getQuestionPartTypes()

getAllPartTypesAndFriendlyNames

public static java.lang.String[][] getAllPartTypesAndFriendlyNames()

isAQuestionPart

public static boolean isAQuestionPart(java.lang.String type)
Returns whether this type is a "question part" -- see AuxillaryQuestionPart. These are visual parts of the question that are primarily used by Abstract questions.

Parameters:
type -
Returns:

getQuestionPartFriendlyName

public static java.lang.String getQuestionPartFriendlyName(java.lang.String type)

hasVariable

public static boolean hasVariable(java.lang.String type)

hasSecondVariable

public static boolean hasSecondVariable(java.lang.String type)

isAValidAuxillaryOptionType

public static boolean isAValidAuxillaryOptionType(java.lang.String type)