public class CreateFolderCommand extends CommandWrapper
The CreateProjectCommand
command shall be used to create a DOORS project.
Below is a snippet illustrating how to use this command (see CommandRunner
for a full snippet):
FolderRef folder = FolderRef.qualifiedName("/MyNewFolder"); CreateFolderCommand command = new CreateFolderCommand(folder); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
CreateProjectCommand
Constructor and Description |
---|
CreateFolderCommand(FolderRef folder)
Instantiates a command to create a new DOORS folder.
|
public CreateFolderCommand(FolderRef folder)
folder
- contains information on the folder to create.
The FolderRef
instance must be created with either FolderRef.qualifiedName()
or
FolderRef.name()
.
The creation of the folder will fail if the instance was created with either FolderRef.url()
or
FolderRef.uniqueID()
,
as those methods are meant to reference existing folders
and do not contain the necessary information to create one.FolderRef.qualifiedName(String)
,
FolderRef.name(FolderRef, String)