public interface ISearchService
Modifier and Type | Method and Description |
---|---|
ISearchIterator |
createSearchInWorkbookIterator(ISearchParams searchParams)
Searches all occurrences of a pattern in the workbook and returns the iterator.
|
ISearchIterator |
createSearchInWorkbookIterator(ISearchParams searchParams,
int startWorksheetId,
IRangeAddress startAddress)
Searches all occurrences of a pattern in the workbook and returns the iterator.
|
ISearchIterator |
createSearchInWorksheetIterator(ISearchParams searchParams,
int worksheetId)
Searches all occurrences of a pattern in the selected worksheet and returns the iterator.
|
ISearchIterator |
createSearchInWorksheetIterator(ISearchParams searchParams,
int worksheetId,
IRangeAddress startAddress)
Searches all occurrences of a pattern in the selected worksheet and returns the iterator.
|
ISearchParams.ISearchParamsBuilder |
createSearchParamsBuilder()
Creates the builder for the
ISearchParams |
Stream<ISearchResultItem> |
search(ISearchParams searchParams)
Searches all occurrences of a pattern in a workbook and returns a stream of the found elements.
|
Stream<ISearchResultItem> |
search(ISearchParams searchParams,
int worksheetId)
Searches all occurrences of the pattern in the selected worksheet and returns the iterator
It's unsafe to modify the cells of the worksheet during the process due to the nature of the streams
|
ISearchIterator createSearchInWorkbookIterator(ISearchParams searchParams)
To use the ISearchIterator
replacement functionality the
ISearchParams.SearchTarget
is to be set to FORMULA.
searchParams
- the search parametersISearchIterator.replace(String)
,
ISearchIterator.replaceRemaining(String)
ISearchIterator createSearchInWorkbookIterator(ISearchParams searchParams, int startWorksheetId, IRangeAddress startAddress)
To use the ISearchIterator
replacement functionality the
ISearchParams.SearchTarget
is to be set to FORMULA.
searchParams
- the search parametersstartWorksheetId
- the id of the worksheet where the search startsstartAddress
- the address where the search startsISearchIterator.replace(String)
,
ISearchIterator.replaceRemaining(String)
ISearchIterator createSearchInWorksheetIterator(ISearchParams searchParams, int worksheetId)
searchParams
- the search parametersworksheetId
- the id of the worksheetISearchIterator createSearchInWorksheetIterator(ISearchParams searchParams, int worksheetId, IRangeAddress startAddress)
searchParams
- the search parametersworksheetId
- the id of the worksheetstartAddress
- the address where the search startsStream<ISearchResultItem> search(ISearchParams searchParams)
searchParams
- the search parametersStream<ISearchResultItem> search(ISearchParams searchParams, int worksheetId)
searchParams
- the search parametersworksheetId
- the id of the worksheetISearchParams.ISearchParamsBuilder createSearchParamsBuilder()
ISearchParams
Copyright © 2024. All rights reserved.