Method Summary |
|
public FormField | addField() Adds a new field as part of the form. |
public void | addInstruction(String instruction) Adds a new instruction to the list of instructions that explain how to fill out the form
and what the form is about. |
public void | addItemFields(Map<String, Object> fields) Adds a new row of items of reported data. |
public void | addReportedField(String variable, String label, FormField.Type type) Adds a field to the list of fields that will be returned from a search. |
public void | clearInstructions() Clears all the stored instructions in this packet extension. |
public DataForm | createCopy() |
static String | encode(Object object) Returns the String representation of an Object to be used as a field value.
Parameters: object - the object to encode. |
public FormField | getField(String variable) Returns the field whose variable matches the specified variable.
Parameters: variable - the variable name of the field to search. |
public List<FormField> | getFields() Returns the fields that are part of the form. |
public List<String> | getInstructions() Returns an unmodifiable list of instructions that explain how to fill out the form and
what the form is about. |
public String | getTitle() Returns the description of the data form. |
public DataForm.Type | getType() Returns the type of this data form. |
public static boolean | parseBoolean(String booleanString) |
public static Date | parseDate(String date) Returns the Date obtained by parsing the specified date representation. |
public boolean | removeField(String variable) Removes the field whose variable matches the specified variable.
Parameters: variable - the variable name of the field to remove. |
public void | setTitle(String title) Sets the description of the data. |