Class IsProxyConditionService

    • Constructor Detail

      • IsProxyConditionService

        public IsProxyConditionService()
        Initializes me.
    • Method Detail

      • getConditionType

        public org.eclipse.emf.ecore.EClass getConditionType()
        Description copied from interface: ConditionService
        The EClass this ConditionService is implemented for.
        Returns:
        The EClass of the Condition
      • components

        protected java.lang.Iterable<? extends Condition> components​(IsProxyCondition condition)
        Obtains the nested conditions in a composite condition of my type.
        Parameters:
        condition - the composite condition from which to get components
        Returns:
        the condition's zero or more nested conditions that are its components
      • getTargets

        protected java.util.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.
        Parameters:
        condition - a composite condition of my type
        domainModel - the source from which to navigate to obtain the targets for evaluation of the condition
        Returns:
        the evaluation targets
      • evaluate

        public boolean evaluate​(C condition,
                                org.eclipse.emf.ecore.EObject domainModel)
        Description copied from interface: ConditionService
        Evaluates the given condition.
        Specified by:
        evaluate in interface ConditionService<C extends Condition>
        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​(C 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<C extends Condition>
        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