Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for PropertyDesc (0.06 sec)

  1. src/main/java/org/codelibs/core/beans/PropertyDesc.java

    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.util.Collection;
    import java.util.Map;
    
    /**
     * Interface for handling properties.
     *
     * @author higa
     */
    public interface PropertyDesc {
    
        /**
         * Returns the property name.
         *
         * @return the property name
         */
        String getPropertyName();
    
        /**
         * Returns the property type.
         *
         * @param <T>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            }
        }
    
        /**
         * Adds a {@link PropertyDesc}.
         *
         * @param propertyDesc
         *            {@link PropertyDesc}
         */
        protected void addPropertyDesc(final PropertyDescImpl propertyDesc) {
            assertArgumentNotNull("propertyDesc", propertyDesc);
            propertyDescCache.put(propertyDesc.getPropertyName(), propertyDesc);
        }
    
        /**
         * Prepares the constructors.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  3. src/main/java/org/codelibs/core/beans/BeanDesc.java

         * @return {@link PropertyDesc}
         */
        PropertyDesc getPropertyDesc(String propertyName);
    
        /**
         * Returns the {@link PropertyDesc}.
         *
         * @param index
         *            The index of the {@link PropertyDesc}
         * @return {@link PropertyDesc}
         */
        PropertyDesc getPropertyDesc(int index);
    
        /**
         * Returns the number of {@link PropertyDesc}.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.FieldDesc;
    import org.codelibs.core.beans.MethodDesc;
    import org.codelibs.core.beans.ParameterizedClassDesc;
    import org.codelibs.core.beans.PropertyDesc;
    import org.codelibs.core.beans.factory.BeanDescFactory;
    import org.codelibs.core.exception.MethodNotFoundRuntimeException;
    import org.junit.Test;
    
    /**
     * @author higa
     * @author manhole
     */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final PropertyDesc propDesc = beanDesc.getPropertyDesc("url");
            propDesc.setValue(myBean, new Object());
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalPropertyRuntimeException.class)
        public void testGetValue_notReable() throws Exception {
            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.function.Consumer;
    
    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.PropertyDesc;
    import org.codelibs.core.beans.factory.BeanDescFactory;
    import org.codelibs.core.lang.ClassUtil;
    
    /**
     * Utility for copying properties between JavaBeans or between JavaBeans and {@link Map}.
     * <p>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

    import org.codelibs.core.lang.FieldUtil;
    import org.codelibs.core.lang.MethodUtil;
    import org.codelibs.core.lang.ModifierUtil;
    
    /**
     * Implementation class of {@link PropertyDesc}.
     *
     * @author higa
     */
    public class PropertyDescImpl implements PropertyDesc {
    
        private static final Object[] EMPTY_ARGS = new Object[0];
    
        private final String propertyName;
    
        private final Class<?> propertyType;
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. README.md

    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.beans.util.CopyOptions;
    
    // Bean metadata introspection
    BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
    PropertyDesc nameProperty = beanDesc.getPropertyDesc("name");
    nameProperty.setValue(bean, "John Doe");
    
    // Bean copying with flexible options
    BeanUtil.copyBeanToBean(source, destination);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top