Method Summary |
|
public void | addCondition(Condition condition) Adds a condition to this prompt. |
public void | addPreconditions(Conditions preconditions) Adds preconditions to this prompt. |
public void | addResponse(String response) Adds a reponse to the possible responses. |
public List | getConditions() Gets the conditions defined in this prompt. |
public String | getId() Gets the unique id of this prompt. |
public List | getPreconditions() Gets the preconditions for this prompt. |
public Object | getResponse(Object response) Gets the response object converted to the appropriate
type or just as it is (if no conversion took place or conversion
failed).
Parameters: response - the response to convert. |
public String | getText() Gets the text of the prompt. |
public boolean | isRequired() Indicates whether or not this prompt is required. |
public boolean | isSetResponseAsTrue() Whether or not the response should be set to a boolean value of true . |
public boolean | isValidResponse(String response) Indicates whether or not the given response is valid
according to the valid responses contained in this prompt instance.
Parameters: response - the response to check. |
public void | setId(String id) Sets the unique id of this prompt. |
public void | setRequired(boolean required) Sets whether or not this prompt is required,
by default the prompt is required. |
public void | setResponseType(String responseType) Sets the response type to use (i.e the fully qualified name of the
type to which it should be converted when placed into the the template context). |
public void | setSetResponseAsTrue(boolean setResponseAsBoolean) Sets whether or not the response should be set to a boolean value of true. |
public void | setText(String text) Sets the prompt text. |