Class LongProperty
- java.lang.Object
-
- org.apache.jmeter.testelement.property.AbstractProperty
-
- org.apache.jmeter.testelement.property.NumberProperty
-
- org.apache.jmeter.testelement.property.LongProperty
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<JMeterProperty>,JMeterProperty
public class LongProperty extends NumberProperty
- Version:
- $Revision: 1413956 $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log
-
-
Constructor Summary
Constructors Constructor Description LongProperty()LongProperty(String name, long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongPropertyclone()booleangetBooleanValue()Returns false if string is invalid or null.doublegetDoubleValue()Returns 0 if string is invalid or null.floatgetFloatValue()Returns 0 if string is invalid or null.intgetIntValue()Returns 0 if string is invalid or null.longgetLongValue()Returns 0 if string is invalid or null.ObjectgetObjectValue()StringgetStringValue()voidrecoverRunningVersion(TestElement owner)Tell the property to revert to the state at the time setRunningVersion(true) was called.protected voidsetNumberValue(Number n)Set the value of the property with a Number object.protected voidsetNumberValue(String n)Set the value of the property with a String object.voidsetRunningVersion(boolean runningVersion)Make the property a running version or turn it off as the running version.voidsetValue(int value)-
Methods inherited from class org.apache.jmeter.testelement.property.NumberProperty
compareTo, setObjectValue
-
Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty
convertObject, createProperty, equals, getBlankProperty, getBlankProperty, getIterator, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, toString
-
-
-
-
Constructor Detail
-
LongProperty
public LongProperty(String name, long value)
-
LongProperty
public LongProperty()
-
-
Method Detail
-
setRunningVersion
public void setRunningVersion(boolean runningVersion)
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 interfaceJMeterProperty- Overrides:
setRunningVersionin classAbstractProperty- Parameters:
runningVersion- flag whether this property is a running version
-
recoverRunningVersion
public void recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.- Parameters:
owner- the owning element
-
setValue
public void setValue(int value)
-
setNumberValue
protected void setNumberValue(Number n)
Set the value of the property with a Number object.- Specified by:
setNumberValuein classNumberProperty- Parameters:
n- the value to set
-
setNumberValue
protected void setNumberValue(String n) throws NumberFormatException
Set the value of the property with a String object.- Specified by:
setNumberValuein classNumberProperty- Parameters:
n- the number to set as a string representation- Throws:
NumberFormatException- if the numberncan not be converted to aNumber
-
getStringValue
public String getStringValue()
- See Also:
JMeterProperty.getStringValue()
-
getObjectValue
public Object getObjectValue()
- See Also:
JMeterProperty.getObjectValue()
-
clone
public LongProperty clone()
- Specified by:
clonein interfaceJMeterProperty- Overrides:
clonein classAbstractProperty
-
getBooleanValue
public boolean getBooleanValue()
Description copied from class:AbstractPropertyReturns false if string is invalid or null.- Specified by:
getBooleanValuein interfaceJMeterProperty- Overrides:
getBooleanValuein classAbstractProperty- See Also:
JMeterProperty.getBooleanValue()
-
getDoubleValue
public double getDoubleValue()
Description copied from class:AbstractPropertyReturns 0 if string is invalid or null.- Specified by:
getDoubleValuein interfaceJMeterProperty- Overrides:
getDoubleValuein classAbstractProperty- See Also:
JMeterProperty.getDoubleValue()
-
getFloatValue
public float getFloatValue()
Description copied from class:AbstractPropertyReturns 0 if string is invalid or null.- Specified by:
getFloatValuein interfaceJMeterProperty- Overrides:
getFloatValuein classAbstractProperty- See Also:
JMeterProperty.getFloatValue()
-
getIntValue
public int getIntValue()
Description copied from class:AbstractPropertyReturns 0 if string is invalid or null.- Specified by:
getIntValuein interfaceJMeterProperty- Overrides:
getIntValuein classAbstractProperty- See Also:
JMeterProperty.getIntValue()
-
getLongValue
public long getLongValue()
Description copied from class:AbstractPropertyReturns 0 if string is invalid or null.- Specified by:
getLongValuein interfaceJMeterProperty- Overrides:
getLongValuein classAbstractProperty- See Also:
JMeterProperty.getLongValue()
-
-