- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for copyMapToBean (0.08 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: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/util/BeanUtil.java
*/ public static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest) { copyMapToBean(src, dest, DEFAULT_OPTIONS); } public static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest, final Consumer<CopyOptions> option) { copyMapToBean(src, dest, buildCopyOptions(option)); } /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java
BeanUtil.copyBeanToBean(src, dest, option); } protected static void copyMapToBean(final Map<String, ? extends Object> src, final Object dest, final Consumer<CopyOptions> option) { BeanUtil.copyMapToBean(src, dest, option); } protected static <T> T copyBeanToNewBean(final Object src, final Class<T> destClass) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 9.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java
break; } return OptionalEntity.empty(); } 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 Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 10.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: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 25K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java
break; } return OptionalEntity.empty(); } 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 Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 13.2K 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: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 8.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: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java
break; } return OptionalEntity.empty(); } 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 Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 15.9K 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: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:41:37 UTC 2024 - 17.9K bytes - Viewed (0)