public final class DefaultPropertyNameMatcher extends Object implements PropertyNameMatcher
Modifier and Type | Field and Description |
---|---|
static org.simpleflatmapper.util.CharPredicate |
DEFAULT_IS_SEPARATOR_CHAR |
Constructor and Description |
---|
DefaultPropertyNameMatcher(String column,
int from,
boolean exactMatch,
boolean caseSensitive) |
DefaultPropertyNameMatcher(String column,
int from,
boolean exactMatch,
boolean caseSensitive,
org.simpleflatmapper.util.CharPredicate isSeparatorChar) |
Modifier and Type | Method and Description |
---|---|
static boolean |
_isSeparatorChar(char charColumn) |
int |
asScore() |
static PropertyNameMatcher |
exact(String value) |
List<PropertyNameMatcherKeyValuePair> |
keyValuePairs() |
PropertyNameMatch |
matches(CharSequence property) |
PropertyNameMatch |
matches(CharSequence property,
boolean tryPlural) |
IndexedColumn |
matchIndex() |
static PropertyNameMatcher |
of(String value) |
PropertyNameMatch |
partialMatch(CharSequence property) |
PropertyNameMatch |
partialMatch(CharSequence property,
boolean tryPlural) |
PropertyNameMatch |
speculativeMatch() |
static int |
toScore(String property) |
static int |
toScore(String property,
org.simpleflatmapper.util.CharPredicate isSeparatorChar) |
static int |
toScore(String property,
int from) |
static int |
toScore(String property,
int from,
org.simpleflatmapper.util.CharPredicate isSeparatorChar) |
String |
toString() |
public static final org.simpleflatmapper.util.CharPredicate DEFAULT_IS_SEPARATOR_CHAR
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive)
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive, org.simpleflatmapper.util.CharPredicate isSeparatorChar)
public PropertyNameMatch matches(CharSequence property)
matches
in interface PropertyNameMatcher
public PropertyNameMatch matches(CharSequence property, boolean tryPlural)
matches
in interface PropertyNameMatcher
public PropertyNameMatch partialMatch(CharSequence property)
partialMatch
in interface PropertyNameMatcher
public PropertyNameMatch partialMatch(CharSequence property, boolean tryPlural)
partialMatch
in interface PropertyNameMatcher
public IndexedColumn matchIndex()
matchIndex
in interface PropertyNameMatcher
public static boolean _isSeparatorChar(char charColumn)
public PropertyNameMatch speculativeMatch()
speculativeMatch
in interface PropertyNameMatcher
public List<PropertyNameMatcherKeyValuePair> keyValuePairs()
keyValuePairs
in interface PropertyNameMatcher
public int asScore()
asScore
in interface PropertyNameMatcher
public static int toScore(String property)
public static int toScore(String property, int from)
public static int toScore(String property, org.simpleflatmapper.util.CharPredicate isSeparatorChar)
public static int toScore(String property, int from, org.simpleflatmapper.util.CharPredicate isSeparatorChar)
public static PropertyNameMatcher of(String value)
public static PropertyNameMatcher exact(String value)
Copyright © 2020. All rights reserved.