public abstract class AbstractProperty extends java.lang.Object implements JMeterProperty
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
AbstractProperty() |
AbstractProperty(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
AbstractProperty |
clone() |
int |
compareTo(JMeterProperty arg0)
Compares two JMeterProperty object values.
|
protected JMeterProperty |
convertObject(java.lang.Object item) |
static JMeterProperty |
createProperty(java.lang.Object item) |
boolean |
equals(java.lang.Object o)
Determines if the two objects are equal by comparing names and values
|
protected JMeterProperty |
getBlankProperty() |
protected static JMeterProperty |
getBlankProperty(java.lang.Object item) |
boolean |
getBooleanValue()
Returns false if string is invalid or null.
|
double |
getDoubleValue()
Returns 0 if string is invalid or null.
|
float |
getFloatValue()
Returns 0 if string is invalid or null.
|
int |
getIntValue()
Returns 0 if string is invalid or null.
|
protected PropertyIterator |
getIterator(java.util.Collection<JMeterProperty> values) |
long |
getLongValue()
Returns 0 if string is invalid or null.
|
java.lang.String |
getName()
The name of the property.
|
protected java.lang.Class<? extends JMeterProperty> |
getPropertyType()
Get the property type for this property.
|
int |
hashCode() |
protected boolean |
isEqualType(JMeterProperty prop) |
boolean |
isRunningVersion()
Returns whether the property is a running version.
|
protected static JMeterProperty |
makeProperty(java.lang.Object item)
Create a JMeterProperty from an object.
|
void |
mergeIn(JMeterProperty prop)
Take the given property object and merge it's value with the current
property object.
|
protected java.util.Collection<JMeterProperty> |
normalizeList(java.util.Collection<?> coll)
Convert a collection of objects into JMeterProperty objects.
|
protected java.util.Map<java.lang.String,JMeterProperty> |
normalizeMap(java.util.Map<?,?> coll)
Given a Map, it converts the Map into a collection of JMeterProperty
objects, appropriate for a MapProperty object.
|
void |
setName(java.lang.String name)
Set the property name.
|
void |
setRunningVersion(boolean runningVersion)
Make the property a running version or turn it off as the running
version.
|
java.lang.String |
toString()
Provides the string representation of the property.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
getObjectValue, getStringValue, recoverRunningVersion, setObjectValue
public AbstractProperty(java.lang.String name)
public AbstractProperty()
protected boolean isEqualType(JMeterProperty prop)
public boolean isRunningVersion()
isRunningVersion
in interface JMeterProperty
public java.lang.String getName()
getName
in interface JMeterProperty
public void setName(java.lang.String name)
setName
in interface JMeterProperty
name
- the name of the propertypublic void setRunningVersion(boolean runningVersion)
setRunningVersion
in interface JMeterProperty
runningVersion
- flag whether this property is a running versionprotected PropertyIterator getIterator(java.util.Collection<JMeterProperty> values)
public AbstractProperty clone()
clone
in interface JMeterProperty
clone
in class java.lang.Object
public int getIntValue()
getIntValue
in interface JMeterProperty
JMeterProperty.getIntValue()
public long getLongValue()
getLongValue
in interface JMeterProperty
JMeterProperty.getLongValue()
public double getDoubleValue()
getDoubleValue
in interface JMeterProperty
JMeterProperty.getDoubleValue()
public float getFloatValue()
getFloatValue
in interface JMeterProperty
JMeterProperty.getFloatValue()
public boolean getBooleanValue()
getBooleanValue
in interface JMeterProperty
JMeterProperty.getBooleanValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(JMeterProperty arg0)
compareTo
in interface java.lang.Comparable<JMeterProperty>
arg0
- JMeterProperty to compare againstComparable.compareTo(Object)
protected java.lang.Class<? extends JMeterProperty> getPropertyType()
protected JMeterProperty getBlankProperty()
protected static JMeterProperty getBlankProperty(java.lang.Object item)
protected java.util.Collection<JMeterProperty> normalizeList(java.util.Collection<?> coll)
coll
- Collection of any type of objectprotected java.util.Map<java.lang.String,JMeterProperty> normalizeMap(java.util.Map<?,?> coll)
coll
- Map to convertpublic static JMeterProperty createProperty(java.lang.Object item)
protected static JMeterProperty makeProperty(java.lang.Object item)
item
- object to be turned into a propertyprotected JMeterProperty convertObject(java.lang.Object item)
public java.lang.String toString()
toString
in class java.lang.Object
public void mergeIn(JMeterProperty prop)
mergeIn
in interface JMeterProperty
prop
- the property object to merge into this propertyCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.