Class FloatProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.NumberProperty
org.apache.jmeter.testelement.property.FloatProperty
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<JMeterProperty>,- JMeterProperty
- See Also:
- 
Field SummaryFields inherited from class org.apache.jmeter.testelement.property.AbstractPropertylog
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()booleanReturns false if string is invalid or null.doubleReturns 0 if string is invalid or null.floatReturns 0 if string is invalid or null.intReturns 0 if string is invalid or null.longReturns 0 if string is invalid or null.voidrecoverRunningVersion(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.protected voidSet the value of the property with a Number object.protected voidSet 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(float value) Methods inherited from class org.apache.jmeter.testelement.property.NumberPropertycompareTo, setObjectValueMethods inherited from class org.apache.jmeter.testelement.property.AbstractPropertyconvertObject, createProperty, equals, getBlankProperty, getBlankProperty, getIterator, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, toString
- 
Constructor Details- 
FloatProperty
- 
FloatPropertypublic FloatProperty()
 
- 
- 
Method Details- 
setRunningVersionpublic 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 interface- JMeterProperty
- Overrides:
- setRunningVersionin class- AbstractProperty
- Parameters:
- runningVersion- flag whether this property is a running version
 
- 
recoverRunningVersionpublic 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
 
- 
setValuepublic void setValue(float value) 
- 
setNumberValueSet the value of the property with a Number object.- Specified by:
- setNumberValuein class- NumberProperty
- Parameters:
- n- the value to set
 
- 
setNumberValueSet the value of the property with a String object.- Specified by:
- setNumberValuein class- NumberProperty
- Parameters:
- n- the number to set as a string representation
- Throws:
- NumberFormatException- if the number- ncan not be converted to a- Number
 
- 
getStringValue
- 
getObjectValue
- 
clone- Specified by:
- clonein interface- JMeterProperty
- Overrides:
- clonein class- AbstractProperty
 
- 
getBooleanValuepublic boolean getBooleanValue()Returns false if string is invalid or null.- Specified by:
- getBooleanValuein interface- JMeterProperty
- Overrides:
- getBooleanValuein class- AbstractProperty
- See Also:
 
- 
getDoubleValuepublic double getDoubleValue()Returns 0 if string is invalid or null.- Specified by:
- getDoubleValuein interface- JMeterProperty
- Overrides:
- getDoubleValuein class- AbstractProperty
- See Also:
 
- 
getFloatValuepublic float getFloatValue()Returns 0 if string is invalid or null.- Specified by:
- getFloatValuein interface- JMeterProperty
- Overrides:
- getFloatValuein class- AbstractProperty
- See Also:
 
- 
getIntValuepublic int getIntValue()Returns 0 if string is invalid or null.- Specified by:
- getIntValuein interface- JMeterProperty
- Overrides:
- getIntValuein class- AbstractProperty
- See Also:
 
- 
getLongValuepublic long getLongValue()Returns 0 if string is invalid or null.- Specified by:
- getLongValuein interface- JMeterProperty
- Overrides:
- getLongValuein class- AbstractProperty
- See Also:
 
 
-