org.squashtest.tm.domain.testcase
Class Parameter

java.lang.Object
  extended by org.squashtest.tm.domain.testcase.Parameter
All Implemented Interfaces:
Identified

@Entity
public class Parameter
extends Object
implements Identified


Field Summary
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 Summary
Parameter()
           
Parameter(String name)
           
Parameter(String name, TestCase testCase)
           
 
Method Summary
protected static Set<String> findUsedParameterNamesInString(String content)
           
 String getDescription()
           
 Long getId()
           
 String getName()
           
 String getParamStringAsUsedInStep()
          Returns USAGE_PREFIX + name + USAGE_SUFFIX
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Parameter

public Parameter()

Parameter

public Parameter(String name)

Parameter

public Parameter(String name,
                 @NotNull
                 TestCase testCase)
Method Detail

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.