| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | checkUnsupportedType(JavaType type)
Helper method called by |
| public static Object | getDefaultValue(JavaType type)
Accessor used to find out "default value" to use for comparing values to
serialize, to determine whether to exclude value from serialization with
inclusion type of |
| protected static boolean | isCglibGetCallbacks(AnnotatedMethod am)
This method was added to address the need to weed out CGLib-injected "getCallbacks" method. |
| protected static boolean | isGroovyMetaClassGetter(AnnotatedMethod am)
Another helper method to deal with Groovy's problematic metadata accessors |
| public static boolean | |
| private static boolean | |
| public static boolean | |
| private static boolean | |
| public static boolean | |
| private static boolean | |
| protected static String | legacyManglePropertyName(final String
Name of accessor/mutator method, not including prefix
("get"/"is"/"set") basename, final int offset)Method called to figure out name of the property, given corresponding suggested name based on a method or field name. |
| public static String | okNameForGetter(AnnotatedMethod am, boolean stdNaming)
Deprecated
Since 2.12 replaced with
com.
|
| public static String | okNameForIsGetter(AnnotatedMethod am, String name, boolean stdNaming)
Deprecated
Since 2.12 replaced with
com.
|
| public static String | okNameForMutator(AnnotatedMethod am, String prefix, boolean stdNaming)
Deprecated
Since 2.12 replaced with
com.
|
| public static String | okNameForRegularGetter(AnnotatedMethod am, String name, boolean stdNaming)
Deprecated
Since 2.12 replaced with
com.
|
| public static String | |
| public static String |
| BeanUtil | back to summary |
|---|---|
| public BeanUtil() | |
| checkUnsupportedType | back to summary |
|---|---|
| public static String checkUnsupportedType(JavaType type) Helper method called by
| |
| getDefaultValue | back to summary |
|---|---|
| public static Object getDefaultValue(JavaType type) Accessor used to find out "default value" to use for comparing values to
serialize, to determine whether to exclude value from serialization with
inclusion type of
Default logic is such that for primitives and wrapper types for primitives, expected
defaults (0 for `int` and `java.lang.Integer`) are returned; for Strings, empty String,
and for structured (Maps, Collections, arrays) and reference types, criteria
| |
| isCglibGetCallbacks | back to summary |
|---|---|
| protected static boolean isCglibGetCallbacks(AnnotatedMethod am) This method was added to address the need to weed out CGLib-injected "getCallbacks" method. At this point caller has detected a potential getter method with name "getCallbacks" and we need to determine if it is indeed injectect by Cglib. We do this by verifying that the result type is "net.sf.cglib.proxy.Callback[]" | |
| isGroovyMetaClassGetter | back to summary |
|---|---|
| protected static boolean isGroovyMetaClassGetter(AnnotatedMethod am) Another helper method to deal with Groovy's problematic metadata accessors | |
| isJava8OptionalClass | back to summary |
|---|---|
public static boolean isJava8OptionalClass(Class<?> rawType)
| |
| isJava8OptionalClass | back to summary |
|---|---|
| private static boolean isJava8OptionalClass(String className) | |
| isJava8TimeClass | back to summary |
|---|---|
public static boolean isJava8TimeClass(Class<?> rawType)
| |
| isJava8TimeClass | back to summary |
|---|---|
| private static boolean isJava8TimeClass(String className) | |
| isJodaTimeClass | back to summary |
|---|---|
public static boolean isJodaTimeClass(Class<?> rawType)
| |
| isJodaTimeClass | back to summary |
|---|---|
| private static boolean isJodaTimeClass(String className) | |
| legacyManglePropertyName | back to summary |
|---|---|
| protected static String legacyManglePropertyName(final String basename, final int offset) Method called to figure out name of the property, given corresponding suggested name based on a method or field name.
| |
| okNameForGetter | back to summary |
|---|---|
| public static String okNameForGetter(AnnotatedMethod am, boolean stdNaming)
Deprecated Since 2.12 replaced with
| |
| okNameForIsGetter | back to summary |
|---|---|
| public static String okNameForIsGetter(AnnotatedMethod am, String name, boolean stdNaming)
Deprecated Since 2.12 replaced with
| |
| okNameForMutator | back to summary |
|---|---|
| public static String okNameForMutator(AnnotatedMethod am, String prefix, boolean stdNaming)
Deprecated Since 2.12 replaced with
| |
| okNameForRegularGetter | back to summary |
|---|---|
| public static String okNameForRegularGetter(AnnotatedMethod am, String name, boolean stdNaming)
Deprecated Since 2.12 replaced with
| |
| okNameForSetter | back to summary |
|---|---|
| public static String okNameForSetter(AnnotatedMethod am, boolean stdNaming)
Deprecated
| |
| stdManglePropertyName | back to summary |
|---|---|
| public static String stdManglePropertyName(final String basename, final int offset) Note public only since 2.11
| |