Class BeansUtils


  • public final class BeansUtils
    extends java.lang.Object
    • Method Detail

      • findPropertyEditor

        public static java.beans.PropertyEditor findPropertyEditor​(java.beans.PropertyDescriptor pd)
      • equalsByAccessibleProperties

        public static boolean equalsByAccessibleProperties​(java.lang.Object bean0,
                                                           java.lang.Object bean1)
                                                    throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • equalsByAccessibleProperties

        public static boolean equalsByAccessibleProperties​(java.lang.Object bean0,
                                                           java.lang.Object bean1,
                                                           java.util.Collection ignoreProps)
                                                    throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • equalsByAccessiblePropertiesVerbose

        public static boolean equalsByAccessiblePropertiesVerbose​(java.lang.Object bean0,
                                                                  java.lang.Object bean1,
                                                                  java.util.Collection ignoreProps)
                                                           throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteAccessibleProperties

        public static void overwriteAccessibleProperties​(java.lang.Object sourceBean,
                                                         java.lang.Object destBean)
                                                  throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteAccessibleProperties

        public static void overwriteAccessibleProperties​(java.lang.Object sourceBean,
                                                         java.lang.Object destBean,
                                                         java.util.Collection ignoreProps)
                                                  throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteAccessiblePropertiesFromMap

        public static void overwriteAccessiblePropertiesFromMap​(java.util.Map sourceMap,
                                                                java.lang.Object destBean,
                                                                boolean skip_nulls)
                                                         throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteAccessiblePropertiesFromMap

        public static void overwriteAccessiblePropertiesFromMap​(java.util.Map sourceMap,
                                                                java.lang.Object destBean,
                                                                boolean skip_nulls,
                                                                java.util.Collection ignoreProps)
                                                         throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteAccessiblePropertiesFromMap

        public static void overwriteAccessiblePropertiesFromMap​(java.util.Map sourceMap,
                                                                java.lang.Object destBean,
                                                                boolean skip_nulls,
                                                                java.util.Collection ignoreProps,
                                                                boolean coerce_strings,
                                                                MLevel cantWriteLevel,
                                                                MLevel cantCoerceLevel,
                                                                boolean die_on_one_prop_failure)
                                                         throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • appendPropNamesAndValues

        public static void appendPropNamesAndValues​(java.lang.StringBuffer appendIntoMe,
                                                    java.lang.Object bean,
                                                    java.util.Collection ignoreProps)
                                             throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • extractAccessiblePropertiesToMap

        public static void extractAccessiblePropertiesToMap​(java.util.Map fillMe,
                                                            java.lang.Object bean)
                                                     throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • extractAccessiblePropertiesToMap

        public static void extractAccessiblePropertiesToMap​(java.util.Map fillMe,
                                                            java.lang.Object bean,
                                                            java.util.Collection ignoreProps)
                                                     throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • overwriteSpecificAccessibleProperties

        public static void overwriteSpecificAccessibleProperties​(java.lang.Object sourceBean,
                                                                 java.lang.Object destBean,
                                                                 java.util.Collection props)
                                                          throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • debugShowPropertyChange

        public static void debugShowPropertyChange​(java.beans.PropertyChangeEvent evt)