org.apache.tools.ant.input

Class InputRequest

Known Direct Subclasses:
MultipleChoiceInputRequest

public class InputRequest
extends java.lang.Object

Encapsulates an input request.

Since:
Ant 1.5

Constructor Summary

InputRequest(String prompt)

Method Summary

String
getInput()
Retrieves the user input.
String
getPrompt()
Retrieves the prompt text.
boolean
isInputValid()
Is the user input valid?
void
setInput(String input)
Sets the user provided input.

Constructor Details

InputRequest

public InputRequest(String prompt)

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

Method Details

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 B) 2000-2005 Apache Software Foundation. All Rights Reserved.