qflib 0.99

de.qfs.lib.util
Interface ArgsParser.Arbitrator

Enclosing interface:
ArgsParser

public static interface ArgsParser.Arbitrator

Interface to be implemented if the decision whether a command line argument is a parameter or not should be made by the ArgParser's user.


Method Summary
 int isParameter(java.lang.String[] args, int optIndex)
          Decide wheter a command line argument is an option parameter or not.
 

Method Detail

isParameter

public int isParameter(java.lang.String[] args,
                       int optIndex)
Decide wheter a command line argument is an option parameter or not. This method will only be called under the following conditions:

Parameters:
args - The command line argument.
optIndex - The index of the option argument.
Returns:
-1 if no paramter, 0 if still undecided and 1 if there is a parameter.

qflib 0.99