public class JMeterVariables extends Object
| Constructor and Description |
|---|
JMeterVariables() |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,Object>> |
entrySet() |
String |
get(String key)
Gets the value of a variable, coerced to a String.
|
int |
getIteration() |
Iterator<Map.Entry<String,Object>> |
getIterator()
Gets a read-only Iterator over the variables.
|
Object |
getObject(String key)
Gets the value of a variable (not converted to String).
|
String |
getThreadName() |
void |
incIteration() |
void |
initialize()
Deprecated.
|
void |
put(String key,
String value)
Creates or updates a variable with a String value.
|
void |
putAll(JMeterVariables vars) |
void |
putAll(Map<String,?> vars) |
void |
putObject(String key,
Object value)
Creates or updates a variable with a value that does not have to be a String.
|
Object |
remove(String key)
Remove a variable.
|
public String getThreadName()
public int getIteration()
public void incIteration()
@Deprecated public void initialize()
public Object remove(String key)
key - the variable name to removenull if there was no such variablepublic void put(String key, String value)
key - the variable namevalue - the variable valuepublic void putObject(String key, Object value)
key - the variable namevalue - the variable valuepublic void putAll(JMeterVariables vars)
public String get(String key)
key - the name of the variablenull if it does not existpublic Object getObject(String key)
key - the name of the variablenull if it does not existpublic Iterator<Map.Entry<String,Object>> getIterator()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.