Class QlDerivedStateComputer.GetterObjectByType

  • Enclosing class:
    QlDerivedStateComputer

    public static class QlDerivedStateComputer.GetterObjectByType
    extends Object
    Special class for creating lazy proxy for Ql
    • Constructor Summary

      Constructors 
      Constructor Description
      GetterObjectByType​(org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter)  
    • Constructor Detail

      • GetterObjectByType

        public GetterObjectByType​(org.eclipse.xtext.scoping.IScopeProvider scopeProvider,
                                  org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter)
    • Method Detail

      • getAllObjects

        public <T extends org.eclipse.emf.ecore.EObject> List<T> getAllObjects​(org.eclipse.emf.ecore.resource.Resource resource,
                                                                               org.eclipse.emf.ecore.EClass clazz)
        Gets all objects of define types
        Parameters:
        resource - Resource for getting objects, can be null
        clazz - class of getting objects, can't be null
        Returns:
        list of object of defined class, or null if resource == null
      • getAllObjects

        public <T extends org.eclipse.emf.ecore.EObject> List<T> getAllObjects​(org.eclipse.emf.ecore.EObject object,
                                                                               org.eclipse.emf.ecore.EClass clazz)
        Gets all objects of define types
        Parameters:
        resource - Resource for getting objects, can be null
        clazz - class of getting objects, can't be null
        Returns:
        list of object of defined class, or null if resource == null
      • createProxyForDbView

        public <T extends org.eclipse.emf.ecore.EObject> void createProxyForDbView​(Collection<T> list,
                                                                                   org.eclipse.emf.ecore.EStructuralFeature context,
                                                                                   org.eclipse.emf.ecore.EReference eRef,
                                                                                   org.eclipse.xtext.linking.lazy.LazyURIEncoder encoder)
        Creates proxy for each object in list. Proxy is created for define feature (eRef)
        Parameters:
        list - list of objects, can't be null
        context - actual context, can't be null
        eRef - actual feature for creating proxy, can't be null
      • createProxyForFunction

        public <T extends org.eclipse.emf.ecore.EObject> void createProxyForFunction​(Collection<T> list,
                                                                                     org.eclipse.emf.ecore.EReference eRef,
                                                                                     org.eclipse.xtext.linking.lazy.LazyURIEncoder encoder)
        Creates proxy for each object in list. Proxy is created for define feature (eRef)
        Parameters:
        list - list of objects, can't be null
        eRef - actual feature for creating proxy, can't be null
      • discardProxy

        public <T extends org.eclipse.emf.ecore.EObject> void discardProxy​(Collection<T> list,
                                                                           org.eclipse.emf.ecore.EReference eRef)
        Discard proxy for each object in list. Proxy is discarded for define feature (eRef)
        Parameters:
        list - list of objects, can't be null
        eRef - actual feature for creating proxy, can't be null
      • discardProxyForFunction

        public void discardProxyForFunction​(Collection<FunctionInvocationExpression> list)
        Discard proxy for each object in list. Proxy is discarded for define feature (eRef) Proxy will be discarded if it is lazy proxy
        Parameters:
        list - list of objects, can't be null