|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.tools.BaseCommandLineTool
public abstract class BaseCommandLineTool
Base class for command-line applications.
| Field Summary | |
|---|---|
protected org.apache.commons.cli.Options |
cliOptions
Command line options. |
protected java.util.logging.Logger |
logger
Logger for the application. |
| Constructor Summary | |
|---|---|
BaseCommandLineTool()
|
|
| Method Summary | |
|---|---|
protected java.util.logging.Logger |
getLogger()
Returns the logger for this class. |
protected abstract void |
go(org.apache.commons.cli.CommandLine line)
Override and write your stuff using command line options. |
protected void |
go(java.lang.String[] args)
Initializes application context. |
protected abstract void |
initializeOptions(org.apache.commons.cli.Options options)
Override and initialize options. |
protected void |
printUsage()
Prints usage (options). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.logging.Logger logger
protected final org.apache.commons.cli.Options cliOptions
| Constructor Detail |
|---|
public BaseCommandLineTool()
| Method Detail |
|---|
protected final void go(java.lang.String[] args)
protected void printUsage()
protected abstract void go(org.apache.commons.cli.CommandLine line)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void initializeOptions(org.apache.commons.cli.Options options)
protected final java.util.logging.Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||