org.apache.tools.ant.input
public class InputRequest extends Object
Since: Ant 1.5
| Constructor Summary | |
|---|---|
| InputRequest(String prompt)
Construct an InputRequest. | |
| Method Summary | |
|---|---|
| String | getDefaultValue()
Gets a configured default value. |
| String | getInput()
Retrieves the user input. |
| String | getPrompt()
Retrieves the prompt text. |
| boolean | isInputValid()
Is the user input valid? |
| void | setDefaultValue(String d)
Configures a default value. |
| void | setInput(String input)
Sets the user provided input. |
Parameters: prompt The prompt to show to the user. Must not be null.
Returns: the default value.
Since: Ant 1.7.0
Returns: the user input.
Returns: the prompt.
Returns: true if it is.
Parameters: d the value to set.
Since: Ant 1.7.0
Parameters: input the string to be used for input.