Package de.mid.innovator.srv2api.icw2ac
Class ANDestroyLinkHelper
java.lang.Object
de.mid.innovator.srv2api.icw2ac.ANDestroyLinkHelper
This action destroys a link or a link object. Link objects can also be destroyed with DestroyObjectAction. The link is specified
in the same way as link creation, even for link objects. This allows actions to remain unchanged when their associations are
transformed from ordinary ones to association classes and vice versa.
DestroyLinkAction uses a specialization of LinkEndData, called LinkEndDestructionData, to support ordered nonunique
associations. The position of the link to be destroyed is specified at runtime by an additional input pin, which is required for
ordered nonunique association ends and omitted for other kinds of ends. This is a positive integer giving the position of the
link to destroy.
DestroyLinkAction also uses LinkEndDestructionData to support the destruction of duplicate links of the association on
ends that are nonunique. This option is available on an end-by-end basis and causes all duplicate links of the association emanating
from the specified ends to be destroyed.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ANDestroyLinkcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, ELElement ohRequirement) Create a new Destroy Link Action with template and container with requirement.static ANDestroyLinkcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, ELElement ohRequirement) Create a new Destroy Link Action with stereotype and container with requirement.
-
Method Details
-
create
public static ANDestroyLink create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Destroy 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 ANDestroyLink create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Destroy 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
-