# Uses of Class
com.norconex.commons.lang.text.TextMatcher

Packages that use TextMatcher
Package
Description
com.norconex.commons.lang.map
Enhanced and/or useful features related to Map.
com.norconex.commons.lang.text
Utility classes related to text.

- ## Uses of TextMatcher in com.norconex.commons.lang.map

  Methods in com.norconex.commons.lang.map that return TextMatcher
  Modifier and Type
  Method
  Description
  `TextMatcher`
  PropertyMatcher.`getFieldMatcher()`
  Gets the field matcher (copy) or `null` if the field matcher is `null`.
  `TextMatcher`
  PropertyMatcher.`getValueMatcher()`
  Gets the value matcher (copy) or `null` if the value matcher is `null`.
  Methods in com.norconex.commons.lang.map with parameters of type TextMatcher
  Modifier and Type
  Method
  Description
  `Properties`
  Properties.`match(TextMatcher fieldMatcher, TextMatcher valueMatcher)`
  Gets a properties subset for matching keys and values.
  `Properties`
  Properties.`matchKeys(TextMatcher keyMatcher)`
  Gets a properties subset for keys matched by the key matcher.
  `Properties`
  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 TextMatcher
  Modifier
  Constructor
  Description
  ``
  `PropertyMatcher(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 TextMatcher
  Modifier and Type
  Method
  Description
  `static TextMatcher`
  TextMatcher.`basic(String pattern)`
  Creates a new text matcher initialized with basic matching.
  `static TextMatcher`
  TextMatcher.`csv(String pattern)`
  Creates a new text matcher initialized with comma-separated-value matching.
  `TextMatcher`
  TextMatcher.`ignoreCase()`
  `TextMatcher`
  TextMatcher.`ignoreDiacritic()`
  `TextMatcher`
  TextMatcher.`matchEmpty()`
  Sets that `null` or empty strings should be considered a positive match.
  `TextMatcher`
  TextMatcher.`negateMatches()`
  Sets the negation of the result of invoking `matches(CharSequence)` to `true`.
  `TextMatcher`
  TextMatcher.`partial()`
  `static TextMatcher`
  TextMatcher.`regex(String pattern)`
  Creates a new text matcher initialized with regular expression matching.
  `TextMatcher`
  TextMatcher.`replaceAll()`
  `TextMatcher`
  TextMatcher.`setIgnoreCase(boolean ignoreCase)`
  `TextMatcher`
  TextMatcher.`setIgnoreDiacritic(boolean ignoreDiacritic)`
  `TextMatcher`
  TextMatcher.`setMatchEmpty(boolean matchEmpty)`
  Sets whether `null` or empty strings should be considered a positive match.
  `TextMatcher`
  TextMatcher.`setMethod(TextMatcher.Method method)`
  `TextMatcher`
  TextMatcher.`setNegateMatches(boolean negateMatches)`
  Sets whether to negates the result of invoking `matches(CharSequence)`.
  `TextMatcher`
  TextMatcher.`setPartial(boolean partial)`
  `TextMatcher`
  TextMatcher.`setPattern(String pattern)`
  `TextMatcher`
  TextMatcher.`setReplaceAll(boolean replaceAll)`
  `TextMatcher`
  TextMatcher.`setTrim(boolean trim)`
  Sets whether values should be trimmed before being evaluated (as per `String.trim()`).
  `TextMatcher`
  TextMatcher.`trim()`
  Sets that values should be trimmed before being evaluated (as per `String.trim()`).
  `static TextMatcher`
  TextMatcher.`wildcard(String pattern)`
  Creates a new text matcher initialized with wildcard matching.
  `TextMatcher`
  TextMatcher.`withIgnoreCase(boolean ignoreCase)`
  `TextMatcher`
  TextMatcher.`withIgnoreDiacritic(boolean ignoreDiacritic)`
  `TextMatcher`
  TextMatcher.`withMatchEmpty(boolean matchEmpty)`
  Sets whether `null` or empty strings should be considered a positive match.
  `TextMatcher`
  TextMatcher.`withMethod(TextMatcher.Method method)`
  `TextMatcher`
  TextMatcher.`withNegateMatches(boolean negateMatches)`
  Sets whether to negates the result of invoking `matches(CharSequence)` on a copy of this instance.
  `TextMatcher`
  TextMatcher.`withPartial(boolean partial)`
  `TextMatcher`
  TextMatcher.`withPattern(String pattern)`
  `TextMatcher`
  TextMatcher.`withReplaceAll(boolean replaceAll)`
  `TextMatcher`
  TextMatcher.`withTrim(boolean trim)`
  Sets whether values should be trimmed before being evaluated (as per `String.trim()`).
  Methods in com.norconex.commons.lang.text with parameters of type TextMatcher
  Modifier and Type
  Method
  Description
  `void`
  TextMatcher.`copyFrom(TextMatcher tm)`
  `void`
  TextMatcher.`copyTo(TextMatcher tm)`
  Method parameters in com.norconex.commons.lang.text with type arguments of type TextMatcher
  Modifier and Type
  Method
  Description
  `static boolean`
  TextMatcher.`anyMatches(List<TextMatcher> matchers, CharSequence text)`
  Tests that at least one matcher matches the provided text.
  `static boolean`
  TextMatcher.`anyMatchesOrEmpty(List<TextMatcher> matchers, CharSequence text)`
  Tests that at least one matcher matches the provided text, treating an empty or `null` list as a match (returning `true`).
  Constructors in com.norconex.commons.lang.text with parameters of type TextMatcher
  Modifier
  Constructor
  Description
  ``
  `TextMatcher(TextMatcher textMatcher)`
  Copy constructor.