public class IsProxyConditionService extends Object
IsProxyCondition.| Constructor and Description |
|---|
IsProxyConditionService()
Initializes me.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<? extends Condition> |
components(IsProxyCondition condition)
Obtains the nested conditions in a composite
condition of my type. |
boolean |
evaluate(C condition,
org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.
|
boolean |
evaluateChangedValues(C condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.
|
Set<UniqueSetting> |
getConditionSettings(IsProxyCondition 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(IsProxyCondition condition)
The Set of
VDomainModelReference that are relevant for the condition. |
protected List<? extends org.eclipse.emf.ecore.EObject> |
getTargets(IsProxyCondition condition,
org.eclipse.emf.ecore.EObject domainModel)
Obtains the objects on which a
condition is evaluated. |
public org.eclipse.emf.ecore.EClass getConditionType()
ConditionServiceConditionprotected Iterable<? extends Condition> components(IsProxyCondition condition)
condition of my type.condition - the composite condition from which to get componentscondition's zero or more nested conditions that are its componentsprotected List<? extends org.eclipse.emf.ecore.EObject> getTargets(IsProxyCondition condition, org.eclipse.emf.ecore.EObject domainModel)
condition is evaluated.condition - a composite condition of my typedomainModel - the source from which to navigate to obtain the targets for evaluation
of the conditionpublic Set<VDomainModelReference> getDomainModelReferences(IsProxyCondition condition)
ConditionServiceVDomainModelReference that are relevant for the condition.getDomainModelReferences in interface ConditionService<IsProxyCondition>condition - The Condition to retrieve the VDMRs forpublic Set<UniqueSetting> getConditionSettings(IsProxyCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionServiceUniqueSetting that are relevant for the provided condition and domain model.getConditionSettings in interface ConditionService<IsProxyCondition>condition - The Condition to get the UniqueSettings fordomainModel - The EObject to use for retrievingpublic boolean evaluate(C condition,
org.eclipse.emf.ecore.EObject domainModel)
ConditionServiceevaluate in interface ConditionService<C extends Condition>condition - The Condition to evaluatedomainModel - The root domain object of this condition.true, if the condition matches, false otherwisepublic boolean evaluateChangedValues(C condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
ConditionServiceevaluateChangedValues in interface ConditionService<C extends Condition>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 © 2020. All rights reserved.