org.mycore.frontend.cli
Class MCRAbstractCommands

java.lang.Object
  extended by org.mycore.frontend.cli.MCRAbstractCommands
All Implemented Interfaces:
MCRExternalCommandInterface
Direct Known Subclasses:
MCRAccessCommands, MCRAccessCtrlCommands, MCRClassification2Commands, MCRDerivateCommands, MCRGoogleSitemapCommands, MCRHIBCtrlCommands, MCRImgCacheCommands, MCRMetsModsCommands, MCRMigrationCommands, MCRObjectCommands, MCRRedundancyCommands, MCRSearcherCommands, MCRUserCommands, MCRWCMSMigrationCommands

public class MCRAbstractCommands
extends Object
implements MCRExternalCommandInterface

This class is an abstract for the implementation of command classes for the MyCoRe commandline system.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Jens Kupferschmidt

Field Summary
protected  ArrayList<MCRCommand> command
          The array holding all known commands
protected static MCRConfiguration CONFIG
          The configuration instance
 
Constructor Summary
protected MCRAbstractCommands()
          The constrctor.
 
Method Summary
 ArrayList<MCRCommand> getPossibleCommands()
          The method return the list of possible commands of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG

protected static final MCRConfiguration CONFIG
The configuration instance


command

protected ArrayList<MCRCommand> command
The array holding all known commands

Constructor Detail

MCRAbstractCommands

protected MCRAbstractCommands()
The constrctor.

Method Detail

getPossibleCommands

public final ArrayList<MCRCommand> getPossibleCommands()
The method return the list of possible commands of this class. Each command has TWO Strings, a String of the user command syntax and a String of the called method.

Specified by:
getPossibleCommands in interface MCRExternalCommandInterface
Returns:
a command pair RArrayList