Apache JMeter | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
Field Summary | |
protected static Logger |
Constructor Summary | |
|
Method Summary | |
Object |
|
int |
|
protected JMeterProperty |
|
static JMeterProperty |
|
boolean |
|
protected JMeterProperty | |
protected static JMeterProperty |
|
boolean |
|
double |
|
float |
|
int |
|
protected PropertyIterator |
|
long |
|
String |
|
protected Class |
|
int |
|
protected boolean |
|
boolean |
|
protected static JMeterProperty |
|
void |
|
protected Collection |
|
protected Map |
|
void |
|
void |
|
String |
|
public int compareTo(Object arg0)
Compares two JMeterProperty object values. N.B. Does not compare names
- Parameters:
arg0
- JMeterProperty to compare against
- Returns:
- 0 if equal values or both values null; -1 otherwise
- See Also:
Comparable.compareTo(Object)
public boolean equals(Object o)
Determines if the two objects are equal by comparing names and values
- Returns:
- true if names are equal and values are equal (or both null)
public boolean getBooleanValue()
Returns false if string is invalid or null.
- Specified by:
- getBooleanValue in interface JMeterProperty
- See Also:
JMeterProperty.getBooleanValue()
public double getDoubleValue()
Returns 0 if string is invalid or null.
- Specified by:
- getDoubleValue in interface JMeterProperty
- See Also:
JMeterProperty.getDoubleValue()
public float getFloatValue()
Returns 0 if string is invalid or null.
- Specified by:
- getFloatValue in interface JMeterProperty
- See Also:
JMeterProperty.getFloatValue()
public int getIntValue()
Returns 0 if string is invalid or null.
- Specified by:
- getIntValue in interface JMeterProperty
- See Also:
JMeterProperty.getIntValue()
public long getLongValue()
Returns 0 if string is invalid or null.
- Specified by:
- getLongValue in interface JMeterProperty
- See Also:
JMeterProperty.getLongValue()
public String getName()
The name of the property. Typically this should match the name that keys the property's location in the test elements Map.
- Specified by:
- getName in interface JMeterProperty
- Returns:
- String
protected Class getPropertyType()
Get the property type for this property. Used to convert raw values into JMeterProperties.
public int hashCode()
public boolean isRunningVersion()
Returns whether the property is a running version.
- Specified by:
- isRunningVersion in interface JMeterProperty
- Returns:
- boolean
protected static JMeterProperty makeProperty(Object item)
Create a JMeterProperty from an object.
- Parameters:
item
- object to be turned into a propery
- Returns:
- the JMeterProperty
public void mergeIn(JMeterProperty prop)
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
- Parameters:
prop
-
protected Collection normalizeList(Collection coll)
protected Map normalizeMap(Map coll)
Given a Map, it converts the Map into a collection of JMeterProperty objects, appropriate for a MapProperty object.
public void setName(String name)
Set the property name.
- Specified by:
- setName in interface JMeterProperty
- Parameters:
name
-
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
- Parameters:
runningVersion
-
public String toString()
Provides the string representation of the property.
- Returns:
- the string value