ACCESSOR - is the type of the accessorpublic abstract class AbstractPojoPropertyAccessorBuilder<ACCESSOR extends PojoPropertyAccessor> extends Object implements PojoPropertyAccessorBuilder<ACCESSOR>
PojoPropertyAccessorBuilder interface. | Constructor and Description |
|---|
AbstractPojoPropertyAccessorBuilder()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPropertyName(String methodName,
int prefixLength,
int suffixLength)
This method gets the according
property-name for the given
methodName. |
protected String |
getPropertyName(String methodName,
String[] prefixes,
String[] suffixes)
This method gets the according
property-name for the given
methodName. |
protected String |
getPropertyName(String methodName,
String prefix,
String suffix)
This method gets the according
property-name for the given
methodName. |
protected static boolean |
isBooleanType(Class<?> type)
|
protected static boolean |
isIntegerType(Class<?> type)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, getModepublic AbstractPojoPropertyAccessorBuilder()
protected static boolean isBooleanType(Class<?> type)
type - is the class to check.true if type represents a boolean, false otherwise.protected static boolean isIntegerType(Class<?> type)
type - is the class to check.true if type represents an integer, false otherwise.protected String getPropertyName(String methodName, String[] prefixes, String[] suffixes)
property-name for the given
methodName. methodName after between the given
prefix and suffix.methodName - is the name of the
accessor-method.prefixes - is an array with all possible prefixes (e.g. "get", "is", "has"). May also
be empty array instead of {""}.suffixes - is an array with all possible suffixes (e.g. "Size", "Length", "Count"). May
also be empty array instead of {""}.null if NOT available. (methodName does
NOT start with one of the prefixes or does NOT
end with one of the suffixes).protected String getPropertyName(String methodName, String prefix, String suffix)
property-name for the given
methodName. methodName after between the given
prefix and suffix.methodName - is the name of the
accessor-method.prefix - is the prefix (e.g. "get", "set" or "is").suffix - is the suffix (e.g. "" or "Size").null if NOT available. (methodName does
NOT start with prefix or does NOT
end with suffix).protected String getPropertyName(String methodName, int prefixLength, int suffixLength)
property-name for the given
methodName. methodName after the prefix (given via
prefixLength).methodName - is the name of the
accessor-method.prefixLength - is the length of the method prefix (e.g. 3 for "get"/"set" or 2 for "is").suffixLength - is the length of the method suffix (e.g. 4 for "Size").null if NOT available methodName.length() <= prefixLength).Copyright © 2001–2015 mmm-Team. All rights reserved.