public class OrConditionService extends Object implements ConditionService<OrCondition>
ConditionService
for conditions of type OrCondition
.Constructor and Description |
---|
OrConditionService() |
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(OrCondition condition,
org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.
|
boolean |
evaluateChangedValues(OrCondition condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.
|
Set<UniqueSetting> |
getConditionSettings(OrCondition 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(OrCondition condition)
The Set of
VDomainModelReference that are relevant for the condition. |
public org.eclipse.emf.ecore.EClass getConditionType()
ConditionService
getConditionType
in interface ConditionService<OrCondition>
Condition
public Set<UniqueSetting> getConditionSettings(OrCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionService
UniqueSetting
that are relevant for the provided condition and domain model.getConditionSettings
in interface ConditionService<OrCondition>
condition
- The Condition
to get the UniqueSettings fordomainModel
- The EObject
to use for retrievingpublic boolean evaluate(OrCondition condition, org.eclipse.emf.ecore.EObject domainModel)
ConditionService
evaluate
in interface ConditionService<OrCondition>
condition
- The Condition to evaluatedomainModel
- The root domain object of this condition.true
, if the condition matches, false
otherwisepublic boolean evaluateChangedValues(OrCondition condition, org.eclipse.emf.ecore.EObject domainModel, Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
ConditionService
evaluateChangedValues
in interface ConditionService<OrCondition>
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(OrCondition condition)
ConditionService
VDomainModelReference
that are relevant for the condition.getDomainModelReferences
in interface ConditionService<OrCondition>
condition
- The Condition
to retrieve the VDMRs forprotected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
Copyright © 2019. All rights reserved.