Class CLSubstitutionHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2class.CLSubstitutionHelper
-
public abstract class CLSubstitutionHelper extends java.lang.Object
A substitution is a relationship between two classifiers and signifies that the substituting classifier complies with the contract specified by the contract classifier. This implies that instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected.- See Also:
CLSubstitution
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLSubstitution
create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget)
Create a new Substitution with template from source to target element.static CLSubstitution
create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget)
Create a new Substitution with stereotype from source to target element.
-
-
-
Method Detail
-
create
public static CLSubstitution create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException
Create a new Substitution 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 CLSubstitution create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException
Create a new Substitution 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
-
-