org.pdfsam.console.business.parser.handlers.interfaces
Class AbstractCmdHandler

java.lang.Object
  extended by org.pdfsam.console.business.parser.handlers.interfaces.AbstractCmdHandler
All Implemented Interfaces:
CmdHandler
Direct Known Subclasses:
ConcatCmdHandler, DecryptCmdHandler, DocumentInfoCmdHandler, EncryptCmdHandler, MixCmdHandler, PageLabelsCmdHandler, RotateCmdHandler, SetViewerCmdHandler, SlideShowCmdHandler, SplitCmdHandler, UnpackCmdHandler

public abstract class AbstractCmdHandler
extends java.lang.Object
implements CmdHandler

Abstract CmdHandler to be extended to handle input arguments based on the input command (concat, split, ecc ecc)

Author:
Andrea Vacondio

Field Summary
 
Fields inherited from interface org.pdfsam.console.business.parser.handlers.interfaces.CmdHandler
COMMAND
 
Constructor Summary
AbstractCmdHandler()
          Constructor
 
Method Summary
abstract  java.util.Collection getArguments()
           
abstract  java.lang.String getCommandDescription()
           
 jcmdline.CmdLineHandler getCommandLineHandler()
           
abstract  java.lang.String getHelpExamples()
           
abstract  java.util.Collection getOptions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pdfsam.console.business.parser.handlers.interfaces.CmdHandler
getHelpMessage
 

Constructor Detail

AbstractCmdHandler

public AbstractCmdHandler()
Constructor

Method Detail

getHelpExamples

public abstract java.lang.String getHelpExamples()
Specified by:
getHelpExamples in interface CmdHandler
Returns:
Help examples message for this handler

getOptions

public abstract java.util.Collection getOptions()
Specified by:
getOptions in interface CmdHandler
Returns:
Options for this handler

getArguments

public abstract java.util.Collection getArguments()
Specified by:
getArguments in interface CmdHandler
Returns:
Arguments for this handler

getCommandDescription

public abstract java.lang.String getCommandDescription()
Specified by:
getCommandDescription in interface CmdHandler
Returns:
Description for the command of this handler

getCommandLineHandler

public jcmdline.CmdLineHandler getCommandLineHandler()
Specified by:
getCommandLineHandler in interface CmdHandler
Returns:
the command line handler for this handler