Interface Condition
-
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
AndCondition
,False
,IsProxyCondition
,IterateCondition
,LeafCondition
,NotCondition
,OrCondition
,True
- All Known Implementing Classes:
AndConditionImpl
,ConditionImpl
,FalseImpl
,IsProxyConditionImpl
,IterateConditionImpl
,LeafConditionImpl
,NotConditionImpl
,OrConditionImpl
,TrueImpl
public interface Condition extends org.eclipse.emf.ecore.EObject
A representation of the model object 'Condition'.- Since:
- 1.2
- See Also:
RulePackage.getCondition()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.boolean
evaluateChangedValues(org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,java.lang.Object> possibleNewValues)
Evaluates the given condition.
-
-
-
Method Detail
-
evaluate
boolean evaluate(org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.- Parameters:
domainModel
- The root domain object of this condition.- Returns:
true
, if the condition matches,false
otherwise- Since:
- 1.9
-
evaluateChangedValues
boolean evaluateChangedValues(org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,java.lang.Object> possibleNewValues)
Evaluates the given condition.- Parameters:
domainModel
- The root domain object of this condition.possibleNewValues
- the new value that should be compared against the expected value of the condition- Returns:
true
, if the condition matches,false
otherwise- Since:
- 1.9
-
-