public class InputRequest extends Object
| Constructor and Description | 
|---|
| InputRequest(String prompt)Construct an InputRequest. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDefaultValue()Gets a configured default value. | 
| String | getInput()Retrieves the user input. | 
| String | getPrompt()Retrieves the prompt text. | 
| boolean | isInputValid()Is the user input valid? | 
| void | setDefaultValue(String d)Configures a default value. | 
| void | setInput(String input)Sets the user provided input. | 
public InputRequest(String prompt)
prompt - The prompt to show to the user.  Must not be null.public String getDefaultValue()
public String getInput()
public String getPrompt()
public boolean isInputValid()
public void setDefaultValue(String d)
d - the value to set.public void setInput(String input)
input - the string to be used for input.