Package org.apache.jmeter.config
Class Argument
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.Argument
- All Implemented Interfaces:
- Serializable,- Cloneable,- Searchable,- org.apache.jmeter.testelement.TestElement
- Direct Known Subclasses:
- HTTPArgument
Class representing an argument. Each argument consists of a name/value pair,
 as well as (optional) metadata.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName used to store the argument's name.static final StringName used to store the argument's description.static final StringName used to store the argument's metadata.static final StringName used to store the argument's value.Fields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructorsConstructorDescriptionArgument()Create a new Argument without a name, value, or metadata.Create a new Argument with the specified name and value, and no metadata.Create a new Argument with the specified name, value, and metadata.Create a new Argument with the specified name, value, and metadata.
- 
Method SummaryModifier and TypeMethodDescriptionGets the Meta Data attribute of the Argument.Gets the Meta Data attribute of the Argument.getName()Get the name of the Argument.org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends Argument,? extends org.apache.jmeter.config.ArgumentSchema> getProps()org.apache.jmeter.config.ArgumentSchemagetValue()Gets the value of the Argument object.booleanisSkippable(String parameterName) Is this parameter skippable, i.e.voidsetDescription(String description) Sets the Description attribute of the Argument.voidsetMetaData(String newMetaData) Sets the Meta Data attribute of the Argument.voidSet the name of the Argument.voidSets the value of the Argument.toString()Methods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, 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, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Field Details- 
ARG_NAMEName used to store the argument's name.- See Also:
 
- 
VALUEName used to store the argument's value.- See Also:
 
- 
DESCRIPTIONName used to store the argument's description.- See Also:
 
- 
METADATAName used to store the argument's metadata.- See Also:
 
 
- 
- 
Constructor Details- 
Argumentpublic Argument()Create a new Argument without a name, value, or metadata.
- 
ArgumentCreate a new Argument with the specified name and value, and no metadata.- Parameters:
- name- the argument name
- value- the argument value
 
- 
ArgumentCreate a new Argument with the specified name, value, and metadata.- Parameters:
- name- the argument name
- value- the argument value
- metadata- the argument metadata
 
- 
ArgumentCreate a new Argument with the specified name, value, and metadata.- Parameters:
- name- the argument name
- value- the argument value
- metadata- the argument metadata
- description- the argument description
 
 
- 
- 
Method Details- 
getSchemapublic org.apache.jmeter.config.ArgumentSchema getSchema()- Specified by:
- getSchemain interface- org.apache.jmeter.testelement.TestElement
 
- 
getPropspublic org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends Argument,? extends org.apache.jmeter.config.ArgumentSchema> getProps()- Specified by:
- getPropsin interface- org.apache.jmeter.testelement.TestElement
 
- 
setNameSet the name of the Argument.- Specified by:
- setNamein interface- org.apache.jmeter.testelement.TestElement
- Overrides:
- setNamein class- AbstractTestElement
- Parameters:
- newName- the new name
 
- 
getNameGet the name of the Argument.- Specified by:
- getNamein interface- org.apache.jmeter.testelement.TestElement
- Overrides:
- getNamein class- AbstractTestElement
- Returns:
- the attribute's name
 
- 
setValueSets the value of the Argument.- Parameters:
- newValue- the new value
 
- 
getValueGets the value of the Argument object.- Returns:
- the attribute's value
 
- 
setDescriptionSets the Description attribute of the Argument.- Parameters:
- description- the new description
 
- 
getDescriptionGets the Meta Data attribute of the Argument.- Returns:
- the MetaData value
 
- 
setMetaDataSets the Meta Data attribute of the Argument.- Parameters:
- newMetaData- the new metadata
 
- 
getMetaDataGets the Meta Data attribute of the Argument.- Returns:
- the MetaData value
 
- 
toString
- 
isSkippableIs this parameter skippable, i.e. empty/blank string or it looks like an unrecognised variable.- Parameters:
- parameterName- - parameter name
- Returns:
- true if parameter should be skipped
 
 
-