org.umber.catalan.commands
Class BaseForgeCommand

java.lang.Object
  extended byorg.umber.catalan.commands.BaseForgeCommand
All Implemented Interfaces:
IForgeCommand
Direct Known Subclasses:
BellowsCommand, CompositeCommand, CrucibleCommand, JasperCommand, TextCommand, VelocityCommand, XsltCommand

public abstract class BaseForgeCommand
extends java.lang.Object
implements IForgeCommand


Constructor Summary
BaseForgeCommand(ICommandQueue queue, java.lang.String type, java.lang.String name, java.util.Map params)
           
 
Method Summary
 java.util.Map getCommandParams()
           
 java.lang.String getName()
           
 ICommandQueue getQueue()
           
 java.lang.String getType()
           
 CommandResult run()
           
protected abstract  CommandResult runCommand()
           
protected abstract  void validateParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseForgeCommand

public BaseForgeCommand(ICommandQueue queue,
                        java.lang.String type,
                        java.lang.String name,
                        java.util.Map params)
Method Detail

validateParams

protected abstract void validateParams()

runCommand

protected abstract CommandResult runCommand()
                                     throws CatalanCommandException
Throws:
CatalanCommandException

getQueue

public ICommandQueue getQueue()
Specified by:
getQueue in interface IForgeCommand

getType

public java.lang.String getType()
Specified by:
getType in interface IForgeCommand

getName

public java.lang.String getName()
Specified by:
getName in interface IForgeCommand

getCommandParams

public java.util.Map getCommandParams()
Specified by:
getCommandParams in interface IForgeCommand

run

public final CommandResult run()
                        throws CatalanCommandException
Specified by:
run in interface IForgeCommand
Throws:
CatalanCommandException