org.apache.tools.ant.input
Class InputRequest
java.lang.Object
org.apache.tools.ant.input.InputRequest
public class InputRequest
extends java.lang.Object
Encapsulates an input request.
InputRequest
public InputRequest(String prompt)
Construct an InputRequest.
prompt
- The prompt to show to the user. Must not be null.
getDefaultValue
public String getDefaultValue()
Gets a configured default value.
getInput
public String getInput()
Retrieves the user input.
getPrompt
public String getPrompt()
Retrieves the prompt text.
isInputValid
public boolean isInputValid()
Is the user input valid?
setDefaultValue
public void setDefaultValue(String d)
Configures a default value.
setInput
public void setInput(String input)
Sets the user provided input.
input
- the string to be used for input.