Class JMSProperty
- java.lang.Object
-
- org.apache.jmeter.testelement.AbstractTestElement
-
- org.apache.jmeter.protocol.jms.sampler.JMSProperty
-
- All Implemented Interfaces:
Serializable,Cloneable,Searchable,TestElement
public class JMSProperty extends AbstractTestElement implements Serializable
JMS Property with type- Since:
- 2.11
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_NAMEName used to store the JmsProperty's name.static StringPROP_TYPEName used to store the JmsProperty's description.static StringPROP_VALUEName used to store the JmsProperty's value.-
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
-
Constructor Summary
Constructors Constructor Description JMSProperty()Create a new JmsProperty without a name, value, or metadata.JMSProperty(String name, String value)Create a new JmsProperty with the specified name and value, and String type.JMSProperty(String name, String value, String type)Create a new JmsProperty with the specified name and value, and String type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Get the name of the JmsProperty.StringgetType()Gets the Meta Data attribute of the JmsProperty.StringgetValue()Gets the value of the JmsProperty object.ObjectgetValueAsObject()voidsetName(String newName)Set the name of the JmsProperty.voidsetType(String type)Sets the Meta Data attribute of the JmsProperty.voidsetValue(String newValue)Sets the value of the JmsProperty.StringtoString()-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
-
-
-
-
Field Detail
-
PROP_NAME
public static final String PROP_NAME
Name used to store the JmsProperty's name.- See Also:
- Constant Field Values
-
PROP_VALUE
public static final String PROP_VALUE
Name used to store the JmsProperty's value.- See Also:
- Constant Field Values
-
PROP_TYPE
public static final String PROP_TYPE
Name used to store the JmsProperty's description.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JMSProperty
public JMSProperty()
Create a new JmsProperty without a name, value, or metadata.
-
JMSProperty
public JMSProperty(String name, String value)
Create a new JmsProperty with the specified name and value, and String type.- Parameters:
name- the prop namevalue- the prop value
-
-
Method Detail
-
setName
public void setName(String newName)
Set the name of the JmsProperty.- Specified by:
setNamein interfaceTestElement- Overrides:
setNamein classAbstractTestElement- Parameters:
newName- the new name
-
getName
public String getName()
Get the name of the JmsProperty.- Specified by:
getNamein interfaceTestElement- Overrides:
getNamein classAbstractTestElement- Returns:
- the attribute's name
-
setValue
public void setValue(String newValue)
Sets the value of the JmsProperty.- Parameters:
newValue- the new value
-
getValue
public String getValue()
Gets the value of the JmsProperty object.- Returns:
- the attribute's value
-
setType
public void setType(String type)
Sets the Meta Data attribute of the JmsProperty.- Parameters:
type- the new type
-
getType
public String getType()
Gets the Meta Data attribute of the JmsProperty.- Returns:
- the MetaData value
-
getValueAsObject
public Object getValueAsObject()
-
-