scriptella.driver.jexl
Class JexlContextMap

java.lang.Object
  extended by scriptella.driver.script.ParametersCallbackMap
      extended by scriptella.driver.jexl.JexlContextMap
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>, org.apache.commons.jexl.JexlContext, scriptella.spi.ParametersCallback

public final class JexlContextMap
extends ParametersCallbackMap
implements org.apache.commons.jexl.JexlContext

Mutable JexlContext implementation for integration into Scriptella execution environment. This class allows local variables to be set via ParametersCallbackMap.put(String,Object) method.
ParametersCallbackMap.getParameter(String) allows reading variables.

Version:
1.0
Author:
Fyodor Kupolov

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
JexlContextMap(scriptella.spi.ParametersCallback parentParameters)
          Initializes instance and set parent parameters to use in ParametersCallbackMap.getParameter(String).
JexlContextMap(scriptella.spi.ParametersCallback parentParameters, scriptella.spi.QueryCallback queryCallback)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getVars()
           
 void setVars(java.util.Map vars)
           
 
Methods inherited from class scriptella.driver.script.ParametersCallbackMap
clear, containsKey, containsValue, entrySet, get, getParameter, isEmpty, keySet, next, put, putAll, remove, setQueryCallback, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JexlContextMap

public JexlContextMap(scriptella.spi.ParametersCallback parentParameters)
Initializes instance and set parent parameters to use in ParametersCallbackMap.getParameter(String).

Parameters:
parentParameters - parent parameters.

JexlContextMap

public JexlContextMap(scriptella.spi.ParametersCallback parentParameters,
                      scriptella.spi.QueryCallback queryCallback)
Method Detail

setVars

public void setVars(java.util.Map vars)
Specified by:
setVars in interface org.apache.commons.jexl.JexlContext

getVars

public java.util.Map<java.lang.String,java.lang.Object> getVars()
Specified by:
getVars in interface org.apache.commons.jexl.JexlContext


Copyright © Copyright 2006-2009 The Scriptella Project Team.