Interface ConditionIF
- All Superinterfaces:
ConfigurableItemIF,IdentifierAble,Serializable
- All Known Subinterfaces:
OperatorIF
- All Known Implementing Classes:
AndFunction,Condition,NotAndFunction,NotOrFunction,Operator,OrFunction,XOrFunction
General function returning a boolean value on source and target
elements.
- Version:
- 10.1.1
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(MappingElementIF source, MappingElementIF target) Evaluate the condition for the given source, target and glue.booleanevaluate(MappingElementList source, MappingElementList target) Evaluate the condition for the given sources and targets.evaluateScore(MappingElementIF source, MappingElementIF target) Evaluate the condition for the given source, target and glue.evaluateScoreWithConditionCheck(MappingElementIF source, MappingElementIF target) filter(MappingElementIF referenceElement, MappingElementList filterElements, ExpressionContext context) Filter a list of mapping elements with this condition.Methods inherited from interface de.mid.innovator.m2msdk.model.transformation.interfaces.ConfigurableItemIF
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getItem, getKnownParameters, getName, getParentItem, getParentItem, setBaseItem, setConfigurationContext, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Method Details
-
evaluate
boolean evaluate(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException Evaluate the condition for the given source, target and glue.- Parameters:
source- Source model element; may not be nulltarget- Target model element; may be null, e.g. when used in source match- Returns:
- true, if source, target and glue fulfill the condition
- Throws:
AbortException- critical errorSevereException- condition failedRemoteExceptionM2MException- generic exceptionRemoteException- exception from remote execution
-
evaluate
boolean evaluate(MappingElementList source, MappingElementList target) throws M2MException, RemoteException Evaluate the condition for the given sources and targets. The function may define if it is true for all elements or not.- Parameters:
source- source model elementstarget- glued target model elements- Returns:
- true, if the boolean function is true for the source and target elements.
- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
filter
MappingElementList filter(MappingElementIF referenceElement, MappingElementList filterElements, ExpressionContext context) throws M2MException, RemoteException Filter a list of mapping elements with this condition. Each model element in the result evaluates with this condition to true.- Parameters:
referenceElement- Reference Element, to which the filter elements should be compared tofilterElements- Filter Elements, which are compared to the referenceElementcontext- context containing the elements to filter in this elements- Returns:
- List of filter mapping elements
- Throws:
RemoteException- communication errorM2MException- application error
-
evaluateScore
ValidatingScore evaluateScore(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException Evaluate the condition for the given source, target and glue.- Parameters:
source- Source model element; may not be nulltarget- Target model element; may be null, e.g. when used in source match- Returns:
- score showing how good the elements fit the condition
- Throws:
M2MException- application errorRemoteException- communication error
-
evaluateScoreWithConditionCheck
ValidatingScore evaluateScoreWithConditionCheck(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-