Class ADNConditionHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.ADNConditionHelper
This is a utility class for ADNCondition that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ADNConditioncreateNotificationCondition(SrvContext srvCtx, MM2Classification ohCL, boolean isExact, K_NOTIFY_CONDITION kCondition) Creates a newADNConditionwithMM2Classificationand condition kind.static List<ARG_XM2TypedElementProperties> getClassificationTypedElementInfo(SrvContext srvCtx, MM2Classification ohM2Cl, boolean withSpec) Returns a list of informations of all typed elements which may be used asADNConditionPropertywithin aADNConditionof the specifiedMM2Classification.static List<ARG_ConditionClassificationList> getConditionClassificationList(SrvContext srvCtx, ELElement item) Returns a list of all meta classes and stereotypes which may be used asMM2Classificationof aADNCondition.
-
Method Details
-
getClassificationTypedElementInfo
public static List<ARG_XM2TypedElementProperties> getClassificationTypedElementInfo(SrvContext srvCtx, MM2Classification ohM2Cl, boolean withSpec) throws InoNetException, SrvErrorException Returns a list of informations of all typed elements which may be used asADNConditionPropertywithin aADNConditionof the specifiedMM2Classification.- Parameters:
srvCtx- The context of the related innovator server.ohM2Cl- classification of required typed elementswithSpec- true, if all specializations of the classification are evaluated- Throws:
InoNetExceptionSrvErrorException
-
getConditionClassificationList
public static List<ARG_ConditionClassificationList> getConditionClassificationList(SrvContext srvCtx, ELElement item) throws InoNetException, SrvErrorException Returns a list of all meta classes and stereotypes which may be used asMM2Classificationof aADNCondition. The optionalELElementis used to restrict the possible classifications.- Parameters:
srvCtx- The context of the related innovator server.item- ELElement Optional Element- Throws:
InoNetExceptionSrvErrorException
-
createNotificationCondition
public static ADNCondition createNotificationCondition(SrvContext srvCtx, MM2Classification ohCL, boolean isExact, K_NOTIFY_CONDITION kCondition) throws InoNetException, SrvErrorException Creates a newADNConditionwithMM2Classificationand condition kind.- Parameters:
srvCtx- The context of the related innovator server.ohCL- classification of the notification conditionisExact- true, if the classification is evaluated exact otherwise conformkCondition- kind of the notification condition- Throws:
InoNetExceptionSrvErrorException
-