org.apache.jmeter.testelement.property

Class TestElementProperty

Implemented Interfaces:
Cloneable, Comparable, JMeterProperty, Serializable

public class TestElementProperty
extends MultiProperty

Field Summary

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

log

Constructor Summary

TestElementProperty()
TestElementProperty(String name, TestElement value)

Method Summary

void
addProperty(JMeterProperty prop)
Add a property to the collection.
void
clear()
Clear away all values in the property.
Object
clone()
boolean
equals(Object o)
Determines if two test elements are equal.
TestElement
getElement()
Object
getObjectValue()
String
getStringValue()
int
hashCode()
PropertyIterator
iterator()
Get the property iterator to iterate through the sub-values of this JMeterProperty.
void
mergeIn(JMeterProperty prop)
Take the given property object and merge it's value with the current property object.
void
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.
void
setElement(TestElement el)
void
setObjectValue(Object v)
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.MultiProperty

addProperty, clear, iterator, mergeIn, recoverRunningVersionOfSubElements, setRunningVersion

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

TestElementProperty

public TestElementProperty()

TestElementProperty

public TestElementProperty(String name,
                           TestElement value)

Method Details

addProperty

public void addProperty(JMeterProperty prop)
Add a property to the collection.
Overrides:
addProperty in interface MultiProperty

clear

public void clear()
Clear away all values in the property.
Overrides:
clear in interface MultiProperty

clone

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

equals

public boolean equals(Object o)
Determines if two test elements are equal.
Overrides:
equals in interface AbstractProperty
Returns:
true if the value is not null and equals the other Objects value; false otherwise (even if both values are null)

getElement

public TestElement getElement()

getObjectValue

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

getStringValue

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

hashCode

public int hashCode()
Overrides:
hashCode in interface AbstractProperty

iterator

public PropertyIterator iterator()
Get the property iterator to iterate through the sub-values of this JMeterProperty.
Overrides:
iterator in interface MultiProperty
Returns:
an iterator for the sub-values of this property

mergeIn

public void mergeIn(JMeterProperty prop)
Take the given property object and merge it's value with the current property object. For most property types, this will simply be ignored. But for collection properties and test element properties, more complex behavior is required.
Specified by:
mergeIn in interface JMeterProperty
Overrides:
mergeIn in interface MultiProperty
Parameters:
prop -

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

setElement

public void setElement(TestElement el)

setObjectValue

public void setObjectValue(Object v)
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 MultiProperty
Parameters:
runningVersion -

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