Class MM2DerivationRuleHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.MM2DerivationRuleHelper
This is a utility class for MM2DerivationRule that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic MM2DerivationRulecreateConstraint(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) Create a new Stereotype.static MM2DerivationRulecreateRule(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) Create a new Stereotype.static MM2DerivationRulecreateStrength(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) Create a new Stereotype.
-
Method Details
-
createConstraint
public static MM2DerivationRule createConstraint(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) throws InoNetException, SrvErrorException Create a new Stereotype. The rule restricts derivations.- Parameters:
srvCtx- The context of the related innovator server.ohProfile- Profile for the element to be createdohStereotype- Selection for the element to be created- Throws:
InoNetExceptionSrvErrorException
-
createRule
public static MM2DerivationRule createRule(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) throws InoNetException, SrvErrorException Create a new Stereotype. The rule defines valid derivations.- Parameters:
srvCtx- The context of the related innovator server.ohProfile- Profile for the element to be createdohStereotype- Selection for the element to be created- Throws:
InoNetExceptionSrvErrorException
-
createStrength
public static MM2DerivationRule createStrength(SrvContext srvCtx, MMProfile ohProfile, MMStereotype ohStereotype) throws InoNetException, SrvErrorException Create a new Stereotype. The rule is used to order stereotypes by strength.- Parameters:
srvCtx- The context of the related innovator server.ohProfile- Profile for the element to be createdohStereotype- Selection for the element to be created- Throws:
InoNetExceptionSrvErrorException
-