public class AndConditionService extends Object implements ConditionService<AndCondition>
ConditionService for conditions of type AndCondition.| Constructor and Description |
|---|
AndConditionService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets activated.
|
protected void |
deactivate(org.osgi.framework.BundleContext bundleContext)
Called by the framework when the component gets deactivated.
|
boolean |
evaluate(AndCondition condition,
org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.
|
boolean |
evaluateChangedValues(AndCondition condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.
|
Set<UniqueSetting> |
getConditionSettings(AndCondition 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(AndCondition condition)
The Set of
VDomainModelReference that are relevant for the condition. |
public org.eclipse.emf.ecore.EClass getConditionType()
ConditionServicegetConditionType in interface ConditionService<AndCondition>Conditionpublic Set<UniqueSetting> getConditionSettings(AndCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionServiceUniqueSetting that are relevant for the provided condition and domain model.getConditionSettings in interface ConditionService<AndCondition>condition - The Condition to get the UniqueSettings fordomainModel - The EObject to use for retrievingpublic boolean evaluate(AndCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionServiceevaluate in interface ConditionService<AndCondition>condition - The Condition to evaluatedomainModel - The root domain object of this condition.true, if the condition matches, false otherwisepublic boolean evaluateChangedValues(AndCondition condition, org.eclipse.emf.ecore.EObject domainModel, Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
ConditionServiceevaluateChangedValues in interface ConditionService<AndCondition>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 otherwisepublic Set<VDomainModelReference> getDomainModelReferences(AndCondition condition)
ConditionServiceVDomainModelReference that are relevant for the condition.getDomainModelReferences in interface ConditionService<AndCondition>condition - The Condition to retrieve the VDMRs forprotected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext - The BundleContextprotected void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext - The BundleContextCopyright © 2017. All rights reserved.