Class BeanUtil
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.util.BeanUtil
 
 
- 
public class BeanUtil extends java.lang.ObjectHelper class that contains functionality needed by both serialization and deserialization side. 
- 
- 
Constructor Summary
Constructors Constructor Description BeanUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringcheckUnsupportedType(JavaType type)Helper method called byBeanDeserializerFactoryandBeanSerializerFactoryto check if given unrecognized type (to be (de)serialized as general POJO) is one of "well-known" types for which there would be a datatype module; and if so, return appropriate failure message to give to caller.static java.lang.ObjectgetDefaultValue(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 ofJsonInclude.Include.NON_DEFAULT.static booleanisJava8TimeClass(java.lang.Class<?> rawType)static booleanisJodaTimeClass(java.lang.Class<?> rawType)static java.lang.StringokNameForGetter(AnnotatedMethod am, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringokNameForIsGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringokNameForMutator(AnnotatedMethod am, java.lang.String prefix, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringokNameForRegularGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)Deprecated.Since 2.12 replaced withAccessorNamingStrategystatic java.lang.StringokNameForSetter(AnnotatedMethod am, boolean stdNaming)Deprecated.static java.lang.StringstdManglePropertyName(java.lang.String basename, int offset)Note: public only since 2.11 
 - 
 
- 
- 
Method Detail
- 
okNameForGetter
@Deprecated public static java.lang.String okNameForGetter(AnnotatedMethod am, boolean stdNaming)
Deprecated.Since 2.12 replaced withAccessorNamingStrategy- Since:
 - 2.5
 
 
- 
okNameForRegularGetter
@Deprecated public static java.lang.String okNameForRegularGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)
Deprecated.Since 2.12 replaced withAccessorNamingStrategy- Since:
 - 2.5
 
 
- 
okNameForIsGetter
@Deprecated public static java.lang.String okNameForIsGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)
Deprecated.Since 2.12 replaced withAccessorNamingStrategy- Since:
 - 2.5
 
 
- 
okNameForSetter
@Deprecated public static java.lang.String okNameForSetter(AnnotatedMethod am, boolean stdNaming)
Deprecated. 
- 
okNameForMutator
@Deprecated public static java.lang.String okNameForMutator(AnnotatedMethod am, java.lang.String prefix, boolean stdNaming)
Deprecated.Since 2.12 replaced withAccessorNamingStrategy- Since:
 - 2.5
 
 
- 
getDefaultValue
public static java.lang.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 ofJsonInclude.Include.NON_DEFAULT.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
JsonInclude.Include.NON_DEFAULTis used.- Since:
 - 2.7
 
 
- 
stdManglePropertyName
public static java.lang.String stdManglePropertyName(java.lang.String basename, int offset)Note: public only since 2.11- Since:
 - 2.5
 
 
- 
checkUnsupportedType
public static java.lang.String checkUnsupportedType(JavaType type)
Helper method called byBeanDeserializerFactoryandBeanSerializerFactoryto check if given unrecognized type (to be (de)serialized as general POJO) is one of "well-known" types for which there would be a datatype module; and if so, return appropriate failure message to give to caller.- Since:
 - 2.12
 
 
- 
isJava8TimeClass
public static boolean isJava8TimeClass(java.lang.Class<?> rawType)
- Since:
 - 2.12
 
 
- 
isJodaTimeClass
public static boolean isJodaTimeClass(java.lang.Class<?> rawType)
- Since:
 - 2.12
 
 
 - 
 
 -