net.sf.kernow.util
Class CommandLineParamParser

java.lang.Object
  extended by net.sf.kernow.util.CommandLineParamParser

public class CommandLineParamParser
extends java.lang.Object


Constructor Summary
CommandLineParamParser()
          Creates a new instance of CommandLineParamParser
 
Method Summary
static java.util.HashMap<java.lang.String,java.lang.Object> parseParams(java.lang.String[] args, int startIndex)
          Extracts name value pairs from the parameters section of the commandline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParamParser

public CommandLineParamParser()
Creates a new instance of CommandLineParamParser

Method Detail

parseParams

public static java.util.HashMap<java.lang.String,java.lang.Object> parseParams(java.lang.String[] args,
                                                                               int startIndex)
Extracts name value pairs from the parameters section of the commandline

Parameters:
args - The commmand line arguments array
startIndex - The index at which the parameters start
Returns:
A HashMap containing the name value pairs