public class Convert
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FALSE
Integer code for boolean false (=1).
|
static int |
TRUE
Integer code for boolean true (=0).
|
| Constructor and Description |
|---|
Convert() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertVarNum(int varNum)
Converts a number in to a string for the
variable name.
|
int |
fromBoolean(boolean tf)
Converts from a boolean to the integer codes used to
store in text variables and files in SurveyBuildR.
|
boolean |
toBoolean(int tf)
Converts integer codes used to store in strings and files
by SurveyBuildR back to their boolean counter
parts.
|
public static final int TRUE
public static final int FALSE
public java.lang.String convertVarNum(int varNum)
varNum - the number of the variable.public boolean toBoolean(int tf)
tf - The boolean code.public int fromBoolean(boolean tf)
tf - the boolean variable to be coded.