Class AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage

    • Constructor Detail

      • AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage

        public AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage()
    • Method Detail

      • isObjectTextAttribute

        public boolean isObjectTextAttribute​(IBmObject bmObject)
        Description copied from interface: IFullTextSearchSupplier
        Checks that refactoring for this object does not link with IFile corresponding to the bmObject
        Specified by:
        isObjectTextAttribute in interface IFullTextSearchSupplier
        Parameters:
        bmObject - object which has attribute changing in refactoring, cannot be null
        Returns:
        true if refactoring for this object does not link with IFile corresponding to the bmObject, false otherwise
      • getSearchStrings

        public Collection<String> getSearchStrings​(org.eclipse.emf.ecore.EObject context,
                                                   String oldName)
        Description copied from interface: IFullTextSearchSupplier
        Generates strings for full text search by renaming element and its original name
        Specified by:
        getSearchStrings in interface IFullTextSearchSupplier
        Parameters:
        context - renaming element, cannot be null
        oldName - original name, cannot be null
        Returns:
        strings for full text search by renaming element and its original name, never null
      • filterSearchResultForTopObject

        protected Collection<IDtMatchProvider> filterSearchResultForTopObject​(MdObject context,
                                                                              Map<IBmObject,​Collection<IDtMatchProvider>> groupsByObject,
                                                                              String oldName)
        Filters results not match for renamed top object
        Parameters:
        context - actual renamed top object, cannot be null
        groupsByObject - full text search results grouping by the model objects, cannot be null
        oldName - old name of the renamed object, cannot be null
        Returns:
        right results for refactoring from full text search, never null
      • filterSearchResultForNonTopObject

        protected Collection<IDtMatchProvider> filterSearchResultForNonTopObject​(IBmObject context,
                                                                                 Map<IBmObject,​Collection<IDtMatchProvider>> groupsByObject)
        Filters results not match for renamed non top object
        Parameters:
        context - actual renamed non top object, cannot be null
        groupsByObject - full text search results grouping by the model objects, cannot be null
        oldName - old name of the renamed object, cannot be null
        Returns:
        right results for refactoring from full text search, never null
      • getQueryContent

        protected abstract String getQueryContent​(IBmObject object)
        Gets Ql(QlDcs) query for filtering full text search results
        Parameters:
        object - content object for getting query, cannot be null
        Returns:
        Ql(QlDcs) query for filtering full text search results, never null
      • isSingleWord

        protected boolean isSingleWord​(DtMatch result)
        Checks that result whole word
        Parameters:
        result - checking full text search result, cannot be null
        Returns:
        true if result corresponding to the whole word, false otherwise