org.apache.jmeter.testelement.property

Class ObjectProperty

Implemented Interfaces:
Cloneable, Comparable, JMeterProperty, Serializable

public class ObjectProperty
extends AbstractProperty

Field Summary

Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty

log

Constructor Summary

ObjectProperty()
ObjectProperty(String name)
ObjectProperty(String name, Object p)

Method Summary

Object
clone()
Object
getObjectValue()
String
getStringValue()
void
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.
void
setObjectValue(Object value)
void
setRunningVersion(boolean runningVersion)
Make the property a running version or turn it off as the running version.

Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty

clone, compareTo, convertObject, createProperty, equals, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, setRunningVersion, toString

Constructor Details

ObjectProperty

public ObjectProperty()

ObjectProperty

public ObjectProperty(String name)
Parameters:
name -

ObjectProperty

public ObjectProperty(String name,
                      Object p)

Method Details

clone

public Object clone()
Specified by:
clone in interface JMeterProperty
Overrides:
clone in interface AbstractProperty

getObjectValue

public Object getObjectValue()
Specified by:
getObjectValue in interface JMeterProperty

getStringValue

public String getStringValue()
Specified by:
getStringValue in interface JMeterProperty

recoverRunningVersion

public void recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.
Specified by:
recoverRunningVersion in interface JMeterProperty

setObjectValue

public void setObjectValue(Object value)
Specified by:
setObjectValue in interface JMeterProperty

setRunningVersion

public void setRunningVersion(boolean runningVersion)
Make the property a running version or turn it off as the running version. A property that is made a running version will preserve the current state in such a way that it is retrievable by a future call to 'recoverRunningVersion()'. Additionally, a property that is a running version will resolve all functions prior to returning it's property value. A non-running version property will return functions as their uncompiled string representation.
Specified by:
setRunningVersion in interface JMeterProperty
Overrides:
setRunningVersion in interface AbstractProperty
Parameters:
runningVersion -

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