- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for copyMapToBean (0.06 sec)
-
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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 34.5K bytes - Viewed (0) -
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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.5K bytes - Viewed (0) -
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: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 15K bytes - Viewed (0) -
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: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 13:56:35 UTC 2025 - 12.8K bytes - Viewed (0) -
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: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 30.8K bytes - Viewed (0) -
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: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 13 02:21:17 UTC 2025 - 14.4K bytes - Viewed (0) -
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: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 13:56:35 UTC 2025 - 16K bytes - Viewed (0) -
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: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 13.1K bytes - Viewed (0) -
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: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 13:56:35 UTC 2025 - 19.3K bytes - Viewed (0) -
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: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 23.9K bytes - Viewed (0)