Module org.simpleflatmapper.reflect
Class DefaultPropertyNameMatcher
java.lang.Object
org.simpleflatmapper.reflect.meta.DefaultPropertyNameMatcher
- All Implemented Interfaces:
PropertyNameMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.simpleflatmapper.util.CharPredicate -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive) DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive, org.simpleflatmapper.util.CharPredicate isSeparatorChar) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean_isSeparatorChar(char charColumn) intasScore()static PropertyNameMatchermatches(CharSequence property) matches(CharSequence property, boolean tryPlural) static PropertyNameMatcherpartialMatch(CharSequence property) partialMatch(CharSequence property, boolean tryPlural) static intstatic intstatic intstatic inttoString()
-
Field Details
-
DEFAULT_IS_SEPARATOR_CHAR
public static final org.simpleflatmapper.util.CharPredicate DEFAULT_IS_SEPARATOR_CHAR
-
-
Constructor Details
-
DefaultPropertyNameMatcher
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive) -
DefaultPropertyNameMatcher
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive, org.simpleflatmapper.util.CharPredicate isSeparatorChar)
-
-
Method Details
-
matches
- Specified by:
matchesin interfacePropertyNameMatcher
-
matches
- Specified by:
matchesin interfacePropertyNameMatcher
-
partialMatch
- Specified by:
partialMatchin interfacePropertyNameMatcher
-
partialMatch
- Specified by:
partialMatchin interfacePropertyNameMatcher
-
matchIndex
- Specified by:
matchIndexin interfacePropertyNameMatcher
-
_isSeparatorChar
public static boolean _isSeparatorChar(char charColumn) -
speculativeMatch
- Specified by:
speculativeMatchin interfacePropertyNameMatcher
-
keyValuePairs
- Specified by:
keyValuePairsin interfacePropertyNameMatcher
-
asScore
public int asScore()- Specified by:
asScorein interfacePropertyNameMatcher
-
toString
-
toScore
-
toScore
-
toScore
-
toScore
public static int toScore(String property, int from, org.simpleflatmapper.util.CharPredicate isSeparatorChar) -
of
-
exact
-