public class LeafConditionService extends Object implements ConditionService<LeafCondition>
ConditionService
for conditions of type LeafCondition
.Constructor and Description |
---|
LeafConditionService() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(LeafCondition condition,
org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.
|
boolean |
evaluateChangedValues(LeafCondition condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.
|
Set<UniqueSetting> |
getConditionSettings(LeafCondition condition,
org.eclipse.emf.ecore.EObject domainModel)
The set of
UniqueSetting that are relevant for the provided condition and domain model. |
org.eclipse.emf.ecore.EClass |
getConditionType()
The EClass this ConditionService is implemented for.
|
Set<VDomainModelReference> |
getDomainModelReferences(LeafCondition condition)
The Set of
VDomainModelReference that are relevant for the condition. |
public org.eclipse.emf.ecore.EClass getConditionType()
ConditionService
getConditionType
in interface ConditionService<LeafCondition>
Condition
public Set<UniqueSetting> getConditionSettings(LeafCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionService
UniqueSetting
that are relevant for the provided condition and domain model.getConditionSettings
in interface ConditionService<LeafCondition>
condition
- The Condition
to get the UniqueSettings fordomainModel
- The EObject
to use for retrievingpublic Set<VDomainModelReference> getDomainModelReferences(LeafCondition condition)
ConditionService
VDomainModelReference
that are relevant for the condition.getDomainModelReferences
in interface ConditionService<LeafCondition>
condition
- The Condition
to retrieve the VDMRs forpublic boolean evaluate(LeafCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionService
evaluate
in interface ConditionService<LeafCondition>
condition
- The Condition to evaluatedomainModel
- The root domain object of this condition.true
, if the condition matches, false
otherwisepublic boolean evaluateChangedValues(LeafCondition condition, org.eclipse.emf.ecore.EObject domainModel, Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
ConditionService
evaluateChangedValues
in interface ConditionService<LeafCondition>
condition
- The Condition to evaluatedomainModel
- The root domain object of this condition.possibleNewValues
- the new value that should be compared against the expected value of the conditiontrue
, if the condition matches, false
otherwiseCopyright © 2016. All rights reserved.