public class Argument extends AbstractTestElement implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARG_NAME
Name used to store the argument's name.
|
static java.lang.String |
DESCRIPTION
Name used to store the argument's description.
|
static java.lang.String |
METADATA
Name used to store the argument's metadata.
|
static java.lang.String |
VALUE
Name used to store the argument's value.
|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
Argument()
Create a new Argument without a name, value, or metadata.
|
Argument(java.lang.String name,
java.lang.String value)
Create a new Argument with the specified name and value, and no metadata.
|
Argument(java.lang.String name,
java.lang.String value,
java.lang.String metadata)
Create a new Argument with the specified name, value, and metadata.
|
Argument(java.lang.String name,
java.lang.String value,
java.lang.String metadata,
java.lang.String description)
Create a new Argument with the specified name, value, and metadata.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets the Meta Data attribute of the Argument.
|
java.lang.String |
getMetaData()
Gets the Meta Data attribute of the Argument.
|
java.lang.String |
getName()
Get the name of the Argument.
|
java.lang.String |
getValue()
Gets the value of the Argument object.
|
boolean |
isSkippable(java.lang.String parameterName)
Is this parameter skippable, i.e. empty/blank string
or it looks like an unrecognised variable.
|
void |
setDescription(java.lang.String description)
Sets the Description attribute of the Argument.
|
void |
setMetaData(java.lang.String newMetaData)
Sets the Meta Data attribute of the Argument.
|
void |
setName(java.lang.String newName)
Set the name of the Argument.
|
void |
setValue(java.lang.String newValue)
Sets the value of the Argument.
|
java.lang.String |
toString() |
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
finalize, getClass, notify, notifyAll, wait, wait, wait
removed
public static final java.lang.String ARG_NAME
public static final java.lang.String VALUE
public static final java.lang.String DESCRIPTION
public static final java.lang.String METADATA
public Argument()
public Argument(java.lang.String name, java.lang.String value)
name
- the argument namevalue
- the argument valuepublic Argument(java.lang.String name, java.lang.String value, java.lang.String metadata)
name
- the argument namevalue
- the argument valuemetadata
- the argument metadatapublic Argument(java.lang.String name, java.lang.String value, java.lang.String metadata, java.lang.String description)
name
- the argument namevalue
- the argument valuemetadata
- the argument metadatadescription
- the argument descriptionpublic void setName(java.lang.String newName)
setName
in interface TestElement
setName
in class AbstractTestElement
newName
- the new namepublic java.lang.String getName()
getName
in interface TestElement
getName
in class AbstractTestElement
public void setValue(java.lang.String newValue)
newValue
- the new valuepublic java.lang.String getValue()
public void setDescription(java.lang.String description)
description
- the new descriptionpublic java.lang.String getDescription()
public void setMetaData(java.lang.String newMetaData)
newMetaData
- the new metadatapublic java.lang.String getMetaData()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isSkippable(java.lang.String parameterName)
parameterName
- - parameter nameCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.