Class NotOrFunction
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.function.Operator
de.mid.innovator.m2msdk.model.transformation.function.NotOrFunction
- All Implemented Interfaces:
ConditionIF,OperatorIF,ConfigurableItemIF,IdentifierAble,Serializable
This function ors the included functions and negates the results.
- Version:
- 11.5.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
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 class de.mid.innovator.m2msdk.model.transformation.function.Operator
getKnownParameters, isNeutral, isNeutral, setConfigurationContext, toStringMethods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setId, setParentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.mid.innovator.m2msdk.model.transformation.interfaces.ConfigurableItemIF
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
NotOrFunction
public NotOrFunction()
-
-
Method Details
-
evaluate
public boolean evaluate(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException Description copied from interface:ConditionIFEvaluate 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:
M2MException- generic exceptionRemoteExceptionRemoteException- exception from remote execution
-
filter
public MappingElementList filter(MappingElementIF referenceElement, MappingElementList filterElements, ExpressionContext context) throws M2MException, RemoteException Description copied from interface:ConditionIFFilter 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:
M2MException- application errorRemoteException- communication error
-
evaluate
public boolean evaluate(MappingElementList source, MappingElementList target) throws M2MException, RemoteException Description copied from interface:ConditionIFEvaluate 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
-
evaluateScore
public ValidatingScore evaluateScore(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException Description copied from interface:ConditionIFEvaluate 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
public ValidatingScore evaluateScoreWithConditionCheck(MappingElementIF source, MappingElementIF target) throws M2MException, RemoteException - Throws:
M2MExceptionRemoteException
-