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