Class OrConditionService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
      Evaluates the given condition.
      java.util.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.
      java.util.Set<VDomainModelReference> getDomainModelReferences​(OrCondition condition)
      The Set of VDomainModelReference that are relevant for the condition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrConditionService

        public OrConditionService()
    • Method Detail

      • getConditionSettings

        public java.util.Set<UniqueSetting> getConditionSettings​(OrCondition condition,
                                                                 org.eclipse.emf.ecore.EObject domainModel)
        Description copied from interface: ConditionService
        The set of UniqueSetting that are relevant for the provided condition and domain model.
        Specified by:
        getConditionSettings in interface ConditionService<OrCondition>
        Parameters:
        condition - The Condition to get the UniqueSettings for
        domainModel - The EObject to use for retrieving
        Returns:
        The Set of UniqueSettings. This Set must not be null.
      • evaluate

        public boolean evaluate​(OrCondition condition,
                                org.eclipse.emf.ecore.EObject domainModel)
        Description copied from interface: ConditionService
        Evaluates the given condition.
        Specified by:
        evaluate in interface ConditionService<OrCondition>
        Parameters:
        condition - The Condition to evaluate
        domainModel - The root domain object of this condition.
        Returns:
        true, if the condition matches, false otherwise
      • evaluateChangedValues

        public boolean evaluateChangedValues​(OrCondition condition,
                                             org.eclipse.emf.ecore.EObject domainModel,
                                             java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
        Description copied from interface: ConditionService
        Evaluates the given condition.
        Specified by:
        evaluateChangedValues in interface ConditionService<OrCondition>
        Parameters:
        condition - The Condition to evaluate
        domainModel - The root domain object of this condition.
        possibleNewValues - the new value that should be compared against the expected value of the condition
        Returns:
        true, if the condition matches, false otherwise
      • activate

        protected void activate​(org.osgi.framework.BundleContext bundleContext)
        Called by the framework when the component gets activated.
        Parameters:
        bundleContext - The BundleContext
      • deactivate

        protected void deactivate​(org.osgi.framework.BundleContext bundleContext)
        Called by the framework when the component gets deactivated.
        Parameters:
        bundleContext - The BundleContext