|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbr.resources.Convert
public class Convert
Classes to do needed conversions within SurveyBuildR
Field Summary | |
---|---|
static int |
FALSE
Integer code for boolean false (=1). |
static int |
TRUE
Integer code for boolean true (=0). |
Constructor Summary | |
---|---|
Convert()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRUE
public static final int FALSE
Constructor Detail |
---|
public Convert()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |