public class UpdateExternalLinkFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.UpdateExternalLinkFragmentImpl 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):
ObjectRef object = ObjectRef.absoluteNumber(1); ExternalLinkDirectionKind direction = ExternalLinkDirectionKind.OUTWARD_LITERAL; ExternalLinkOperationKind operation = ExternalLinkOperationKind.OPEN_AS_URL_LITERAL; String linkPath = "http://www.sodius.com"; ExternalLinkRef link = ExternalLinkRef.linkPath(object, direction, linkPath); ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditModuleCommand command = new EditModuleCommand(module, TerminationMode.SAVE_AND_CLOSE); command.add(new UpdateExternalLinkFragment(link, "New Name", "New description", direction, operation, linkPath)); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditModuleCommand
Constructor and Description |
---|
UpdateExternalLinkFragment(ExternalLinkRef link,
String name,
String description,
ExternalLinkDirectionKind direction,
ExternalLinkOperationKind operation,
String linkPath)
Instantiates a fragment to update the properties of an external link.
|
public UpdateExternalLinkFragment(ExternalLinkRef link, String name, String description, ExternalLinkDirectionKind direction, ExternalLinkOperationKind operation, String linkPath)
link
- the external link to update.name
- the new name to assign.description
- the new description to assign.direction
- the new link direction to assign.operation
- the new link behavior to assign.linkPath
- the new link path to assign.