com.fasterxml.jackson.databind.util

Class BeanUtil



  • public class BeanUtil
    extends Object
    Helper class that contains functionality needed by both serialization and deserialization side.
    • Constructor Detail

      • BeanUtil

        public BeanUtil()
    • Method Detail

      • okNameForGetter

        public static String okNameForGetter(AnnotatedMethod am,
                             boolean stdNaming)
        Since:
        2.5
      • okNameForRegularGetter

        public static String okNameForRegularGetter(AnnotatedMethod am,
                                    String name,
                                    boolean stdNaming)
        Since:
        2.5
      • okNameForSetter

        public static String okNameForSetter(AnnotatedMethod am,
                             boolean stdNaming)
        Since:
        2.5
      • isCglibGetCallbacks

        protected static boolean isCglibGetCallbacks(AnnotatedMethod am)
        This method was added to address [JACKSON-53]: need to weed out CGLib-injected "getCallbacks". 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

        protected static boolean isGroovyMetaClassGetter(AnnotatedMethod am)
        Another helper method to deal with rest of [JACKSON-103]
      • legacyManglePropertyName

        protected static String legacyManglePropertyName(String basename,
                                      int offset)
        Method called to figure out name of the property, given corresponding suggested name based on a method or field name.
        Parameters:
        basename - Name of accessor/mutator method, not including prefix ("get"/"is"/"set")
      • stdManglePropertyName

        protected static String stdManglePropertyName(String basename,
                                   int offset)
        Since:
        2.5

Copyright © 2008–2015 FasterXML. All rights reserved.