/** * Returns true if the form is a form to fill out. * * @return if the form is a form to fill out. */ private boolean isFormType() { return TYPE_FORM.equals(dataForm.getType()); }
/** * Returns true if the form is a form to submit. * * @return if the form is a form to submit. */ private boolean isSubmitType() { return TYPE_SUBMIT.equals(dataForm.getType()); }
/** * Returns the meaning of the data within the context. The data could be part of a form to fill * out, a form submission or data results. * * <p>Possible form types are: * * <ul> * <li>form -> Indicates a form to fill out. * <li>submit -> The form is filled out, and this is the data that is being returned from the * form. * <li>cancel -> The form was cancelled. Tell the asker that piece of information. * <li>result -> Data results being returned from a search, or some other query. * </ul> * * @return the form's type. */ public String getType() { return dataForm.getType(); }