org.apache.tools.ant.input

Class MultipleChoiceInputRequest

public class MultipleChoiceInputRequest extends InputRequest

Encapsulates an input request.

Since: Ant 1.5

Constructor Summary
MultipleChoiceInputRequest(String prompt, Vector choices)
Method Summary
VectorgetChoices()
booleanisInputValid()

Constructor Detail

MultipleChoiceInputRequest

public MultipleChoiceInputRequest(String prompt, Vector choices)

Parameters: prompt The prompt to show to the user. Must not be null. choices holds all input values that are allowed. Must not be null.

Method Detail

getChoices

public Vector getChoices()

Returns: The possible values.

isInputValid

public boolean isInputValid()

Returns: true if the input is one of the allowed values.

Copyright