Class NotConditionService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Iterable<? extends Condition> components​(NotCondition 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, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
      Evaluates the given condition.
      java.util.Set<UniqueSetting> getConditionSettings​(C 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​(C condition)
      The Set of VDomainModelReference that are relevant for the condition.
      protected java.util.List<? extends org.eclipse.emf.ecore.EObject> getTargets​(C condition, org.eclipse.emf.ecore.EObject domainModel)
      Obtains the objects on which a condition is evaluated.
      • Methods inherited from class java.lang.Object

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

      • NotConditionService

        public NotConditionService()
        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​(NotCondition 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
      • getConditionSettings

        public java.util.Set<UniqueSetting> getConditionSettings​(C 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<C extends Condition>
        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.
      • getTargets

        protected java.util.List<? extends org.eclipse.emf.ecore.EObject> getTargets​(C 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