Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for copyMapToBean (0.12 sec)

  1. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            map.put("a", "A");
            map.put("b", true);
            map.put("c", 3);
            map.put("d", 1.4);
            final HogeDto hoge = new HogeDto();
            BeanUtil.copyMapToBean(map, hoge);
            assertThat(hoge.getA(), is("A"));
            assertThat(hoge.isB(), is(true));
            assertThat(hoge.getC(), is(3));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

         * @param src The source {@literal Map}. Must not be {@literal null}.
         * @param dest The destination Bean. Must not be {@literal null}.
         */
        public static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest) {
            copyMapToBean(src, dest, DEFAULT_OPTIONS);
        }
    
        /**
         * Copies from a {@literal Map} to a Bean.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

         * This is a utility method that wraps BeanUtil.copyMapToBean with custom options.
         *
         * @param src the source map containing property values
         * @param dest the destination bean object
         * @param option a consumer function to configure copy options
         */
        protected static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest, final Consumer<CopyOptions> option) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                            props.entrySet().stream().collect(Collectors.toMap(e -> (String) e.getKey(), e -> (String) e.getValue()));
                    tesseractOCRConfig = new TesseractOCRConfig();
                    BeanUtil.copyMapToBean(propMap, tesseractOCRConfig);
                    tesseractOCRConfigMap.put(tesseractConfigPath, tesseractOCRConfig);
                }
                parseContext.set(TesseractOCRConfig.class, tesseractOCRConfig);
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

         * @return optional entity containing the role data, or empty if creation fails
         */
        public static OptionalEntity<Role> getRole(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                return entity;
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

                    stream(toAddresses).of(stream -> stream.forEach(address -> {
                        postcard.addTo(address);
                    }));
                    BeanUtil.copyMapToBean(dataMap, postcard);
                });
                saveInfo(messages -> messages.addSuccessSendTestmail(GLOBAL));
                updateProperty(Constants.NOTIFICATION_TO_PROPERTY, form.notificationTo);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

         * @param form the create form
         * @return optional group entity
         */
        public static OptionalEntity<Group> getGroup(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                return entity;
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

         * @return optional user entity populated from the form
         */
        public static OptionalEntity<User> getUser(final CreateForm form) {
            return getEntity(form).map(entity -> {
                copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));
                copyBeanToBean(form, entity, op -> op.exclude(ArrayUtils.addAll(Constants.COMMON_CONVERSION_RULE, "password")));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

            if (Map.class.equals(dataClass)) {
                return dataMap;
            }
    
            try {
                final Object obj = dataClass.getDeclaredConstructor().newInstance();
                BeanUtil.copyMapToBean(dataMap, obj);
                return obj;
            } catch (final Exception e) {
                throw new CrawlerSystemException("Could not create/copy a data map to " + dataClass, e);
            }
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

            if (Map.class.equals(dataClass)) {
                return dataMap;
            }
    
            try {
                final Object obj = dataClass.getDeclaredConstructor().newInstance();
                BeanUtil.copyMapToBean(dataMap, obj);
                return obj;
            } catch (final Exception e) {
                throw new CrawlerSystemException("Could not create/copy a data map to " + dataClass, e);
            }
        }
    
        /*
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top