Class TestElementProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.MultiProperty
org.apache.jmeter.testelement.property.TestElementProperty
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<JMeterProperty>,Iterable<JMeterProperty>,JMeterProperty
- See Also:
-
Field Summary
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log -
Constructor Summary
ConstructorsConstructorDescriptionTestElementProperty(String name, org.apache.jmeter.testelement.TestElement value) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(JMeterProperty prop) Add a property to the collection.voidclear()Clear away all values in the property.clone()booleanDetermines if two test elements are equal.org.apache.jmeter.testelement.TestElementinthashCode()iterator()Get the property iterator to iterate through the sub-values of this JMeterProperty.voidmergeIn(JMeterProperty prop) Take the given property object and merge it's value with the current property object.voidrecoverRunningVersion(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.voidsetElement(org.apache.jmeter.testelement.TestElement el) voidvoidsetRunningVersion(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
recoverRunningVersionOfSubElementsMethods inherited from class org.apache.jmeter.testelement.property.AbstractProperty
compareTo, convertObject, createProperty, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, getPropertyType, isEqualType, isRunningVersion, makeProperty, normalizeList, normalizeMap, setName, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TestElementProperty
-
TestElementProperty
public TestElementProperty()
-
-
Method Details
-
equals
Determines if two test elements are equal.- Overrides:
equalsin classAbstractProperty- Returns:
- true if the value is not null and equals the other Objects value; false otherwise (even if both values are null)
-
hashCode
public int hashCode()Description copied from class:AbstractProperty- Overrides:
hashCodein classAbstractProperty
-
getStringValue
-
setObjectValue
-
getObjectValue
-
getElement
public org.apache.jmeter.testelement.TestElement getElement() -
setElement
public void setElement(org.apache.jmeter.testelement.TestElement el) -
clone
- Specified by:
clonein interfaceJMeterProperty- Overrides:
clonein classAbstractProperty
-
mergeIn
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:
mergeInin interfaceJMeterProperty- Overrides:
mergeInin classMultiProperty- Parameters:
prop- the property object to merge into this property
-
recoverRunningVersion
public void recoverRunningVersion(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.- Parameters:
owner- the owning element
-
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:
setRunningVersionin interfaceJMeterProperty- Overrides:
setRunningVersionin classMultiProperty- Parameters:
runningVersion- flag whether this property is a running version
-
addProperty
Add a property to the collection.- Specified by:
addPropertyin classMultiProperty- Parameters:
prop- theJMeterPropertyto add
-
clear
public void clear()Clear away all values in the property.- Specified by:
clearin classMultiProperty
-
iterator
Get the property iterator to iterate through the sub-values of this JMeterProperty.- Specified by:
iteratorin interfaceIterable<JMeterProperty>- Specified by:
iteratorin classMultiProperty- Returns:
- an iterator for the sub-values of this property
-