Package org.opennms.util.ilr
Class ArgumentParser
- java.lang.Object
-
- org.opennms.util.ilr.ArgumentParser
-
public class ArgumentParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ArgumentParser(java.lang.String programName, java.lang.Object argHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeOption(Option o, java.lang.String arg)
Option
findOptionByLongName(java.lang.String arg)
Option
findOptionByShortName(java.lang.String arg)
void
printHelpOptions()
void
processArgs(java.lang.String[] args)
-
-
-
Method Detail
-
processArgs
public void processArgs(java.lang.String[] args) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
printHelpOptions
public void printHelpOptions()
-
executeOption
public void executeOption(Option o, java.lang.String arg) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
findOptionByShortName
public Option findOptionByShortName(java.lang.String arg)
-
findOptionByLongName
public Option findOptionByLongName(java.lang.String arg)
-
-