org.apache.jmeter.testelement.property
Class FunctionProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.FunctionProperty
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, JMeterProperty
public class FunctionProperty
- extends AbstractProperty
Class that implements the Function property
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
Determines if the two objects are equal by comparing names and values |
java.lang.Object |
getObjectValue()
|
java.lang.String |
getStringValue()
Executes the function (and caches the value for the duration of the test
iteration) if the property is a running version. |
void |
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time
setRunningVersion(true) was called. |
void |
setObjectValue(java.lang.Object v)
|
Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty |
compareTo, convertObject, createProperty, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, setRunningVersion, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
FunctionProperty
public FunctionProperty(java.lang.String name,
CompoundVariable func)
FunctionProperty
public FunctionProperty()
setObjectValue
public void setObjectValue(java.lang.Object v)
equals
public boolean equals(java.lang.Object o)
- Description copied from class:
AbstractProperty
- Determines if the two objects are equal by comparing names and values
- Overrides:
equals
in class AbstractProperty
- Returns:
- true if names are equal and values are equal (or both null)
getStringValue
public java.lang.String getStringValue()
- Executes the function (and caches the value for the duration of the test
iteration) if the property is a running version. Otherwise, the raw
string representation of the function is provided.
- See Also:
JMeterProperty.getStringValue()
getObjectValue
public java.lang.Object getObjectValue()
- See Also:
JMeterProperty.getObjectValue()
clone
public java.lang.Object clone()
- Specified by:
clone
in interface JMeterProperty
- Overrides:
clone
in class AbstractProperty
recoverRunningVersion
public void recoverRunningVersion(TestElement owner)
- Description copied from interface:
JMeterProperty
- Tell the property to revert to the state at the time
setRunningVersion(true) was called.
- See Also:
JMeterProperty.recoverRunningVersion(TestElement)
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.