org.opennms.util.ilr
Class ArgumentParser

java.lang.Object
  extended by org.opennms.util.ilr.ArgumentParser

public class ArgumentParser
extends Object


Constructor Summary
ArgumentParser(String programName, Object argHandler)
           
 
Method Summary
 void executeOption(Option o, String arg)
           
 Option findOptionByLongName(String arg)
           
 Option findOptionByShortName(String arg)
           
 void printHelpOptions()
           
 void processArgs(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentParser

public ArgumentParser(String programName,
                      Object argHandler)
Method Detail

processArgs

public void processArgs(String[] args)
                 throws IllegalArgumentException,
                        IllegalAccessException,
                        InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

printHelpOptions

public void printHelpOptions()

executeOption

public void executeOption(Option o,
                          String arg)
                   throws IllegalArgumentException,
                          IllegalAccessException,
                          InvocationTargetException
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

findOptionByShortName

public Option findOptionByShortName(String arg)

findOptionByLongName

public Option findOptionByLongName(String arg)


Copyright © 2011. All Rights Reserved.