org.finra.jtaf.core.model.execution
Interface IInvocationContext

All Known Subinterfaces:
IInterpreterContext
All Known Implementing Classes:
CorrectiveContext

public interface IInvocationContext

InvocationTargets can access objects currently inside the context. They are not allowed to push or pop frames.


Method Summary
 boolean contains(String name)
          TODO: This should probably throw some type of exception if the name is not specified in the script contract
 Map<String,Object> getAllObjects()
          Returns map of all objects in the current Context
 Object getObject(String name)
          Returns an Object associated w/ the given name, or null if no such Object is available in the current Context
 TestScript getTestScript()
           
 void putObject(String name, Object value)
          Inserts the specified Object into the current Context.
 void removeObject(String name)
          Removes the object w/ the given name TODO: This should probably throw some kind of exception if the name is not specified in the script contract
 

Method Detail

getObject

Object getObject(String name)
                 throws UndefinedParameterError
Returns an Object associated w/ the given name, or null if no such Object is available in the current Context

Parameters:
name -
Returns:
Throws:
UndefinedParameterError

getAllObjects

Map<String,Object> getAllObjects()
Returns map of all objects in the current Context

Returns:

putObject

void putObject(String name,
               Object value)
               throws UndefinedProductionError
Inserts the specified Object into the current Context.

Parameters:
name -
value -
Throws:
UndefinedProductionError

contains

boolean contains(String name)
TODO: This should probably throw some type of exception if the name is not specified in the script contract

Parameters:
name -
Returns:
True if the given name is associated w/ an Object; False otherwise

removeObject

void removeObject(String name)
Removes the object w/ the given name TODO: This should probably throw some kind of exception if the name is not specified in the script contract

Parameters:
name -

getTestScript

TestScript getTestScript()
Returns:
The TestScript that is being executed.


Copyright © 2014. All rights reserved.