All Packages Class Hierarchy This Package Previous Next Index
Class jdsltools.testers.TesterGetOpts
java.lang.Object
|
+----jdsltools.testers.TesterGetOpts
- public class TesterGetOpts
- extends Object
A getopts module for the tester.
- Author:
- Mike Boilen (mgb)
-
TesterGetOpts(String[], String)
- Class constructor.
-
getBool(char)
- Retrieves a boolean flag that indicates whether or not a given
parameter was found on the command line.
-
getString(char)
- Retrieves a parameter that has a string argument.
TesterGetOpts
public TesterGetOpts(String args[],
String paramParams)
- Class constructor. It initializes a table of options from the command
line.
- Parameters:
- args - The command line options
- paramParams - A string consisting of all the one letter parameters
that take an additional parameter.
getString
public String getString(char param)
- Retrieves a parameter that has a string argument. Returns the
argument, or null if the parameter was not passed in.
- Parameters:
- param - The parameter to look for.
- Returns:
- The string on the command line that was the argument for
param
.
getBool
public boolean getBool(char param)
- Retrieves a boolean flag that indicates whether or not a given
parameter was found on the command line. True if the argument was
found, false if not.
- Parameters:
- param - The parameter to look for.
- Returns:
-
true
if the parameter was found,
false
if it was not.
All Packages Class Hierarchy This Package Previous Next Index