org.finra.jtaf.core.commands.context
Class AbstractContextCmd

java.lang.Object
  extended by org.finra.jtaf.core.model.invocationtarget.InvocationTarget
      extended by org.finra.jtaf.core.model.invocationtarget.Command
          extended by org.finra.jtaf.core.commands.context.AbstractContextCmd
Direct Known Subclasses:
AddListToListCmd, AddObjectToListCmd, PutObjectInMapCmd, RemoveObjectFromContextCmd, StoreDefaultObjectCmd, StoreObjectAsStringCmd, StoreObjectFromListCmd, StoreObjectFromMapCmd

public abstract class AbstractContextCmd
extends Command

Base class for context-manipulating commands


Field Summary
protected  IInvocationContext ctx
           
protected  ManipulateContextHelper mch
           
 
Fields inherited from class org.finra.jtaf.core.model.invocationtarget.Command
interpreter, recordResult
 
Fields inherited from class org.finra.jtaf.core.model.invocationtarget.InvocationTarget
globalContext
 
Constructor Summary
AbstractContextCmd(String name)
           
 
Method Summary
protected abstract  void execute()
           
protected  void execute(IInvocationContext ctx)
          This method should be overridden by every Command object.
 
Methods inherited from class org.finra.jtaf.core.model.invocationtarget.Command
acceptInvocationTargetVisitor, clearContext, deinitialize, executeInvocation, getBooleanOrDefault, getContext, getFloatOrDefault, getIntegerOrDefault, getOptionalObject, getOptionalString, getRequiredBoolean, getRequiredFloat, getRequiredInteger, getRequiredObject, getRequiredString, getStringOrDefault, initialize, launch, recordResult
 
Methods inherited from class org.finra.jtaf.core.model.invocationtarget.InvocationTarget
addOptionalParameter, addProduction, addRequiredParameter, cleanGlobalContext, getAllParameters, getFromGlobalContext, getGlobalContext, getName, getOptionalParameters, getProductions, getRequiredParameters, getUsage, putToGlobalContext, setGlobalContext, setUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mch

protected final ManipulateContextHelper mch

ctx

protected IInvocationContext ctx
Constructor Detail

AbstractContextCmd

public AbstractContextCmd(String name)
                   throws NameFormatException
Throws:
NameFormatException
Method Detail

execute

protected final void execute(IInvocationContext ctx)
                      throws Throwable
Description copied from class: Command
This method should be overridden by every Command object.

Specified by:
execute in class Command
Throws:
Exception
Throwable

execute

protected abstract void execute()
                         throws Throwable
Throws:
Throwable


Copyright © 2014. All rights reserved.