de.janrufmonitor.framework.command
Class AbstractCommand

java.lang.Object
  extended by de.janrufmonitor.framework.command.AbstractCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
AbstractConfigurableCommand, AbstractConsoleCommand

public abstract class AbstractCommand
extends Object
implements ICommand

This class is an abstract implementation of a command.

Author:
Thilo Brandt

Field Summary
protected  II18nManager m_i18n
           
protected  String m_language
           
protected  Logger m_logger
           
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
 String getLabel()
          Gets the label of the command.
abstract  String getNamespace()
          Gets the namespace of this command implementation.
 Map getParameters()
          Gets the parameters which can be evaluated during execution time.
abstract  IRuntime getRuntime()
          Gets the current runtime object.
 void setParameters(Map m)
          Sets the parameters which can be evaluated during execution time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.janrufmonitor.framework.command.ICommand
execute, getID, isExecutable, isExecuting
 

Field Detail

m_logger

protected Logger m_logger

m_language

protected String m_language

m_i18n

protected II18nManager m_i18n
Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

getLabel

public String getLabel()
Description copied from interface: ICommand
Gets the label of the command.

Specified by:
getLabel in interface ICommand
Returns:
a valid label

getRuntime

public abstract IRuntime getRuntime()
Gets the current runtime object.

Returns:
an instance of the runtime.

getNamespace

public abstract String getNamespace()
Gets the namespace of this command implementation.

Returns:
a valid namespace.

getParameters

public Map getParameters()
Description copied from interface: ICommand
Gets the parameters which can be evaluated during execution time.

Specified by:
getParameters in interface ICommand
Returns:
a valid parameter map.

setParameters

public void setParameters(Map m)
Description copied from interface: ICommand
Sets the parameters which can be evaluated during execution time. The map contains key value pairs of parameters.

Specified by:
setParameters in interface ICommand
Parameters:
m - a parameter map


Copyright © 2010 by Thilo Brandt. All Rights Reserved.