| Apache JMeter | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.jmeter.testelement.property.AbstractPropertyorg.apache.jmeter.testelement.property.MultiPropertyorg.apache.jmeter.testelement.property.CollectionPropertypublic class CollectionPropertyextends MultiPropertyField Summary |
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty | |
log | |
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
boolean |
|
JMeterProperty |
|
Object | |
protected Class |
|
String | |
int |
|
PropertyIterator |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
int |
|
Methods inherited from class org.apache.jmeter.testelement.property.MultiProperty | |
addProperty, clear, iterator, mergeIn, recoverRunningVersionOfSubElements, setRunningVersion | |
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, mergeIn, normalizeList, normalizeMap, setName, setRunningVersion, toString | |
public CollectionProperty()
public CollectionProperty(String name,
Collection value)public void addItem(Object item)
public void addProperty(JMeterProperty prop)
Easy way to add properties to the list.
- Overrides:
- addProperty in interface MultiProperty
- Parameters:
prop-
public void clear()
Clear away all values in the property.
- Overrides:
- clear in interface MultiProperty
public Object clone()
- Specified by:
- clone in interface JMeterProperty
- Overrides:
- clone in interface AbstractProperty
public boolean equals(Object o)
Determines if the two objects are equal by comparing names and values
- Overrides:
- equals in interface AbstractProperty
- Returns:
- true if names are equal and values are equal (or both null)
protected Class getPropertyType()
Figures out what kind of properties this collection is holding and returns the class type.
- Overrides:
- getPropertyType in interface AbstractProperty
- See Also:
AbstractProperty.getPropertyType()
public PropertyIterator iterator()
Get the property iterator to iterate through the sub-values of this JMeterProperty.
- Overrides:
- iterator in interface MultiProperty
- Returns:
- an iterator for the sub-values of this property
public void recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.
- Specified by:
- recoverRunningVersion in interface JMeterProperty
public void remove(String prop)
public void remove(int index)
public void set(int index,
String prop)public void setCollection(Collection coll)
public void setObjectValue(Object v)
- Specified by:
- setObjectValue in interface JMeterProperty
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 interface JMeterProperty
- Overrides:
- setRunningVersion in interface MultiProperty
- Parameters:
public int size()