org.apache.jmeter.testelement.property

Class LongProperty

Implemented Interfaces:
Cloneable, Comparable, JMeterProperty, Serializable

public class LongProperty
extends NumberProperty

Version:
$Revision: 674365 $

Field Summary

Fields inherited from class org.apache.jmeter.testelement.property.AbstractProperty

log

Constructor Summary

LongProperty()
LongProperty(String name, long value)

Method Summary

Object
clone()
boolean
getBooleanValue()
double
getDoubleValue()
float
getFloatValue()
int
getIntValue()
long
getLongValue()
Object
getObjectValue()
String
getStringValue()
void
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time setRunningVersion(true) was called.
protected void
setNumberValue(Number n)
protected void
setNumberValue(String n)
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, setNumberValue, setNumberValue, setObjectValue

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

Constructor Details

LongProperty

public LongProperty()

LongProperty

public LongProperty(String name,
                    long value)

Method Details

clone

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

getBooleanValue

public boolean getBooleanValue()
Specified by:
getBooleanValue in interface JMeterProperty
Overrides:
getBooleanValue in interface AbstractProperty

getDoubleValue

public double getDoubleValue()
Specified by:
getDoubleValue in interface JMeterProperty
Overrides:
getDoubleValue in interface AbstractProperty

getFloatValue

public float getFloatValue()
Specified by:
getFloatValue in interface JMeterProperty
Overrides:
getFloatValue in interface AbstractProperty

getIntValue

public int getIntValue()
Specified by:
getIntValue in interface JMeterProperty
Overrides:
getIntValue in interface AbstractProperty

getLongValue

public long getLongValue()
Specified by:
getLongValue in interface JMeterProperty
Overrides:
getLongValue in interface AbstractProperty

getObjectValue

public Object getObjectValue()
Specified by:
getObjectValue in interface JMeterProperty

getStringValue

public String getStringValue()
Specified by:
getStringValue in interface JMeterProperty

recoverRunningVersion

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

setNumberValue

protected void setNumberValue(Number n)
Overrides:
setNumberValue in interface NumberProperty

setNumberValue

protected void setNumberValue(String n)
            throws NumberFormatException
Overrides:
setNumberValue in interface NumberProperty

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 interface JMeterProperty
Overrides:
setRunningVersion in interface AbstractProperty
Parameters:
runningVersion -

setValue

public void setValue(int value)

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