com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class RegexSearchOptions



  • public final class RegexSearchOptions
    extends Object

    Provides the options for search with regular expressions.

    • Constructor Detail

      • RegexSearchOptions

        public RegexSearchOptions()

        Initializes a new instance of the RegexSearchOptions class.

      • RegexSearchOptions

        public RegexSearchOptions(SearchHighlightOptions highlightOptions)

        Initializes a new instance of the RegexSearchOptions class.

        Parameters:
        highlightOptions - Options of highlight.
      • RegexSearchOptions

        public RegexSearchOptions(SearchHighlightOptions highlightOptions,
                          WordSeparators wordSeparators)

        Initializes a new instance of the RegexSearchOptions class.

        Parameters:
        highlightOptions - Options of highlight.
        wordSeparators - An instance of WordSeparators.
    • Method Detail

      • getHighlightOptions

        public SearchHighlightOptions getHighlightOptions()

        Gets options of highlight.

        Returns:
        A size of highlight.
      • getWordSeparators

        public WordSeparators getWordSeparators()

        Gets an instance of WordSeparators which is used to check separator characters.

        Returns:
        An instance of WordSeparators.
      • createLeftHighlightOptions

        public HighlightOptions createLeftHighlightOptions(int position)

        Creates an instance of HighlightOptions for the left highlight.

        Parameters:
        position - A zero-based position of found text.
        Returns:
        An instance of HighlightOptions for the left highlight.
      • createRightHighlightOptions

        public HighlightOptions createRightHighlightOptions(int position)

        Creates an instance of HighlightOptions for the right highlight.

        Parameters:
        position - The zero-based position of the found text.
        Returns:
        An instance of HighlightOptions for the right highlight.