Apache JMeter

org.apache.jmeter.engine.util
Class ReplaceFunctionsWithStrings

java.lang.Object
  extended by org.apache.jmeter.engine.util.ReplaceFunctionsWithStrings

public class ReplaceFunctionsWithStrings
extends Object

Transforms strings into variable references (in spite of the name, which suggests the opposite!)


Field Summary
protected  CompoundVariable masterFunction
           
protected  Map variables
           
 
Constructor Summary
ReplaceFunctionsWithStrings(CompoundVariable masterFunction, Map variables)
           
ReplaceFunctionsWithStrings(CompoundVariable masterFunction, Map variables, boolean regexMatch)
           
 
Method Summary
protected  CompoundVariable getMasterFunction()
           
 Map getVariables()
           
 void setMasterFunction(CompoundVariable variable)
          Set the master function for the value transformer.
 void setVariables(Map map)
          Set the variable names and values used to reverse replace functions with strings, and undo functions to raw values.
 JMeterProperty transformValue(JMeterProperty prop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

masterFunction

protected CompoundVariable masterFunction

variables

protected Map variables
Constructor Detail

ReplaceFunctionsWithStrings

public ReplaceFunctionsWithStrings(CompoundVariable masterFunction,
                                   Map variables)

ReplaceFunctionsWithStrings

public ReplaceFunctionsWithStrings(CompoundVariable masterFunction,
                                   Map variables,
                                   boolean regexMatch)
Method Detail

transformValue

public JMeterProperty transformValue(JMeterProperty prop)
                              throws InvalidVariableException
Throws:
InvalidVariableException

setMasterFunction

public void setMasterFunction(CompoundVariable variable)
Set the master function for the value transformer. This handles converting strings to functions.


getMasterFunction

protected CompoundVariable getMasterFunction()

getVariables

public Map getVariables()

setVariables

public void setVariables(Map map)
Set the variable names and values used to reverse replace functions with strings, and undo functions to raw values.


Apache JMeter

Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.