org.squashtest.tm.domain.testcase
Class Parameter
java.lang.Object
org.squashtest.tm.domain.testcase.Parameter
- All Implemented Interfaces:
- Identified
@Entity
public class Parameter
- extends Object
- implements Identified
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_REGEXP
public static final String NAME_REGEXP
- See Also:
- Constant Field Values
MIN_NAME_SIZE
public static final int MIN_NAME_SIZE
- See Also:
- Constant Field Values
MAX_NAME_SIZE
public static final int MAX_NAME_SIZE
- See Also:
- Constant Field Values
USAGE_PREFIX
public static final String USAGE_PREFIX
- See Also:
- Constant Field Values
USAGE_SUFFIX
public static final String USAGE_SUFFIX
- See Also:
- Constant Field Values
USAGE_PATTERN
public static final String USAGE_PATTERN
- See Also:
- Constant Field Values
Parameter
public Parameter()
Parameter
public Parameter(String name)
Parameter
public Parameter(String name,
@NotNull
TestCase testCase)
getName
public String getName()
setName
public void setName(String newName)
getDescription
public String getDescription()
setDescription
public void setDescription(@NotNull
String description)
getTestCase
public TestCase getTestCase()
setTestCase
public void setTestCase(@NotNull
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.
- Parameters:
testCase - - See Also:
TestCase.addParameter(Parameter)
getId
public Long getId()
- Specified by:
getId in interface Identified
getParamStringAsUsedInStep
public String getParamStringAsUsedInStep()
- Returns
USAGE_PREFIX + name + USAGE_SUFFIX
- Returns:
getParamStringAsUsedInStep
protected static String getParamStringAsUsedInStep(String parameterName)
- Returns
USAGE_PREFIX + p + USAGE_SUFFIX
- Parameters:
parameterName -
- Returns:
findUsedParameterNamesInString
protected static Set<String> findUsedParameterNamesInString(String content)
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.