Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ConvertValue (0.13 sec)

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

            assertThat(new CopyOptions().convertValue(Integer.valueOf(1), "aaa", null), is((Object) 1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testConvertValue_propertyConverter_asString() throws Exception {
            assertThat(new CopyOptions().converter(new NumberConverter("##0"), "aaa").convertValue(Integer.valueOf(1), "aaa", null),
                    is((Object) "1"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

                }
                final Object value = srcPropertyDesc.getValue(src);
                if (!options.isTargetValue(value)) {
                    continue;
                }
                final Object convertedValue = options.convertValue(value, destPropertyName, destPropertyDesc.getPropertyType());
                destPropertyDesc.setValue(dest, convertedValue);
            }
        }
    
        /**
         * Copies from a Bean to a {@literal Map}.
         *
    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/core/beans/util/CopyOptions.java

         *            The destination property name
         * @param destPropertyClass
         *            The destination property class
         * @return The converted value
         */
        protected Object convertValue(final Object value, final String destPropertyName, final Class<?> destPropertyClass) {
            if (value == null || value.getClass() != String.class && destPropertyClass != null && destPropertyClass != String.class) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top