Class QlCachedScopeProvider

    • Constructor Detail

      • QlCachedScopeProvider

        public QlCachedScopeProvider()
    • Method Detail

      • addDbViewScope

        public void addDbViewScope​(org.eclipse.core.resources.IProject project,
                                   org.eclipse.xtext.scoping.IScope dbViewScope)
        Description copied from interface: IQlCachedScopeProvider
        Adds new value of IScope containing DbViewElement corresponding to the MdObject
        Specified by:
        addDbViewScope in interface IQlCachedScopeProvider
        Parameters:
        project - actual project, can't be null
        dbViewScope - IScope corresponding to the DbViewElement, can't be null
      • getDbViewScope

        public org.eclipse.xtext.scoping.IScope getDbViewScope​(org.eclipse.core.resources.IProject project)
        Description copied from interface: IQlCachedScopeProvider
        Gets actual IScope corresponding to the DbViewElement by IProject
        Specified by:
        getDbViewScope in interface IQlCachedScopeProvider
        Parameters:
        project - actual IProject, can't be null
        Returns:
        IScope corresponding to the DbViewElement or null if scope wasn't cached for this project
      • setDbViewScope

        public void setDbViewScope​(String querySchemaText,
                                   String operatorText,
                                   org.eclipse.xtext.scoping.IScope scope)
        Description copied from interface: IQlCachedScopeProvider
        Sets new value of IScope
        Specified by:
        setDbViewScope in interface IQlCachedScopeProvider
        Parameters:
        querySchemaText - corresponding to the QuerySchema - the first key for caching scope, can't be null
        operatorText - corresponding to the QuerySchemaOperator - the second key for caching scope, can't be null
        scope - IScope of the caching elements corresponding to the scope, can't be null
      • getScope

        public org.eclipse.xtext.scoping.IScope getScope​(String querySchemaText,
                                                         String operatorText)
        Description copied from interface: IQlCachedScopeProvider
        Gets cached value of IScope by text presentation of QuerySchema and QuerySchemaOperator
        Specified by:
        getScope in interface IQlCachedScopeProvider
        Parameters:
        querySchemaText - corresponding to the QuerySchema - the first key for caching scope, can't be null
        operatorText - corresponding to the QuerySchemaOperator - the second key for caching scope, can't be null
        Returns:
        IScope of the caching elements corresponding to the scope, can be null in case when there is no anything cached values