Package com._1c.g5.v8.dt.ql.refactoring
Class AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.refactoring.AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage
-
- All Implemented Interfaces:
IFullTextSearchSupplier
,FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- Direct Known Subclasses:
DcsQueryFullTextSearchRefactoringSupplier
,RightQlFullTextSearchRefactoringSupplier
,RightTemplateFullTextSearchRefactoringSupplier
public abstract class AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage extends Object implements FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
Abstract implementation ofFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
contains special method for filtering full text search results for refactoring in Ql language family
-
-
Constructor Summary
Constructors Constructor Description AbstractFullTextSearchRefactoringSupplierForQlSemanticLanguage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Collection<IDtMatchProvider>
filterSearchResultForNonTopObject(IBmObject context, Map<IBmObject,Collection<IDtMatchProvider>> groupsByObject)
Filters results not match for renamed non top objectprotected Collection<IDtMatchProvider>
filterSearchResultForTopObject(MdObject context, Map<IBmObject,Collection<IDtMatchProvider>> groupsByObject, String oldName)
Filters results not match for renamed top objectprotected abstract String
getQueryContent(IBmObject object)
Gets Ql(QlDcs) query for filtering full text search resultsCollection<String>
getSearchStrings(org.eclipse.emf.ecore.EObject context, String oldName)
Generates strings for full text search by renaming element and its original nameSearchType
getSearchType()
The target search type for the FTS searchboolean
isObjectTextAttribute(IBmObject bmObject)
Checks that refactoring for this object does not link withIFile
corresponding to thebmObject
protected boolean
isSingleWord(DtMatch result)
Checks thatresult
whole word-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.refactoring.FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
createChanges, createChanges, getGroupingBmObject, getMatches
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.IFullTextSearchSupplier
filterSearchResult
-
-
-
-
Method Detail
-
isObjectTextAttribute
public boolean isObjectTextAttribute(IBmObject bmObject)
Description copied from interface:IFullTextSearchSupplier
Checks that refactoring for this object does not link withIFile
corresponding to thebmObject
- Specified by:
isObjectTextAttribute
in interfaceIFullTextSearchSupplier
- Parameters:
bmObject
- object which has attribute changing in refactoring, cannot benull
- Returns:
true
if refactoring for this object does not link withIFile
corresponding to thebmObject
,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 interfaceIFullTextSearchSupplier
- Parameters:
context
- renaming element, cannot benull
oldName
- original name, cannot benull
- 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 benull
groupsByObject
- full text search results grouping by the model objects, cannot benull
oldName
- old name of the renamed object, cannot benull
- 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 benull
groupsByObject
- full text search results grouping by the model objects, cannot benull
oldName
- old name of the renamed object, cannot benull
- 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 benull
- Returns:
- Ql(QlDcs) query for filtering full text search results, never
null
-
isSingleWord
protected boolean isSingleWord(DtMatch result)
Checks thatresult
whole word- Parameters:
result
- checking full text search result, cannot benull
- Returns:
true
if result corresponding to the whole word,false
otherwise
-
getSearchType
public SearchType getSearchType()
Description copied from interface:FullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
The target search type for the FTS search- Specified by:
getSearchType
in interfaceFullTextSearchRefactoringParticipant.IFullTextSearchRefactoringSupplier
- Returns:
- The index type. May not be
null
a
-
-