|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IDataArea interface defines functionality for data areas.
A DataArea
is a container for Container
attributes. The elements of a DataArea
are similar to
program variables and are scoped to the owning container.
Field Summary | |
---|---|
static java.lang.String |
ENGINE
The name of the DataArea provided at the engine level. |
static java.lang.String |
TEST
The name of the DataArea provided for each test script. |
static java.lang.String |
VIRTUALUSER
The name of the DataArea provided for each virtual user. |
Method Summary | |
---|---|
boolean |
containsKey(java.lang.Object key)
Returns true if there is a mapping for the specified key. |
boolean |
containsValue(java.lang.Object value)
Returns true if there is an entry for this value. |
java.lang.Object |
get(java.lang.Object key)
Retrieves an object from the current DataArea . |
java.lang.String |
getName()
Returns the name of the specified DataArea . |
void |
lock()
Locks the entire DataArea . |
void |
lock(java.lang.Object key)
Locks the specified key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds an object to the DataArea . |
java.lang.Object |
remove(java.lang.Object key)
Removes the object with the given key from the DataArea . |
Field Detail |
public static final java.lang.String ENGINE
DataArea
provided at the engine level.
public static final java.lang.String VIRTUALUSER
DataArea
provided for each virtual user.
public static final java.lang.String TEST
DataArea
provided for each test script.
Method Detail |
public java.lang.Object get(java.lang.Object key)
DataArea
.
Returns the object value to which the key is currently
mapped or null if there is no mapping for this key.
Note that it is possible for the key to map to a null value.
Use the containsKey
method to distinguish between
these two cases.
DataArea
that corresponds to the specified key.public java.lang.Object put(java.lang.Object key, java.lang.Object value)
DataArea
.
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.
public boolean containsKey(java.lang.Object key)
true
if there is a mapping for the specified key.
true
if there is a mapping for the specified key.
false
if there is no mapping for this key.public boolean containsValue(java.lang.Object value)
true
if there is an entry for this value.
true
if the DataArea
contains the specified value.
false
if this value is not in the DataArea
.public java.lang.String getName()
DataArea
.
DataArea
name.public java.lang.Object remove(java.lang.Object key)
DataArea
.
key
-
public void lock()
DataArea
.
Causes subsequent put() and remove() calls to fail for this key.
public void lock(java.lang.Object key)
Causes subsequent put() and remove() calls to fail for this key.
key
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |