slib.tools.module
Class CmdHandler

java.lang.Object
  extended by slib.tools.module.CmdHandler

public abstract class CmdHandler
extends Object

Abstract command handler

Author:
Sebastien Harispe

Field Summary
 ModuleCst cst
           
 ToolCmdHandlerCst cstCmd
           
 org.apache.commons.cli.HelpFormatter helpFormatter
           
 org.apache.commons.cli.Options options
           
 Map<org.apache.commons.cli.Option,Integer> optionsOrder
           
 
Constructor Summary
CmdHandler(ModuleCst cst, ToolCmdHandlerCst cstCmd, String[] args)
           
 
Method Summary
 void ending(String message, boolean showHelp)
           
 void ending(String message, boolean showHelp, boolean showDesc, boolean showContact)
           
abstract  void processArgs(String[] args)
           
 void showCmdLineExamples()
           
 void showContact()
           
 void showDescription()
           
 void showRef()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cst

public ModuleCst cst

cstCmd

public ToolCmdHandlerCst cstCmd

options

public org.apache.commons.cli.Options options

helpFormatter

public org.apache.commons.cli.HelpFormatter helpFormatter

optionsOrder

public Map<org.apache.commons.cli.Option,Integer> optionsOrder
Constructor Detail

CmdHandler

public CmdHandler(ModuleCst cst,
                  ToolCmdHandlerCst cstCmd,
                  String[] args)
           throws slib.utils.ex.SLIB_Exception
Parameters:
cst -
cstCmd -
args -
Throws:
slib.utils.ex.SLIB_Exception
Method Detail

processArgs

public abstract void processArgs(String[] args)
                          throws slib.utils.ex.SLIB_Exception
Parameters:
args -
Throws:
slib.utils.ex.SLIB_Exception

showCmdLineExamples

public void showCmdLineExamples()
                         throws slib.utils.ex.SLIB_Exception
Throws:
slib.utils.ex.SLIB_Exception

showDescription

public void showDescription()

showContact

public void showContact()

showRef

public final void showRef()

ending

public void ending(String message,
                   boolean showHelp,
                   boolean showDesc,
                   boolean showContact)
Parameters:
message -
showHelp -
showDesc -
showContact -

ending

public void ending(String message,
                   boolean showHelp)
Parameters:
message -
showHelp -


Copyright © 2013. All Rights Reserved.