iaik.tc.utils.cmdline
Class SubCommand

Object
  extended by SubCommand

public class SubCommand
extends Object


Constructor Summary
SubCommand(String key, String description, Class appClass)
          Constructor.
 
Method Summary
 String getDescription()
          This method returns the description of the sub-command.
 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 Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubCommand

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

Method Detail

getDescription

public 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)
This method is used to start the application represented by this sub-command.


getKey

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