org.eclipse.emf.ecp.view.spi.rule.model
Interface Condition

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
AndCondition, LeafCondition, OrCondition
All Known Implementing Classes:
AndConditionImpl, ConditionImpl, LeafConditionImpl, OrConditionImpl

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
 boolean evaluate()
          Evaluates the given condition.
 boolean evaluateChangedValues(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
          Evaluates the given condition.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

evaluate

boolean evaluate()
Evaluates the given condition.

Returns:
true, if the condition matches, false otherwise

evaluateChangedValues

boolean evaluateChangedValues(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.

Parameters:
possibleNewValues - the new value that should be compared against the expected value of the condition
Returns:
true, if the condition matches, false otherwise


Copyright © 2014. All Rights Reserved.