public class DeleteAttributeFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.DeleteAttributeFragmentImpl 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 DeleteAttributeFragment("myAttribute")); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
Constructor and Description |
---|
DeleteAttributeFragment(String name)
Instantiates a fragment to delete a DOORS attribute.
|
public DeleteAttributeFragment(String name)
name
- the name of the attribute to be deleted.