|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.pojo.descriptor.base.accessor.AbstractPojoPropertyAccessorBuilder<ACCESSOR>
ACCESSOR - is the type of the accessorpublic abstract class AbstractPojoPropertyAccessorBuilder<ACCESSOR extends PojoPropertyAccessor>
This is an abstract base implementation of the
PojoPropertyAccessorBuilder
interface.
It provides some helpful methods that make it easier to write
implementations.
| Constructor Summary | |
|---|---|
AbstractPojoPropertyAccessorBuilder()
The constructor. |
|
| Method Summary | |
|---|---|
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)
This method determines if the given type is a boolean type (
boolean.class or ). |
protected static boolean |
isIntegerType(Class<?> type)
This method determines if the given type is an integer type (
int.class or ). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.pojo.descriptor.base.accessor.PojoPropertyAccessorBuilder |
|---|
create, create, getMode |
| Constructor Detail |
|---|
public AbstractPojoPropertyAccessorBuilder()
| Method Detail |
|---|
protected static boolean isBooleanType(Class<?> type)
type is a boolean type (
boolean.class or Boolean.class).
type - is the class to check.
true if type represents a boolean, false
otherwise.protected static boolean isIntegerType(Class<?> type)
type is an integer type (
int.class or Integer.class).
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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||