iaik.tc.utils.cmdline
Class SubCommand

java.lang.Object
  extended by iaik.tc.utils.cmdline.SubCommand

public class SubCommand
extends java.lang.Object


Constructor Summary
SubCommand(java.lang.String key, java.lang.String description, java.lang.Class appClass)
          Constructor.
 
Method Summary
 java.lang.String getDescription()
          This method returns the description of the sub-command.
 java.lang.String getKey()
          This method returns the key of this sub-command.
 ParamParser getParamParser()
          This method returns a parameter parser instance that is able to handle the parameters accepted by this sub-command.
 void run(ParamParser paramParser)
          This method is used to start the application represented by this sub-command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubCommand

public SubCommand(java.lang.String key,
                  java.lang.String description,
                  java.lang.Class appClass)
Constructor.

Method Detail

getDescription

public java.lang.String getDescription()
This method returns the description of the sub-command.


getParamParser

public ParamParser getParamParser()
This method returns a parameter parser instance that is able to handle the parameters accepted by this sub-command.


run

public void run(ParamParser paramParser)
         throws CommandlineException
This method is used to start the application represented by this sub-command.

Throws:
CommandlineException

getKey

public java.lang.String getKey()
This method returns the key of this sub-command.