Uses of Class
com.norconex.commons.lang.text.TextMatcher
Packages that use TextMatcher
Package
Description
Enhanced and/or useful features related to Map.
Utility classes related to text.
-
Uses of TextMatcher in com.norconex.commons.lang.map
Methods in com.norconex.commons.lang.map that return TextMatcherModifier and TypeMethodDescriptionPropertyMatcher.getFieldMatcher()Gets the field matcher (copy) ornullif the field matcher isnull.PropertyMatcher.getValueMatcher()Gets the value matcher (copy) ornullif the value matcher isnull.Methods in com.norconex.commons.lang.map with parameters of type TextMatcherModifier and TypeMethodDescriptionProperties.match(TextMatcher fieldMatcher, TextMatcher valueMatcher) Gets a properties subset for matching keys and values.Properties.matchKeys(TextMatcher keyMatcher) Gets a properties subset for keys matched by the key matcher.Properties.matchValues(TextMatcher valueMatcher) Gets a properties subset for values matched by the value matcher.Constructors in com.norconex.commons.lang.map with parameters of type TextMatcherModifierConstructorDescriptionPropertyMatcher(TextMatcher fieldMatcher) A property matcher that will only match present fields, regardless of values.PropertyMatcher(TextMatcher fieldMatcher, TextMatcher valueMatcher) A property matcher matching both fields and values. -
Uses of TextMatcher in com.norconex.commons.lang.text
Methods in com.norconex.commons.lang.text that return TextMatcherModifier and TypeMethodDescriptionstatic TextMatcherCreates a new text matcher initialized with basic matching.static TextMatcherCreates a new text matcher initialized with comma-separated-value matching.TextMatcher.ignoreCase()TextMatcher.ignoreDiacritic()TextMatcher.matchEmpty()Sets thatnullor empty strings should be considered a positive match.TextMatcher.negateMatches()Sets the negation of the result of invokingmatches(CharSequence)totrue.TextMatcher.partial()static TextMatcherCreates a new text matcher initialized with regular expression matching.TextMatcher.replaceAll()TextMatcher.setIgnoreCase(boolean ignoreCase) TextMatcher.setIgnoreDiacritic(boolean ignoreDiacritic) TextMatcher.setMatchEmpty(boolean matchEmpty) Sets whethernullor empty strings should be considered a positive match.TextMatcher.setMethod(TextMatcher.Method method) TextMatcher.setNegateMatches(boolean negateMatches) Sets whether to negates the result of invokingmatches(CharSequence).TextMatcher.setPartial(boolean partial) TextMatcher.setPattern(String pattern) TextMatcher.setReplaceAll(boolean replaceAll) TextMatcher.setTrim(boolean trim) Sets whether values should be trimmed before being evaluated (as perString.trim()).TextMatcher.trim()Sets that values should be trimmed before being evaluated (as perString.trim()).static TextMatcherCreates a new text matcher initialized with wildcard matching.TextMatcher.withIgnoreCase(boolean ignoreCase) TextMatcher.withIgnoreDiacritic(boolean ignoreDiacritic) TextMatcher.withMatchEmpty(boolean matchEmpty) Sets whethernullor empty strings should be considered a positive match.TextMatcher.withMethod(TextMatcher.Method method) TextMatcher.withNegateMatches(boolean negateMatches) Sets whether to negates the result of invokingmatches(CharSequence)on a copy of this instance.TextMatcher.withPartial(boolean partial) TextMatcher.withPattern(String pattern) TextMatcher.withReplaceAll(boolean replaceAll) TextMatcher.withTrim(boolean trim) Sets whether values should be trimmed before being evaluated (as perString.trim()).Methods in com.norconex.commons.lang.text with parameters of type TextMatcherModifier and TypeMethodDescriptionvoidTextMatcher.copyFrom(TextMatcher tm) voidTextMatcher.copyTo(TextMatcher tm) Method parameters in com.norconex.commons.lang.text with type arguments of type TextMatcherModifier and TypeMethodDescriptionstatic booleanTextMatcher.anyMatches(List<TextMatcher> matchers, CharSequence text) Tests that at least one matcher matches the provided text.static booleanTextMatcher.anyMatchesOrEmpty(List<TextMatcher> matchers, CharSequence text) Tests that at least one matcher matches the provided text, treating an empty ornulllist as a match (returningtrue).Constructors in com.norconex.commons.lang.text with parameters of type TextMatcher