Class MultiProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.MultiProperty
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<JMeterProperty>,Iterable<JMeterProperty>,JMeterProperty
- Direct Known Subclasses:
CollectionProperty,MapProperty,TestElementProperty
For JMeterProperties that hold multiple properties within, provides a simple
interface for retrieving a property iterator for the sub values.
- See Also:
-
Field Summary
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddProperty(JMeterProperty prop) Add a property to the collection.abstract voidclear()Clear away all values in the property.abstract PropertyIteratoriterator()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.protected voidrecoverRunningVersionOfSubElements(org.apache.jmeter.testelement.TestElement owner) voidsetRunningVersion(boolean running) 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, normalizeList, normalizeMap, setName, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.jmeter.testelement.property.JMeterProperty
getObjectValue, getStringValue, recoverRunningVersion, setObjectValue
-
Constructor Details
-
MultiProperty
protected MultiProperty() -
MultiProperty
-
-
Method Details
-
iterator
Get the property iterator to iterate through the sub-values of this JMeterProperty.- Specified by:
iteratorin interfaceIterable<JMeterProperty>- Returns:
- an iterator for the sub-values of this property
-
addProperty
Add a property to the collection.- Parameters:
prop- theJMeterPropertyto add
-
clear
public abstract void clear()Clear away all values in the property. -
setRunningVersion
public void setRunningVersion(boolean running) Description copied from class:AbstractPropertyMake 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 classAbstractProperty- Parameters:
running- flag whether this property is a running version
-
recoverRunningVersionOfSubElements
protected void recoverRunningVersionOfSubElements(org.apache.jmeter.testelement.TestElement owner) -
mergeIn
Description copied from class:AbstractPropertyTake 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 classAbstractProperty- Parameters:
prop- the property object to merge into this property
-