public class DeleteTypeFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.DeleteTypeFragmentImpl implements EditModuleFragment
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 module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditModuleCommand command = new EditModuleCommand(module, TerminationMode.SAVE_AND_CLOSE); command.add(new DeleteTypeFragment("myType")); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
Constructor and Description |
---|
DeleteTypeFragment(String name)
Instantiates a fragment to delete a DOORS type.
|
public DeleteTypeFragment(String name)
name
- the name of the type to be deleted.