public class RestoreModuleCommand extends CommandWrapper
Below is a snippet illustrating how to use this command (see CommandRunner
for a full snippet):
FolderRef folder = FolderRef.qualifiedName("/MyFolder"); File archiveLocation = new File("c:\\archives\\MyModule.dma"); RestoreModuleCommand command = new RestoreModuleCommand(archiveLocation, folder); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
ArchiveModuleCommand
Constructor and Description |
---|
RestoreModuleCommand(File archiveLocation,
FolderRef folder)
Instantiates a fragment to restore a DOORS module archive into the specified folder.
|
RestoreModuleCommand(File archiveLocation,
FolderRef folder,
String moduleName)
Instantiates a fragment to restore a DOORS module archive into the specified folder
and using the specified module name.
|
RestoreModuleCommand(URL archiveLocation,
FolderRef folder)
Instantiates a fragment to restore a DOORS module archive into the specified folder.
|
RestoreModuleCommand(URL archiveLocation,
FolderRef folder,
String moduleName)
Instantiates a fragment to restore a DOORS module archive into the specified folder
and using the specified module name.
|
public RestoreModuleCommand(URL archiveLocation, FolderRef folder)
archiveLocation
- a URL which resolves to a DOORS module archive.folder
- the folder in which the module must be restored.public RestoreModuleCommand(URL archiveLocation, FolderRef folder, String moduleName)
archiveLocation
- a URL which resolves to a DOORS module archive.folder
- the folder in which the module must be restored.moduleName
- the name to assign to the restored module.
The original name of the module, by the time the module was archived, is ignored.public RestoreModuleCommand(File archiveLocation, FolderRef folder)
archiveLocation
- the file path of a DOORS module archive.folder
- the folder in which the module must be restored.public RestoreModuleCommand(File archiveLocation, FolderRef folder, String moduleName)
archiveLocation
- the file path of a DOORS module archive.folder
- the folder in which the module must be restored.moduleName
- the name to assign to the restored module.
The original name of the module, by the time the module was archived, is ignored.