亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? beanutilsbean.java

?? 這是一個有關common beanutils 的源碼
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
                }
            }
            return ((String[]) values.toArray(new String[values.size()]));
        } else if (value.getClass().isArray()) {
            int n = Array.getLength(value);
            String[] results = new String[n];
            for (int i = 0; i < n; i++) {
                Object item = Array.get(value, i);
                if (item == null) {
                    results[i] = null;
                } else {
                    // convert to string using convert utils
                    results[i] = getConvertUtils().convert(item);
                }
            }
            return (results);
        } else {
            String[] results = new String[1];
            results[0] = getConvertUtils().convert(value);
            return (results);
        }

    }


    /**
     * Return the value of the specified indexed property of the specified
     * bean, as a String.  The zero-relative index of the
     * required value must be included (in square brackets) as a suffix to
     * the property name, or <code>IllegalArgumentException</code> will be
     * thrown.
     *
     * @param bean Bean whose property is to be extracted
     * @param name <code>propertyname[index]</code> of the property value
     *  to be extracted
     * @return The indexed property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getIndexedProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getIndexedProperty(bean, name);
        return (getConvertUtils().convert(value));

    }


    /**
     * Return the value of the specified indexed property of the specified
     * bean, as a String.  The index is specified as a method parameter and
     * must *not* be included in the property name expression
     *
     * @param bean Bean whose property is to be extracted
     * @param name Simple property name of the property value to be extracted
     * @param index Index of the property value to be extracted
     * @return The indexed property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getIndexedProperty(Object bean,
                                            String name, int index)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getIndexedProperty(bean, name, index);
        return (getConvertUtils().convert(value));

    }


    /**
     * Return the value of the specified indexed property of the specified
     * bean, as a String.  The String-valued key of the required value
     * must be included (in parentheses) as a suffix to
     * the property name, or <code>IllegalArgumentException</code> will be
     * thrown.
     *
     * @param bean Bean whose property is to be extracted
     * @param name <code>propertyname(index)</code> of the property value
     *  to be extracted
     * @return The mapped property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getMappedProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getMappedProperty(bean, name);
        return (getConvertUtils().convert(value));

    }


    /**
     * Return the value of the specified mapped property of the specified
     * bean, as a String.  The key is specified as a method parameter and
     * must *not* be included in the property name expression
     *
     * @param bean Bean whose property is to be extracted
     * @param name Simple property name of the property value to be extracted
     * @param key Lookup key of the property value to be extracted
     * @return The mapped property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getMappedProperty(Object bean,
                                           String name, String key)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getMappedProperty(bean, name, key);
        return (getConvertUtils().convert(value));

    }


    /**
     * Return the value of the (possibly nested) property of the specified
     * name, for the specified bean, as a String.
     *
     * @param bean Bean whose property is to be extracted
     * @param name Possibly nested name of the property to be extracted
     * @return The nested property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception IllegalArgumentException if a nested reference to a
     *  property returns null
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getNestedProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getNestedProperty(bean, name);
        return (getConvertUtils().convert(value));

    }


    /**
     * Return the value of the specified property of the specified bean,
     * no matter which property reference format is used, as a String.
     *
     * @param bean Bean whose property is to be extracted
     * @param name Possibly indexed and/or nested name of the property
     *  to be extracted
     * @return The property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        return (getNestedProperty(bean, name));

    }


    /**
     * Return the value of the specified simple property of the specified
     * bean, converted to a String.
     *
     * @param bean Bean whose property is to be extracted
     * @param name Name of the property to be extracted
     * @return The property's value, converted to a String
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     */
    public String getSimpleProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        Object value = getPropertyUtils().getSimpleProperty(bean, name);
        return (getConvertUtils().convert(value));

    }


    /**
     * <p>Populate the JavaBeans properties of the specified bean, based on
     * the specified name/value pairs.  This method uses Java reflection APIs
     * to identify corresponding "property setter" method names, and deals
     * with setter arguments of type <code>String</code>, <code>boolean</code>,
     * <code>int</code>, <code>long</code>, <code>float</code>, and
     * <code>double</code>.  In addition, array setters for these types (or the
     * corresponding primitive types) can also be identified.</p>
     * 
     * <p>The particular setter method to be called for each property is
     * determined using the usual JavaBeans introspection mechanisms.  Thus,
     * you may identify custom setter methods using a BeanInfo class that is
     * associated with the class of the bean itself.  If no such BeanInfo
     * class is available, the standard method name conversion ("set" plus
     * the capitalized name of the property in question) is used.</p>
     * 
     * <p><strong>NOTE</strong>:  It is contrary to the JavaBeans Specification
     * to have more than one setter method (with different argument
     * signatures) for the same property.</p>
     *
     * <p><strong>WARNING</strong> - The logic of this method is customized
     * for extracting String-based request parameters from an HTTP request.
     * It is probably not what you want for general property copying with
     * type conversion.  For that purpose, check out the
     * <code>copyProperties()</code> method instead.</p>
     *
     * @param bean JavaBean whose properties are being populated
     * @param properties Map keyed by property name, with the
     *  corresponding (String or String[]) value(s) to be set
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     */
    public void populate(Object bean, Map properties)
        throws IllegalAccessException, InvocationTargetException {

        // Do nothing unless both arguments have been specified
        if ((bean == null) || (properties == null)) {
            return;
        }
        if (log.isDebugEnabled()) {
            log.debug("BeanUtils.populate(" + bean + ", " +
                    properties + ")");
        }

        // Loop through the property name/value pairs to be set
        Iterator entries = properties.entrySet().iterator();
        while (entries.hasNext()) {

            // Identify the property name and value(s) to be assigned
            Map.Entry entry = (Map.Entry)entries.next();
            String name = (String) entry.getKey();
            if (name == null) {
                continue;
            }

            // Perform the assignment for this property
            setProperty(bean, name, entry.getValue());

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级不卡在线观看| 成人黄色软件下载| 中文字幕色av一区二区三区| 91精品欧美一区二区三区综合在| 国产精品77777竹菊影视小说| 亚洲第一主播视频| 中文欧美字幕免费| 日韩午夜三级在线| 色偷偷久久一区二区三区| 国产剧情一区二区| 日本亚洲电影天堂| 亚洲一区在线视频| 国产精品国产三级国产有无不卡 | 成人黄色国产精品网站大全在线免费观看 | 精品国产91九色蝌蚪| 日本韩国欧美国产| 成人午夜视频在线观看| 美女国产一区二区| 午夜伊人狠狠久久| 一区二区三区四区在线播放 | 亚洲综合激情小说| 中文字幕一区二区三区在线观看 | 欧美国产精品一区| 2020国产精品自拍| 日韩欧美中文字幕一区| 欧美日韩成人综合在线一区二区| www.日韩大片| av一区二区三区黑人| 成人午夜私人影院| 成人免费毛片片v| 国产成人免费在线观看| 黑人巨大精品欧美黑白配亚洲 | caoporm超碰国产精品| 国产成人激情av| 国产毛片精品国产一区二区三区| 久久精品久久精品| 激情欧美一区二区| 国产在线一区二区综合免费视频| 蜜桃一区二区三区四区| 免费在线看成人av| 日韩激情视频在线观看| 亚洲第一成人在线| 五月天视频一区| 天天av天天翘天天综合网| 亚洲成年人影院| 日本在线不卡视频| 久热成人在线视频| 国产一区二区三区精品欧美日韩一区二区三区 | 美女被吸乳得到大胸91| 日韩精品一二三四| 蜜桃av一区二区三区电影| 麻豆成人久久精品二区三区小说| 免费成人美女在线观看| 精品在线观看免费| 国产成人免费9x9x人网站视频| 粉嫩嫩av羞羞动漫久久久| 91在线播放网址| 欧美亚洲综合在线| 日韩一区二区免费电影| 精品欧美一区二区三区精品久久| 亚洲精品一线二线三线无人区| 国产视频不卡一区| 亚洲欧美区自拍先锋| 午夜电影久久久| 国产一区二区在线影院| 国产69精品久久99不卡| 91一区一区三区| 7777精品伊人久久久大香线蕉最新版| 日韩网站在线看片你懂的| 久久蜜桃一区二区| 亚洲欧洲日本在线| 日本系列欧美系列| 99视频一区二区三区| 欧美三级电影在线观看| 日韩欧美精品在线| 国产精品久久福利| 蜜桃精品视频在线| 一本久道中文字幕精品亚洲嫩| 777午夜精品视频在线播放| 国产欧美精品一区aⅴ影院| 亚洲免费观看在线视频| 免费成人在线影院| 99国产欧美另类久久久精品| 欧美一区二区在线免费播放| 国产精品丝袜一区| 男女激情视频一区| a亚洲天堂av| 欧美成人免费网站| 亚洲精选免费视频| 国产乱子轮精品视频| 色狠狠色噜噜噜综合网| 久久嫩草精品久久久精品| 亚洲va欧美va天堂v国产综合| 国产成人精品免费看| 欧美一区2区视频在线观看| 国产精品福利一区| 韩国成人在线视频| 欧美日韩精品一区二区| 国产精品人妖ts系列视频| 青青草97国产精品免费观看无弹窗版| 99久久亚洲一区二区三区青草 | 一区二区高清免费观看影视大全| 激情五月婷婷综合| 欧美日韩精品免费观看视频 | 国产原创一区二区| 欧美精品一级二级三级| 黄色小说综合网站| 欧美日韩一区成人| 亚洲精品成人在线| 成人黄色免费短视频| 久久欧美一区二区| 麻豆国产精品视频| 欧美精品视频www在线观看 | 精品成人一区二区三区四区| 亚洲国产精品综合小说图片区| 成人综合婷婷国产精品久久免费| 日韩精品一区在线| 蜜乳av一区二区三区| 欧美性大战xxxxx久久久| 亚洲欧洲日韩av| a级精品国产片在线观看| 国产欧美一区二区三区鸳鸯浴 | 激情成人综合网| 日韩一卡二卡三卡国产欧美| 亚洲国产视频在线| 日本道免费精品一区二区三区| 国产精品二三区| 99精品欧美一区二区三区小说 | 一区二区三区中文字幕电影| 91日韩在线专区| 国产精品美女久久久久久| 国产激情精品久久久第一区二区| 欧美精品一区二区不卡| 精品一区二区在线观看| 日韩精品一区二| 国产精品88av| 国产精品久久久久久久久久免费看 | 亚洲欧美一区二区三区孕妇| 成人国产精品视频| 中文字幕在线播放不卡一区| 成人性生交大片免费看在线播放 | 狠狠狠色丁香婷婷综合激情| 久久综合九色综合欧美就去吻| 久草中文综合在线| 国产欧美一区二区精品仙草咪| 国产91丝袜在线播放0| ...av二区三区久久精品| 91免费版在线| 亚洲一区自拍偷拍| 日韩欧美中文一区二区| 精品一区二区三区日韩| 亚洲一区二区欧美日韩| 欧美一区二区网站| 国产综合久久久久久久久久久久| 久久丝袜美腿综合| a美女胸又www黄视频久久| 亚洲国产一区二区在线播放| 欧美一区二区成人6969| 国产成人精品免费视频网站| 亚洲欧美在线aaa| 欧美日韩国产首页| 极品少妇xxxx精品少妇| 国产精品传媒入口麻豆| 欧美亚男人的天堂| 免费观看在线色综合| 久久精品亚洲一区二区三区浴池| 成人h动漫精品一区二区 | 福利电影一区二区| 亚洲精品乱码久久久久久日本蜜臀| 欧美日韩精品一区视频| 精品系列免费在线观看| 国产精品色婷婷久久58| 欧美三级电影精品| 极品少妇一区二区三区精品视频| 亚洲欧洲国产专区| 911国产精品| fc2成人免费人成在线观看播放| 亚洲国产精品一区二区www| 久久综合资源网| 91蜜桃传媒精品久久久一区二区| 日韩黄色在线观看| 中文字幕一区在线观看| 日韩一区二区三区av| 91色在线porny| 激情综合色综合久久综合| 亚洲人成亚洲人成在线观看图片| 337p亚洲精品色噜噜| 成人网在线播放| 日本 国产 欧美色综合| 一区二区三区在线免费播放| 精品国产一区二区三区久久影院| 一本高清dvd不卡在线观看| 国产精品18久久久久久久久 | 欧美一级欧美三级| 99国产麻豆精品| 国产一区二区在线观看免费| 亚洲综合无码一区二区| 国产欧美日韩久久| 日韩一区二区三区免费看| 91亚洲大成网污www|