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

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

?? beanutils.java

?? 這是一個有關common beanutils 的源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.apache.commons.beanutils;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;



/**
 * <p>Utility methods for populating JavaBeans properties via reflection.</p>
 *
 * <p>The implementations are provided by {@link BeanUtilsBean}.
 * These static utility methods use the default instance.
 * More sophisticated behaviour can be provided by using a <code>BeanUtilsBean</code> instance.</p>
 *
 * @author Craig R. McClanahan
 * @author Ralph Schaer
 * @author Chris Audley
 * @author Rey Francois
 * @author Gregor Rayman
 * @version $Revision: 687089 $ $Date: 2008-08-19 17:33:30 +0100 (Tue, 19 Aug 2008) $
 * @see BeanUtilsBean
 */

public class BeanUtils {


    // ------------------------------------------------------ Private Variables


    /**
     * The debugging detail level for this component.
     * 
     * Note that this static variable will have unexpected side-effects if
     * this class is deployed in a shared classloader within a container.
     * However as it is actually completely ignored by this class due to its
     * deprecated status, it doesn't do any actual harm.
     * 
     * @deprecated BeanUtils now uses commons-logging for all log messages.
     *             Use your favorite logging tool to configure logging for
     *             this class.
     */
    private static int debug = 0;

    /**
     * The <code>debug</code> static property is no longer used
     * @return debug property
     * @deprecated BeanUtils now uses commons-logging for all log messages.
     *             Use your favorite logging tool to configure logging for
     *             this class.
     */
    public static int getDebug() {
        return (debug);
    }

    /**
     * The <code>debug</code> static property is no longer used
     * @param newDebug debug property
     * @deprecated BeanUtils now uses commons-logging for all log messages.
     *             Use your favorite logging tool to configure logging for
     *             this class.
     */
    public static void setDebug(int newDebug) {
        debug = newDebug;
    }

    // --------------------------------------------------------- Class Methods


    /**
     * <p>Clone a bean based on the available property getters and setters,
     * even if the bean class itself does not implement Cloneable.</p>
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param bean Bean to be cloned
     * @return the cloned bean
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception InstantiationException if a new instance of the bean's
     *  class cannot be instantiated
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @exception NoSuchMethodException if an accessor method for this
     *  property cannot be found
     * @see BeanUtilsBean#cloneBean
     */
    public static Object cloneBean(Object bean)
            throws IllegalAccessException, InstantiationException,
            InvocationTargetException, NoSuchMethodException {

        return BeanUtilsBean.getInstance().cloneBean(bean);

    }


    /**
     * <p>Copy property values from the origin bean to the destination bean
     * for all cases where the property names are the same.</p>
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param dest Destination bean whose properties are modified
     * @param orig Origin bean whose properties are retrieved
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method
     * @exception IllegalArgumentException if the <code>dest</code> or
     *  <code>orig</code> argument is null or if the <code>dest</code> 
     *  property type is different from the source type and the relevant
     *  converter has not been registered.
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception
     * @see BeanUtilsBean#copyProperties
     */
    public static void copyProperties(Object dest, Object orig)
        throws IllegalAccessException, InvocationTargetException {
        
        BeanUtilsBean.getInstance().copyProperties(dest, orig);
    }


    /**
     * <p>Copy the specified property value to the specified destination bean,
     * performing any type conversion that is required.</p>    
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param bean Bean on which setting is to be performed
     * @param name Property name (can be nested/indexed/mapped/combo)
     * @param value Value 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
     * @see BeanUtilsBean#copyProperty     
     */
    public static void copyProperty(Object bean, String name, Object value)
        throws IllegalAccessException, InvocationTargetException {

        BeanUtilsBean.getInstance().copyProperty(bean, name, value);
    }


    /**
     * <p>Return the entire set of properties for which the specified bean
     * provides a read method.</p>
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param bean Bean whose properties are to be extracted
     * @return Map of property descriptors
     *
     * @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
     * @see BeanUtilsBean#describe 
     */
    public static Map describe(Object bean)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        return BeanUtilsBean.getInstance().describe(bean);
    }


    /**
     * <p>Return the value of the specified array property of the specified
     * bean, as a String array.</p>
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param bean Bean whose property is to be extracted
     * @param name Name of the property to be extracted
     * @return The array property value
     *
     * @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
     * @see BeanUtilsBean#getArrayProperty 
     */
    public static String[] getArrayProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {

        return BeanUtilsBean.getInstance().getArrayProperty(bean, name);
    }


    /**
     * <p>Return the value of the specified indexed property of the specified
     * bean, as a String.</p>
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @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
     * @see BeanUtilsBean#getIndexedProperty(Object, String)
     */
    public static String getIndexedProperty(Object bean, String name)
            throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException {
        
        return BeanUtilsBean.getInstance().getIndexedProperty(bean, name);

    }


    /**
     * 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
     *
     * <p>For more details see <code>BeanUtilsBean</code>.</p>
     *
     * @param bean Bean whose property is to be extracted
     * @param name Simple property name of the property value to be extracted

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美丰满少妇xxxxx高潮对白| 日韩不卡一区二区三区| 欧美激情综合网| 欧美一区二区三区视频在线观看| 欧美精品v国产精品v日韩精品| 日韩午夜激情视频| 欧美一区二区三区视频免费播放| 日韩欧美国产一二三区| 亚洲国产经典视频| 亚洲激情五月婷婷| 九一久久久久久| 国产精品亚洲午夜一区二区三区| 99久久精品免费| 欧美一级日韩不卡播放免费| 精品久久国产97色综合| 国产精品国产三级国产三级人妇| 天堂一区二区在线免费观看| 国产成a人亚洲| 欧美综合亚洲图片综合区| 欧美成人三级电影在线| 亚洲精选一二三| 国产精品一区二区男女羞羞无遮挡| 色综合久久99| 精品国产乱码久久久久久久久| 亚洲在线视频一区| 国产**成人网毛片九色| 91精品欧美久久久久久动漫| 综合久久综合久久| 免费成人深夜小野草| 日本韩国欧美国产| 国产午夜精品在线观看| 美女视频免费一区| 欧美日韩一区视频| 一区二区三区在线看| 粉嫩一区二区三区在线看| 亚洲精品在线观看视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美福利视频一区| 秋霞电影一区二区| 久久综合网色—综合色88| 激情小说欧美图片| 国产视频一区在线播放| 成人午夜av电影| 亚洲理论在线观看| 欧美精品在线观看一区二区| 青青草视频一区| 精品欧美乱码久久久久久| 国内精品伊人久久久久影院对白| 久久亚洲一区二区三区四区| 国产69精品久久久久毛片| 国产精品亲子伦对白| 一本一本大道香蕉久在线精品| 一区二区久久久久| 91精品国产91久久综合桃花| 国产一区二区三区高清播放| 国产精品久久看| 91国偷自产一区二区开放时间 | 91精品国产综合久久久久久 | 国产精品福利在线播放| 91丨porny丨户外露出| 午夜亚洲国产au精品一区二区| 欧美一级日韩不卡播放免费| 高清不卡一区二区| 一级中文字幕一区二区| 欧美第一区第二区| av在线综合网| 日韩电影在线看| 久久综合中文字幕| 欧美影视一区在线| 国产乱色国产精品免费视频| 亚洲精品视频免费观看| 日韩欧美123| 99久久亚洲一区二区三区青草| 日韩精品乱码免费| 亚洲国产精品二十页| 欧美日本乱大交xxxxx| 欧美日高清视频| 国产不卡视频在线观看| 亚洲成人自拍偷拍| 国产精品初高中害羞小美女文| 日韩一区二区三区观看| 91免费国产在线观看| 久久99国产精品免费网站| 日韩理论电影院| 久久久久久久久蜜桃| 欧美视频完全免费看| 成人国产在线观看| 精品一区二区日韩| 亚洲二区在线视频| 亚洲欧美欧美一区二区三区| 国产性做久久久久久| 日韩美女视频在线| 欧美精品在线观看播放| 91国在线观看| 高清av一区二区| 国产成人精品一区二| 韩国在线一区二区| 青椒成人免费视频| 婷婷亚洲久悠悠色悠在线播放| 综合久久久久久| 国产欧美精品一区二区色综合朱莉 | 亚洲免费观看高清完整版在线| 久久在线免费观看| 日韩欧美国产一区二区在线播放| 在线观看网站黄不卡| 91在线精品一区二区三区| 国产精品资源在线观看| 美女视频第一区二区三区免费观看网站 | 亚洲成人自拍偷拍| 亚洲制服丝袜av| 一区二区三区成人| 亚洲三级在线观看| 亚洲视频每日更新| 亚洲精品你懂的| 亚洲欧美色图小说| 亚洲欧美激情在线| 一区二区三区自拍| 亚洲精品久久嫩草网站秘色| 亚洲人成小说网站色在线| 亚洲欧美在线视频观看| 国产精品亲子乱子伦xxxx裸| 国产精品美女久久久久久久 | 国产精品正在播放| 国产一区欧美日韩| 国产黄色成人av| 成人一区二区三区在线观看| jiyouzz国产精品久久| 99热在这里有精品免费| 在线一区二区三区四区五区| 一本色道久久综合亚洲91| 欧美自拍偷拍一区| 51午夜精品国产| 精品国产青草久久久久福利| 久久久国产午夜精品| 国产精品美女久久福利网站| 亚洲免费观看高清完整版在线 | 日韩高清不卡一区二区三区| 久久精品国产亚洲高清剧情介绍| 国产精品一二三四五| 91亚洲精品久久久蜜桃网站 | 亚洲超碰精品一区二区| 欧美aaa在线| 国产 日韩 欧美大片| 色综合av在线| 日韩欧美在线1卡| 国产欧美一区二区精品性色| 一区二区三区四区国产精品| 日韩av在线发布| 国产成人日日夜夜| 欧美三区在线视频| 久久久久久久综合狠狠综合| 亚洲欧美日韩国产手机在线| 美女www一区二区| 99在线视频精品| 日韩三级高清在线| 日韩美女视频一区二区| 奇米影视7777精品一区二区| 成人白浆超碰人人人人| 91.xcao| 中文字幕一区日韩精品欧美| 欧美aaaaa成人免费观看视频| 国产91露脸合集magnet| 91精品国产综合久久久久久久久久| 中文字幕欧美日本乱码一线二线| 亚洲国产乱码最新视频| 成人性视频网站| 欧美欧美午夜aⅴ在线观看| 国产精品网站导航| 免费精品视频在线| 91网站最新地址| 久久综合九色综合久久久精品综合| 亚洲视频在线一区二区| 国产精品88888| 日韩欧美高清dvd碟片| 亚洲狠狠丁香婷婷综合久久久| 国产夫妻精品视频| 日韩西西人体444www| 亚洲综合色自拍一区| 丁香亚洲综合激情啪啪综合| 欧美变态凌虐bdsm| 日一区二区三区| 在线观看成人小视频| 日韩美女视频一区二区| 成人黄色大片在线观看| 欧美精品一区二区三| 日韩国产精品91| 欧美精品久久99| 亚洲高清免费视频| 在线精品观看国产| 亚洲另类在线制服丝袜| 99久久精品国产一区| 亚洲国产高清aⅴ视频| 粗大黑人巨茎大战欧美成人| 久久精品一区二区三区四区| 热久久一区二区| 日韩精品专区在线影院重磅| 美女精品一区二区| 精品国产免费一区二区三区四区| 日韩av一区二| 欧美一区二区国产|