Public Member Functions | |
Parameter (VelocityContext context) | |
void | walkThrough () |
void | obtainValue () |
void | setValue (String input) |
abstract String | getPrompt () |
abstract boolean | isValid () |
abstract void | export () |
abstract Parameter | getNextParameter () |
abstract String | getArgKeyword () |
Protected Attributes | |
VelocityContext | vContext = null |
String | value = null |
A parameter is created by subclassing this class and overriding the following abstract methods:
Definition at line 56 of file Parameter.java.
|
Creates a new parameter that will export its variables into the specified Velocity context.
Definition at line 82 of file Parameter.java. |
|
Exports the variables managed by this parameter into the associated Velocity context (ie vContext). |
|
|
|
Returns the parameter the user will be asked for after this one. This method is not invoked before a valid value has been entered for this parameter; therefor it is possible to decide which object to return based on the value of value.
This method returns
|
|
Returns the string used to prompt the user for a value.
|
|
Indicates whether this parameter as a valid value. This method can safely assume value is not
|
|
Obtains the value of this parameter. This method prompts the user for a value, stores it into value through the isValid(). This process is repeated until the value is valid. Definition at line 112 of file Parameter.java. |
|
Sets the value of this parameter. This method is called each time a value is entered is entered by the user, before its validity has been checked.
This implementation simply sets value to Definition at line 151 of file Parameter.java. |
|
Recusively walk through the parameters graph, obtaining parameter (obtainValue()) values and exporting (export()) them. The path taken through the parameter graph may change depending on the values entered by the user. It is determined after each valid input by a call to getNextParameter(). Definition at line 96 of file Parameter.java. Referenced by org.objectweb.jonas.newbean.ParameterSet.walkThrough(). |
|
This parameter's value, as entered by the user. Definition at line 72 of file Parameter.java. |
|
The Velocity context into which this parameter's variables will be exported. Definition at line 67 of file Parameter.java. |