@Entity public class Parameter extends Object implements Identified
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NAME_SIZE |
static int |
MIN_NAME_SIZE |
static String |
NAME_REGEXP |
static String |
USAGE_PATTERN |
static String |
USAGE_PREFIX |
static String |
USAGE_SUFFIX |
| Constructor and Description |
|---|
Parameter() |
Parameter(String name) |
Parameter(String name,
TestCase testCase) |
| Modifier and Type | Method and Description |
|---|---|
static Parameter |
createBlankParameter() |
Parameter |
detachedCopy()
A detached copy means it belong to no test case yet
|
protected static Set<String> |
findUsedParameterNamesInString(String content) |
String |
getDescription() |
Long |
getId() |
String |
getName() |
String |
getParamStringAsUsedInStep()
|
protected static String |
getParamStringAsUsedInStep(String parameterName)
Returns
USAGE_PREFIX + p + USAGE_SUFFIX |
TestCase |
getTestCase() |
void |
setDescription(String description) |
void |
setName(String newName) |
void |
setTestCase(TestCase testCase)
This method set the test case of this parameter with the given test case and add this to the given test case's
parameters list.
|
public static final String NAME_REGEXP
public static final int MIN_NAME_SIZE
public static final int MAX_NAME_SIZE
public static final String USAGE_PREFIX
public static final String USAGE_SUFFIX
public static final String USAGE_PATTERN
public Parameter()
public Parameter(String name)
public Parameter detachedCopy()
public String getName()
public void setName(String newName)
public String getDescription()
public void setDescription(@NotNull
String description)
public TestCase getTestCase()
public void setTestCase(@NotNull
TestCase testCase)
testCase - TestCase.addParameter(Parameter)public Long getId()
getId in interface Identifiedpublic String getParamStringAsUsedInStep()
protected static String getParamStringAsUsedInStep(String parameterName)
USAGE_PREFIX + p + USAGE_SUFFIXparameterName - protected static Set<String> findUsedParameterNamesInString(String content)
public static Parameter createBlankParameter()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.