Package org.apache.tools.ant.input
Class InputRequest
java.lang.Object
org.apache.tools.ant.input.InputRequest
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets a configured default value.getInput()Retrieves the user input.Retrieves the prompt text.booleanIs the user input valid?voidConfigures a default value.voidSets the user provided input.
- 
Constructor Details- 
InputRequestConstruct an InputRequest.- Parameters:
- prompt- The prompt to show to the user. Must not be null.
 
 
- 
- 
Method Details- 
getPrompt
- 
setInputSets the user provided input.- Parameters:
- input- the string to be used for input.
 
- 
isInputValidpublic boolean isInputValid()Is the user input valid?- Returns:
- true if it is.
 
- 
getInput
- 
getDefaultValueGets a configured default value.- Returns:
- the default value.
- Since:
- Ant 1.7.0
 
- 
setDefaultValueConfigures a default value.- Parameters:
- d- the value to set.
- Since:
- Ant 1.7.0
 
 
-