Class IntegerProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.NumberProperty
org.apache.jmeter.testelement.property.IntegerProperty
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<JMeterProperty>
,JMeterProperty
- See Also:
-
Field Summary
Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Returns false if string is invalid or null.double
Returns 0 if string is invalid or null.float
Returns 0 if string is invalid or null.int
Returns 0 if string is invalid or null.long
Returns 0 if string is invalid or null.void
recoverRunningVersion
(org.apache.jmeter.testelement.TestElement owner) Tell the property to revert to the state at the time setRunningVersion(true) was called.protected void
Set the value of the property with a Number object.protected void
Set the value of the property with a String object.void
setRunningVersion
(boolean runningVersion) Make the property a running version or turn it off as the running version.void
setValue
(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 Details
-
IntegerProperty
-
IntegerProperty
-
IntegerProperty
public IntegerProperty()
-
-
Method Details
-
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:
setRunningVersion
in interfaceJMeterProperty
- Overrides:
setRunningVersion
in classAbstractProperty
- Parameters:
runningVersion
- flag whether this property is a running version
-
recoverRunningVersion
public 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
-
setValue
public void setValue(int value) -
setNumberValue
Set the value of the property with a Number object.- Specified by:
setNumberValue
in classNumberProperty
- Parameters:
n
- the value to set
-
setNumberValue
Set the value of the property with a String object.- Specified by:
setNumberValue
in classNumberProperty
- Parameters:
n
- the number to set as a string representation- Throws:
NumberFormatException
- if the numbern
can not be converted to aNumber
-
getStringValue
- See Also:
-
getObjectValue
- See Also:
-
clone
- Specified by:
clone
in interfaceJMeterProperty
- Overrides:
clone
in classAbstractProperty
-
getBooleanValue
public boolean getBooleanValue()Description copied from class:AbstractProperty
Returns false if string is invalid or null.- Specified by:
getBooleanValue
in interfaceJMeterProperty
- Overrides:
getBooleanValue
in classAbstractProperty
- See Also:
-
getDoubleValue
public double getDoubleValue()Description copied from class:AbstractProperty
Returns 0 if string is invalid or null.- Specified by:
getDoubleValue
in interfaceJMeterProperty
- Overrides:
getDoubleValue
in classAbstractProperty
- See Also:
-
getFloatValue
public float getFloatValue()Description copied from class:AbstractProperty
Returns 0 if string is invalid or null.- Specified by:
getFloatValue
in interfaceJMeterProperty
- Overrides:
getFloatValue
in classAbstractProperty
- See Also:
-
getIntValue
public int getIntValue()Description copied from class:AbstractProperty
Returns 0 if string is invalid or null.- Specified by:
getIntValue
in interfaceJMeterProperty
- Overrides:
getIntValue
in classAbstractProperty
- See Also:
-
getLongValue
public long getLongValue()Description copied from class:AbstractProperty
Returns 0 if string is invalid or null.- Specified by:
getLongValue
in interfaceJMeterProperty
- Overrides:
getLongValue
in classAbstractProperty
- See Also:
-