public class TextMatcher<E> extends java.lang.Object implements Matcher<E>
| Constructor and Description |
|---|
TextMatcher(SearchTerm[] searchTerms,
TextFilterator<? super E> filterator,
int mode,
java.lang.Object strategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
TextMatcher objects are considered equal if they agree on the mode,
strategy, and set of SearchTerms.
|
int |
getMode()
Returns the behaviour mode which indicates where to locate the search
terms for a successful match.
|
SearchTerm[] |
getSearchTerms()
Returns the searchTerms strings matched by this
TextMatcher. |
java.lang.String[] |
getSearchTermStrings()
Returns the search term strings matched by this
TextMatcher. |
java.lang.Object |
getStrategy()
Returns the strategy which indicates what kind of algorithm to use when determining a match.
|
int |
hashCode() |
boolean |
matches(E element)
Return true if an item matches a filter.
|
TextMatcher<E> |
newFilterator(TextFilterator<? super E> filterator)
Return a new TextMatcher identical to this TextMatcher save for the
given
filterator. |
TextMatcher<E> |
newMode(int mode)
Return a new TextMatcher identical to this TextMatcher save for the
given
mode. |
TextMatcher<E> |
newStrategy(java.lang.Object strategy)
Return a new TextMatcher identical to this TextMatcher save for the
given
strategy. |
public TextMatcher(SearchTerm[] searchTerms, TextFilterator<? super E> filterator, int mode, java.lang.Object strategy)
searchTerms - an array of search terms to be matchedfilterator - the object that will extract filter Strings from each
object to be matched; null indicates the objects
implement TextFilterablemode - one of TextMatcherEditor.CONTAINS,
TextMatcherEditor.STARTS_WITH or TextMatcherEditor.REGULAR_EXPRESSION
which indicates where to locate the search terms for a successful matchstrategy - one of TextMatcherEditor.IDENTICAL_STRATEGY,
TextMatcherEditor.NORMALIZED_STRATEGY or
GlazedListsICU4J.UNICODE_TEXT_SEARCH_STRATEGY
which indicates what kind of algorithm to use when determining a matchpublic int getMode()
public java.lang.Object getStrategy()
public SearchTerm[] getSearchTerms()
TextMatcher.public java.lang.String[] getSearchTermStrings()
TextMatcher.public boolean matches(E element)
public TextMatcher<E> newMode(int mode)
mode.public TextMatcher<E> newFilterator(TextFilterator<? super E> filterator)
filterator.public TextMatcher<E> newStrategy(java.lang.Object strategy)
strategy.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Mon Feb 25 11:02:37 CET 2019