Apache JMeter
1.9

org.apache.jmeter.testelement.property
Class TestElementProperty

java.lang.Object
  |
  +--org.apache.jmeter.testelement.property.AbstractProperty
        |
        +--org.apache.jmeter.testelement.property.MultiProperty
              |
              +--org.apache.jmeter.testelement.property.TestElementProperty
All Implemented Interfaces:
Cloneable, Comparable, JMeterProperty, Serializable

public class TestElementProperty
extends MultiProperty

Version:
$Revision: 1.11 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log
 
Constructor Summary
TestElementProperty()
           
TestElementProperty(String name, TestElement value)
           
 
Method Summary
 void addProperty(JMeterProperty prop)
          Add a property to the collection.
 void clear()
          Clear away all values in the property.
 Object clone()
           
 boolean equals(Object o)
           
 TestElement getElement()
           
 Object getObjectValue()
           
 String getStringValue()
           
 PropertyIterator iterator()
          Get the property iterator to iterate through the sub-values of this JMeterProperty.
 void mergeIn(JMeterProperty prop)
          Take the given property object and merge it's value with the current property object.
 void recoverRunningVersion(TestElement owner)
          Tell the property to revert to the state at the time setRunningVersion(true) was called.
 void setElement(TestElement el)
           
 void setObjectValue(Object v)
           
 void setRunningVersion(boolean runningVersion)
          Make the property a running version or turn it off as the running version.
 
Methods inherited from class org.apache.jmeter.testelement.property.MultiProperty
recoverRunningVersionOfSubElements, setTemporary
 
Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty
clearTemporary, compareTo, convertObject, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getName, getPropertyType, isEqualType, isRunningVersion, isTemporary, normalizeList, normalizeMap, setName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestElementProperty

public TestElementProperty(String name,
                           TestElement value)

TestElementProperty

public TestElementProperty()
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface JMeterProperty
Overrides:
equals in class AbstractProperty

getStringValue

public String getStringValue()

setObjectValue

public void setObjectValue(Object v)

getObjectValue

public Object getObjectValue()

getElement

public TestElement getElement()

setElement

public void setElement(TestElement el)

clone

public Object clone()
Specified by:
clone in interface JMeterProperty
Overrides:
clone in class AbstractProperty

mergeIn

public void mergeIn(JMeterProperty prop)
Description copied from interface: JMeterProperty
Take 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:
mergeIn in interface JMeterProperty
Overrides:
mergeIn in class MultiProperty
Parameters:
prop -

recoverRunningVersion

public void recoverRunningVersion(TestElement owner)
Description copied from interface: JMeterProperty
Tell the property to revert to the state at the time setRunningVersion(true) was called.

Specified by:
recoverRunningVersion in interface JMeterProperty
Overrides:
recoverRunningVersion in class AbstractProperty
See Also:
JMeterProperty.recoverRunningVersion(TestElement)

setRunningVersion

public void setRunningVersion(boolean runningVersion)
Description copied from interface: JMeterProperty
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 class MultiProperty
Parameters:
runningVersion -

addProperty

public void addProperty(JMeterProperty prop)
Description copied from class: MultiProperty
Add a property to the collection.

Specified by:
addProperty in class MultiProperty

clear

public void clear()
Description copied from class: MultiProperty
Clear away all values in the property.

Specified by:
clear in class MultiProperty

iterator

public PropertyIterator iterator()
Description copied from class: MultiProperty
Get the property iterator to iterate through the sub-values of this JMeterProperty.

Specified by:
iterator in class MultiProperty
Returns:
an iterator for the sub-values of this property

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.