org.apache.tools.ant.input

Class InputRequest

public class InputRequest extends Object

Encapsulates an input request.

Since: Ant 1.5

Constructor Summary
InputRequest(String prompt)
Method Summary
StringgetInput()
Retrieves the user input.
StringgetPrompt()
Retrieves the prompt text.
booleanisInputValid()
Is the user input valid?
voidsetInput(String input)
Sets the user provided input.

Constructor Detail

InputRequest

public InputRequest(String prompt)

Parameters: prompt The prompt to show to the user. Must not be null.

Method Detail

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?

setInput

public void setInput(String input)
Sets the user provided input.
Copyright