Class MEDependencyHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2model.MEDependencyHelper
-
public abstract class MEDependencyHelper extends java.lang.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:
MEDependency
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MEDependency
create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget)
Create a new Dependency with template from source to target element.static MEDependency
create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget)
Create a new Dependency with stereotype from source to target element.static ARG_DependencySourceTargetListOut
getDependencySourceTargetList(SrvContext srvCtx, java.lang.Class<? extends ELObject> kVOclDependency, boolean isExactDependency, MMStereotype ohStereoDependency, java.lang.Class<? extends ELObject> kVOclSource, boolean isExactSource, java.lang.Class<? extends ELObject> kVOclTarget, boolean isExactTarget, boolean onlyExisting, java.util.List<? extends ADClientAble> seqSource, java.util.List<? extends ADClientAble> seqTarget)
Returns a list of all dependencies of the specified meta class.static java.util.List<ARG_MEDependencyAssignmentInfo>
getMEDependencyAssignmentInfo(SrvContext srvCtx, java.util.List<? extends ELElement> seqSource, java.util.List<? extends ELElement> seqTarget, MMStereotype ohDepStereotype, ELContainerAble ohTransitiveParent)
Calculates for a quantity of elements its dependency assignments.
-
-
-
Method Detail
-
getDependencySourceTargetList
public static ARG_DependencySourceTargetListOut getDependencySourceTargetList(SrvContext srvCtx, java.lang.Class<? extends ELObject> kVOclDependency, boolean isExactDependency, MMStereotype ohStereoDependency, java.lang.Class<? extends ELObject> kVOclSource, boolean isExactSource, java.lang.Class<? extends ELObject> kVOclTarget, boolean isExactTarget, boolean onlyExisting, java.util.List<? extends ADClientAble> seqSource, java.util.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 dependenciesisExactDependency
- isTrue/isFalse means dependency meta class is exact/conformohStereoDependency
- stereotype of required dependencies - maybe emptykVOclSource
- meta class of source elementisExactSource
- isTrue/isFalse means source meta class is exact/conformkVOclTarget
- meta class of target elementisExactTarget
- isTrue/isFalse means target meta class is exact/conformonlyExisting
- isTrue/isFalse means only existing/all configured dependenciesseqSource
- list of selected elements on source side - maybe emptyseqTarget
- list of selected elements on target side - maybe empty- Throws:
InoNetException
SrvErrorException
-
getMEDependencyAssignmentInfo
public static java.util.List<ARG_MEDependencyAssignmentInfo> getMEDependencyAssignmentInfo(SrvContext srvCtx, java.util.List<? extends ELElement> seqSource, java.util.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 elementsseqTarget
- Target elementsohDepStereotype
- Stereotype of Dependency, optionalohTransitiveParent
- 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 elementohSource
- Source for the new elementohTarget
- 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 elementohSource
- Source for the new elementohTarget
- Target for the new element- Throws:
InoNetException
SrvErrorException
-
-