Class CollectionProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.MultiProperty
org.apache.jmeter.testelement.property.CollectionProperty
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<JMeterProperty>,- Iterable<JMeterProperty>,- JMeterProperty
- See Also:
- 
Field SummaryFields inherited from class org.apache.jmeter.testelement.property.AbstractPropertylog
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidaddProperty(JMeterProperty prop) Add a property to the collection.voidclear()Clear away all values in the property.clone()booleanDetermines if the two objects are equal by comparing names and valuesget(int row) protected Class<? extends JMeterProperty>Figures out what kind of properties this collection is holding and returns the class type.inthashCode()booleanisEmpty()iterator()Get the property iterator to iterate through the sub-values of this JMeterProperty.voidrecoverRunningVersion(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.voidremove(int index) voidvoidvoidset(int index, JMeterProperty prop) voidsetCollection(Collection<?> coll) voidvoidsetRunningVersion(boolean running) Make the property a running version or turn it off as the running version.intsize()Methods inherited from class org.apache.jmeter.testelement.property.MultiPropertymergeIn, recoverRunningVersionOfSubElementsMethods inherited from class org.apache.jmeter.testelement.property.AbstractPropertycompareTo, convertObject, createProperty, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, isEqualType, isRunningVersion, makeProperty, normalizeList, normalizeMap, setName, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
CollectionProperty
- 
CollectionPropertypublic CollectionProperty()
 
- 
- 
Method Details- 
equalsDescription copied from class:AbstractPropertyDetermines if the two objects are equal by comparing names and values- Overrides:
- equalsin class- AbstractProperty
- Returns:
- true if names are equal and values are equal (or both null)
 
- 
hashCodepublic int hashCode()Description copied from class:AbstractProperty- Overrides:
- hashCodein class- AbstractProperty
 
- 
remove
- 
set
- 
set
- 
get
- 
removepublic void remove(int index) 
- 
setObjectValue
- 
iteratorGet the property iterator to iterate through the sub-values of this JMeterProperty.- Specified by:
- iteratorin interface- Iterable<JMeterProperty>
- Specified by:
- iteratorin class- MultiProperty
- Returns:
- an iterator for the sub-values of this property
 
- 
getStringValue
- 
getObjectValue
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
clone- Specified by:
- clonein interface- JMeterProperty
- Overrides:
- clonein class- AbstractProperty
 
- 
setCollection
- 
clearpublic void clear()Clear away all values in the property.- Specified by:
- clearin class- MultiProperty
 
- 
addPropertyAdd a property to the collection.- Specified by:
- addPropertyin class- MultiProperty
- Parameters:
- prop- the- JMeterPropertyto add
 
- 
addItem
- 
getPropertyTypeFigures out what kind of properties this collection is holding and returns the class type.- Overrides:
- getPropertyTypein class- AbstractProperty
- Returns:
- property type of this property
- See Also:
 
- 
recoverRunningVersionpublic 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
 
- 
setRunningVersionpublic void setRunningVersion(boolean running) 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 interface- JMeterProperty
- Overrides:
- setRunningVersionin class- MultiProperty
- Parameters:
- running- flag whether this property is a running version
 
 
-