Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConvertValue (0.07 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/fess/ds/AbstractDataStore.java

         * Convert the value.
         * @param scriptType The script type.
         * @param template The template.
         * @param paramMap The parameters.
         * @return The converted value.
         */
        protected Object convertValue(final String scriptType, final String template, final Map<String, Object> paramMap) {
            if (StringUtil.isEmpty(template)) {
                return StringUtil.EMPTY;
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. 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