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)

Constructor Index

 o TesterGetOpts(String[], String)
Class constructor.

Method Index

 o getBool(char)
Retrieves a boolean flag that indicates whether or not a given parameter was found on the command line.
 o getString(char)
Retrieves a parameter that has a string argument.

Constructors

 o 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.

Methods

 o 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.
 o 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