-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SearchService.Options implements Parcelable
Holds the available search options and their current values.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleancaseSensitiveprivate final BooleandiacriticSensitiveprivate final BooleanwholeWordprivate final Booleanexactprivate final Stringlanguageprivate final BooleanregularExpressionprivate final Map<String, String>otherOptions
-
Method Summary
Modifier and Type Method Description final BooleangetCaseSensitive()final BooleangetDiacriticSensitive()final BooleangetWholeWord()final BooleangetExact()final StringgetLanguage()final BooleangetRegularExpression()final Map<String, String>getOtherOptions()final Stringget(String key)Syntactic sugar to access the otherOptions values by subscripting Options directly. -
-
Constructor Detail
-
SearchService.Options
SearchService.Options(Boolean caseSensitive, Boolean diacriticSensitive, Boolean wholeWord, Boolean exact, String language, Boolean regularExpression, Map<String, String> otherOptions)
- Parameters:
caseSensitive- Whether the search will differentiate between capital and lower-case letters.diacriticSensitive- Whether the search will differentiate between letters with accents or not.wholeWord- Whether the query terms will match full words and not parts of a word.exact- Matches results exactly as stated in the query terms, taking into account stop words, order and spelling.language- BCP 47 language code overriding the publication's language.regularExpression- The search string is treated as a regular expression.otherOptions- Map of custom options implemented by a Search Service which are not officially recognized by Readium.
-
-
Method Detail
-
getCaseSensitive
final Boolean getCaseSensitive()
-
getDiacriticSensitive
final Boolean getDiacriticSensitive()
-
getWholeWord
final Boolean getWholeWord()
-
getLanguage
final String getLanguage()
-
getRegularExpression
final Boolean getRegularExpression()
-
getOtherOptions
final Map<String, String> getOtherOptions()
-
get
final String get(String key)
Syntactic sugar to access the otherOptions values by subscripting Options directly.
-
-
-
-