public class CollectionProperty extends MultiProperty
log
Constructor and Description |
---|
CollectionProperty() |
CollectionProperty(String name,
Collection<?> value) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object item) |
void |
addProperty(JMeterProperty prop)
Add a property to the collection.
|
void |
clear()
Clear away all values in the property.
|
CollectionProperty |
clone() |
boolean |
equals(Object o)
Determines if the two objects are equal by comparing names and values
|
JMeterProperty |
get(int row) |
Object |
getObjectValue() |
protected Class<? extends JMeterProperty> |
getPropertyType()
Figures out what kind of properties this collection is holding and
returns the class type.
|
String |
getStringValue() |
int |
hashCode() |
boolean |
isEmpty() |
PropertyIterator |
iterator()
Get the property iterator to iterate through the sub-values of this
JMeterProperty.
|
void |
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time
setRunningVersion(true) was called.
|
void |
remove(int index) |
void |
remove(String prop) |
void |
set(int index,
JMeterProperty prop) |
void |
set(int index,
String prop) |
void |
setCollection(Collection<?> coll) |
void |
setObjectValue(Object v) |
void |
setRunningVersion(boolean running)
Make the property a running version or turn it off as the running
version.
|
int |
size() |
mergeIn, recoverRunningVersionOfSubElements
compareTo, convertObject, createProperty, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, isEqualType, isRunningVersion, makeProperty, normalizeList, normalizeMap, setName, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public CollectionProperty(String name, Collection<?> value)
public CollectionProperty()
public boolean equals(Object o)
AbstractProperty
equals
in class AbstractProperty
public int hashCode()
AbstractProperty
hashCode
in class AbstractProperty
public void remove(String prop)
public void set(int index, String prop)
public void set(int index, JMeterProperty prop)
public JMeterProperty get(int row)
public void remove(int index)
public void setObjectValue(Object v)
public PropertyIterator iterator()
iterator
in interface Iterable<JMeterProperty>
iterator
in class MultiProperty
public String getStringValue()
public Object getObjectValue()
public int size()
public boolean isEmpty()
public CollectionProperty clone()
clone
in interface JMeterProperty
clone
in class AbstractProperty
public void setCollection(Collection<?> coll)
public void clear()
clear
in class MultiProperty
public void addProperty(JMeterProperty prop)
addProperty
in class MultiProperty
prop
- the JMeterProperty
to addpublic void addItem(Object item)
protected Class<? extends JMeterProperty> getPropertyType()
getPropertyType
in class AbstractProperty
AbstractProperty.getPropertyType()
public void recoverRunningVersion(TestElement owner)
owner
- the owning elementpublic void setRunningVersion(boolean running)
setRunningVersion
in interface JMeterProperty
setRunningVersion
in class MultiProperty
running
- flag whether this property is a running versionCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.