Class MEDependencyHelper

java.lang.Object
de.mid.innovator.srv2api.icw2model.MEDependencyHelper

public abstract class MEDependencyHelper extends Object
A dependency is a relationship that signifies that a single or a set of model elements requires other model elements for their specification or implementation. This means that the complete semantics of the depending elements is either semantically or structurally dependent on the definition of the supplier element(s).
See Also:
  • Method Details

    • getDependencySourceTargetList

      public static ARG_DependencySourceTargetListOut getDependencySourceTargetList(SrvContext srvCtx, Class<? extends ELObject> kVOclDependency, boolean isExactDependency, MMStereotype ohStereoDependency, Class<? extends ELObject> kVOclSource, boolean isExactSource, Class<? extends ELObject> kVOclTarget, boolean isExactTarget, boolean onlyExisting, List<? extends ADClientAble> seqSource, List<? extends ADClientAble> seqTarget) throws InoNetException, SrvErrorException
      Returns a list of all dependencies of the specified meta class. If a meta class is specified on source or target side only elements of this types are evaluated. The list may contain only the existing dependencies or all configured combinations.
      Parameters:
      srvCtx - The context of the related innovator server.
      kVOclDependency - meta class of required dependencies
      isExactDependency - isTrue/isFalse means dependency meta class is exact/conform
      ohStereoDependency - stereotype of required dependencies - maybe empty
      kVOclSource - meta class of source element
      isExactSource - isTrue/isFalse means source meta class is exact/conform
      kVOclTarget - meta class of target element
      isExactTarget - isTrue/isFalse means target meta class is exact/conform
      onlyExisting - isTrue/isFalse means only existing/all configured dependencies
      seqSource - list of selected elements on source side - maybe empty
      seqTarget - list of selected elements on target side - maybe empty
      Throws:
      InoNetException
      SrvErrorException
    • getMEDependencyAssignmentInfo

      public static List<ARG_MEDependencyAssignmentInfo> getMEDependencyAssignmentInfo(SrvContext srvCtx, List<? extends ELElement> seqSource, List<? extends ELElement> seqTarget, MMStereotype ohDepStereotype, ELContainerAble ohTransitiveParent) throws InoNetException, SrvErrorException
      Calculates for a quantity of elements its dependency assignments. Could be restricted to dependency stereotype and to other side element transitive owner.
      Parameters:
      srvCtx - The context of the related innovator server.
      seqSource - Source elements
      seqTarget - Target elements
      ohDepStereotype - Stereotype of Dependency, optional
      ohTransitiveParent - transitive parent element of calculated element, optional
      Throws:
      InoNetException
      SrvErrorException
    • create

      public static MEDependency create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException
      Create a new Dependency with stereotype from source to target element.
      Parameters:
      srvCtx - The context of the related innovator server.
      ohStereotype - Stereotype for the new element
      ohSource - Source for the new element
      ohTarget - Target for the new element
      Throws:
      InoNetException
      SrvErrorException
    • create

      public static MEDependency create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException
      Create a new Dependency with template from source to target element.
      Parameters:
      srvCtx - The context of the related innovator server.
      ohTemplate - Template for the new element
      ohSource - Source for the new element
      ohTarget - Target for the new element
      Throws:
      InoNetException
      SrvErrorException