|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbr.resources.io.SBRParse
public class SBRParse
Object to part the .sbr files to hold the code from the building of the program.
Field Summary | |
---|---|
static int |
ALLOW_COUNT
Position in the first index of the string array that is returned for the code that indicates if the user is allowing me to count the usage of the survey.. |
static int |
DO_VAS
Position in the first index of the string array that is returned for the code to indicate if a visual analog scale item is in the survey. |
static java.lang.String |
EL_IN
tag for the beginning of an element of a question |
static java.lang.String |
EL_OUT
tag to close an element of a question. |
static int |
HTML_BODY_START
Position in the first index of the string array that is returned for the code that is at the beginning of the body of the web page. |
static int |
ITEMS
Position in the first index of the string array that is returned for the code that holds the survey items. |
static int |
PG_TITLE
Position in the first index of the string array that is returned for the page title. |
Constructor Summary | |
---|---|
SBRParse()
|
Method Summary | |
---|---|
java.lang.String[][][][] |
fromSBR(java.lang.String file)
Takes the text from the survey code file (.sbr) and parses it into a string array with all of the information needed to recreate the survey. |
java.lang.String |
toSBR(java.lang.String pgTitle,
boolean doVAS,
java.lang.String htmlBodyStart,
java.lang.String[][][] items,
boolean allowCount)
Converts the information that needs to be stored into the coded storage format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PG_TITLE
public static final int DO_VAS
public static final int HTML_BODY_START
public static final int ITEMS
public static final int ALLOW_COUNT
public static final java.lang.String EL_IN
public static final java.lang.String EL_OUT
Constructor Detail |
---|
public SBRParse()
Method Detail |
---|
public java.lang.String toSBR(java.lang.String pgTitle, boolean doVAS, java.lang.String htmlBodyStart, java.lang.String[][][] items, boolean allowCount)
pgTitle
- the title of the surveydoVAS
- does the user have any visual
analong scale items in the surveyhtmlBodyStart
- the code at the beginning
of the page and form.items
- the string array for the survey items.allowCount
- does the user allow me to
count the hits of their survey.lastQuest
- the number of the last question
in the survey.
public java.lang.String[][][][] fromSBR(java.lang.String file)
file.
- the text of the .sbr file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |