public abstract class BaselineRef extends Object
Creating a reference instance does not execute anything on the DOORS client, it is just a way to get a pointer to an element on which commands are executed. The reference is only resolved to the actual element by the time the command is executed and may result in an element not being found.
Below is a snippet illustrating how to use a baseline reference (see CommandRunner
for a full snippet):
ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); BaselineRef baseline = BaselineRef.nextMajor(); CreateBaselineCommand command = new CreateBaselineCommand(module, baseline); myCommandRunner.run(command);
CommandRunner
,
CreateBaselineCommand
Constructor and Description |
---|
BaselineRef() |
Modifier and Type | Method and Description |
---|---|
static BaselineRef |
nextMajor()
Returns a reference to the next major baseline of a module.
|
static BaselineRef |
nextMajor(String suffix)
Returns a reference to the next major suffixed baseline of a module.
|
static BaselineRef |
nextMinor()
Returns a reference to the next minor baseline of a module.
|
static BaselineRef |
nextMinor(String suffix)
Returns a reference to the next minor suffixed baseline of a module.
|
public static BaselineRef nextMajor()
CreateBaselineCommand
command.public static BaselineRef nextMajor(String suffix)
CreateBaselineCommand
command.suffix
- the suffix to apply on the baselinepublic static BaselineRef nextMinor()
CreateBaselineCommand
command.public static BaselineRef nextMinor(String suffix)
CreateBaselineCommand
command.suffix
- the suffix to apply on the baseline