Package de.mid.innovator.srv2api.icw2ac
Class ANCreateLinkHelper
java.lang.Object
de.mid.innovator.srv2api.icw2ac.ANCreateLinkHelper
This action can be used to create links and link objects. There is no return value in either case. This is so that no change of the
action is required if the association is changed to an association class or vice versa. CreateLinkAction uses a specialization of
LinkEndData, called LinkEndCreationData, to support ordered associations. The insertion point is specified at runtime by an
additional input pin which is required for ordered association ends and omitted for unordered ends. The insertion point is a
positive integer that gives the position where the link should be inserted or unlimited which means that the link is inserted at the end. Reinserting an existing end at a new
position in an ordered unique structural feature moves the end to that position.
CreateLinkAction also uses LinkEndCreationData to support the destruction of existing links of the association that connect
any of the objects of the new link. When the link is created, this option is available on an end-by-end basis and causes all links
of the association emanating from the specified ends to be destroyed before the new link is created.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ANCreateLinkcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, ELElement ohRequirement) Create a new Create Link Action with template and container with requirement.static ANCreateLinkcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, ELElement ohRequirement) Create a new Create Link Action with stereotype and container with requirement.
-
Method Details
-
create
public static ANCreateLink create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Create Link Action with stereotype and container with requirement.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ANCreateLink create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Create Link Action with template and container with requirement.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-