Class QueryBasedFeatureSettingDelegateFactory

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate.Factory

    public class QueryBasedFeatureSettingDelegateFactory
    extends java.lang.Object
    implements org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate.Factory
    • Constructor Detail

      • QueryBasedFeatureSettingDelegateFactory

        public QueryBasedFeatureSettingDelegateFactory()
    • Method Detail

      • getDelayedFeatures

        protected java.util.Map<ViatraQueryEngine,​java.util.List<QueryBasedFeature>> getDelayedFeatures()
        Returns a live multimap associating all QBFs waiting to be initialized to each VQ engine. Note that the multimap is currently only ever expected to grow, never deleted from or cleaned up.
      • getEngineForNotifier

        protected AdvancedViatraQueryEngine getEngineForNotifier​(org.eclipse.emf.common.notify.Notifier notifier,
                                                                 boolean dynamicEMFMode)
      • getSettingDelegate

        public java.util.Optional<QueryBasedFeatureSettingDelegate> getSettingDelegate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
        Returns the setting delegate created by EMF for a query based feature. Users can call this method for query based features to manually initialize the QBF without having a specific object that has this feature. Call QueryBasedFeatureSettingDelegate.initializeSettingDelegate(Notifier) with the resource set on the returned value for initialization.
        Parameters:
        eStructuralFeature -
        Returns:
        the delegate wrapped in optional or absent if it is null or not a query based feature
        Since:
        2.0
      • createSettingDelegate

        public org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate createSettingDelegate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
        Specified by:
        createSettingDelegate in interface org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate.Factory
      • createSettingDelegate

        public org.eclipse.emf.ecore.EStructuralFeature.Internal.SettingDelegate createSettingDelegate​(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                                                                       IQuerySpecification<? extends ViatraQueryMatcher<? extends IPatternMatch>> querySpecification,
                                                                                                       boolean isResourceScope,
                                                                                                       boolean dynamicEMFMode)