| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sourceforge.espro.utils.Table
public class Table
This is a data table, used for exporting data from the questionnaire. The Table is extensible.
| Constructor Summary | |
|---|---|
| Table()Creates a new instance of Table | |
| Method Summary | |
|---|---|
|  java.lang.String | getString()Returns the table as string. | 
|  java.lang.String | getString(boolean header,
          java.lang.String separator,
          java.lang.String endOfLine)Returns the table as string. | 
| static java.lang.String | join(java.lang.String[] parts,
     java.lang.String separator,
     java.lang.String endOfLine)Creates a string from an array of strings. | 
|  void | newRow()Adds a new row. | 
|  void | setValue(java.lang.String column,
         java.lang.Object value)Sets a value into the table on the current row. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Table()
| Method Detail | 
|---|
public void setValue(java.lang.String column,
                     java.lang.Object value)
column - The name of the column.value - The value.public void newRow()
public java.lang.String getString()
getString(true, "; ", "\n");
public java.lang.String getString(boolean header,
                                  java.lang.String separator,
                                  java.lang.String endOfLine)
header - True if you want a header printed out.separator - The seperator, i.e. "; ".endOfLine - The end of line statement, i.e. "\n"
public static java.lang.String join(java.lang.String[] parts,
                                    java.lang.String separator,
                                    java.lang.String endOfLine)
parts - The array of strings.separator - The separator between the string.endOfLine - An character for an end of line, this will be put after
 the last item of the parts array.  Set this to "" if you don't need
 any.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||