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 Summary
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addProperty
(JMeterProperty prop) Add a property to the collection.void
clear()
Clear away all values in the property.clone()
boolean
Determines 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.int
hashCode()
boolean
isEmpty()
iterator()
Get the property iterator to iterate through the sub-values of this JMeterProperty.void
recoverRunningVersion
(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.void
remove
(int index) void
void
void
set
(int index, JMeterProperty prop) void
setCollection
(Collection<?> coll) void
void
setRunningVersion
(boolean running) Make the property a running version or turn it off as the running version.int
size()
Methods inherited from class org.apache.jmeter.testelement.property.MultiProperty
mergeIn, recoverRunningVersionOfSubElements
Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty
compareTo, convertObject, createProperty, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, isEqualType, isRunningVersion, makeProperty, normalizeList, normalizeMap, setName, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CollectionProperty
-
CollectionProperty
public CollectionProperty()
-
-
Method Details
-
equals
Description copied from class:AbstractProperty
Determines if the two objects are equal by comparing names and values- Overrides:
equals
in classAbstractProperty
- Returns:
- true if names are equal and values are equal (or both null)
-
hashCode
public int hashCode()Description copied from class:AbstractProperty
- Overrides:
hashCode
in classAbstractProperty
-
remove
-
set
-
set
-
get
-
remove
public void remove(int index) -
setObjectValue
-
iterator
Get the property iterator to iterate through the sub-values of this JMeterProperty.- Specified by:
iterator
in interfaceIterable<JMeterProperty>
- Specified by:
iterator
in classMultiProperty
- Returns:
- an iterator for the sub-values of this property
-
getStringValue
-
getObjectValue
-
size
public int size() -
isEmpty
public boolean isEmpty() -
clone
- Specified by:
clone
in interfaceJMeterProperty
- Overrides:
clone
in classAbstractProperty
-
setCollection
-
clear
public void clear()Clear away all values in the property.- Specified by:
clear
in classMultiProperty
-
addProperty
Add a property to the collection.- Specified by:
addProperty
in classMultiProperty
- Parameters:
prop
- theJMeterProperty
to add
-
addItem
-
getPropertyType
Figures out what kind of properties this collection is holding and returns the class type.- Overrides:
getPropertyType
in classAbstractProperty
- Returns:
- property type of this property
- See Also:
-
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 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:
setRunningVersion
in interfaceJMeterProperty
- Overrides:
setRunningVersion
in classMultiProperty
- Parameters:
running
- flag whether this property is a running version
-