public class DeleteLinkFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.DeleteLinkFragmentImpl implements ShareModuleFragment
This fragment is intended to be combined into an EditModuleCommand
instance.
Below is a snippet illustrating how to use this fragment (see CommandRunner
for a full snippet):
ModuleRef sourceModule = ModuleRef.qualifiedName("/MyFolder/MySourceModule"); ObjectRef sourceObject = ObjectRef.absoluteNumber(1); ModuleRef targetModule = ModuleRef.qualifiedName("/MyFolder/MyTargetModule"); ObjectRef targetObject = ObjectRef.absoluteNumber(5); ModuleRef linkModule = ModuleRef.defaultLinkModule(sourceModule, targetModule); LinkRef link = LinkRef.link(sourceObject, linkModule, targetModule, targetObject); EditModuleCommand command = new EditModuleCommand(sourceModule, TerminationMode.SAVE_AND_CLOSE); command.add(new DeleteLinkFragment(link)); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
,
CreateLinkFragment
Constructor and Description |
---|
DeleteLinkFragment(LinkRef link)
Instantiates a fragment to delete a link between two DOORS objects.
|
public DeleteLinkFragment(LinkRef link)
link
- the link to be deleted.