cmu.survey.data
Class DatabaseConstants.Variables

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

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


Field Summary
static java.lang.String[] ALL_VARIABLE_TYPES
          The types of variables/answers:
static boolean[] ALL_VARIABLE_TYPES_IS_KEY
           
static boolean[] ALL_VARIABLE_TYPES_IS_NUMERIC
           
static boolean[] ALL_VARIABLE_TYPES_IS_STRING
           
static java.lang.String NUMBER
           
static java.lang.String NUMBER_KEY
           
static java.lang.String STRING
           
static java.lang.String STRING_KEY
           
static java.lang.String[] VARIABLE_TYPES_WITHOUT_KEYS
           
 
Constructor Summary
DatabaseConstants.Variables()
           
 
Method Summary
static java.lang.Class getVariableClass(java.lang.String type)
           
static java.lang.String[] getVariableTypes()
           
static java.lang.String[] getVariableTypesForQuestion(java.lang.String questionType)
          Do not modify the array that is returned!
static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType)
           
static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType, java.lang.String choicesType)
           
static java.lang.String[] getVariableTypesWithoutKeys()
           
static boolean isVariableKey(java.lang.String type)
           
static boolean isVariableNumeric(java.lang.String type)
           
static boolean isVariableString(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMBER

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

NUMBER_KEY

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

STRING

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

STRING_KEY

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

VARIABLE_TYPES_WITHOUT_KEYS

public static final java.lang.String[] VARIABLE_TYPES_WITHOUT_KEYS

ALL_VARIABLE_TYPES

public static final java.lang.String[] ALL_VARIABLE_TYPES
The types of variables/answers:


ALL_VARIABLE_TYPES_IS_NUMERIC

public static final boolean[] ALL_VARIABLE_TYPES_IS_NUMERIC

ALL_VARIABLE_TYPES_IS_STRING

public static final boolean[] ALL_VARIABLE_TYPES_IS_STRING

ALL_VARIABLE_TYPES_IS_KEY

public static final boolean[] ALL_VARIABLE_TYPES_IS_KEY
Constructor Detail

DatabaseConstants.Variables

public DatabaseConstants.Variables()
Method Detail

isVariableKey

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

isVariableNumeric

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

isVariableString

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

getVariableClass

public static java.lang.Class getVariableClass(java.lang.String type)

getVariableTypesForQuestion

public static java.lang.String[] getVariableTypesForQuestion(java.lang.String questionType)
Do not modify the array that is returned! This also returns the types for auxillary options, not just questions.

Parameters:
questionType -
Returns:

getVariableTypesForQuestionWithoutKeys

public static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType)

getVariableTypesForQuestionWithoutKeys

public static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType,
                                                                        java.lang.String choicesType)

getVariableTypes

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

getVariableTypesWithoutKeys

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