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

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

?? beanpredicate.java

?? 這是一個有關common beanutils 的源碼
?? JAVA
字號:
/*
 * 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 org.apache.commons.collections.Predicate;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>Predicate implementation that applies the given <code>Predicate</code>
 * to the result of calling the given property getter.
 * </p>
 */
public class BeanPredicate implements Predicate {
   
    private final Log log = LogFactory.getLog(this.getClass());
    
    /** Name of the property whose value will be predicated */
    private String propertyName;
    /** <code>Predicate</code> to be applied to the property value */
    private Predicate predicate;

    /**
     * Constructs a <code>BeanPredicate</code> that applies the given
     * <code>Predicate</code> to the named property value.
     * @param propertyName the name of the property whose value is to be predicated,
     * not null
     * @param predicate the <code>Predicate</code> to be applied,
     * not null
     */
    public BeanPredicate(String propertyName, Predicate predicate) {
        this.propertyName = propertyName;
        this.predicate = predicate;
    }

    /**
     * Evaluates the given object by applying the {@link #getPredicate()}
     * to a property value named by {@link #getPropertyName()}.
     *
     * @param object The object being evaluated
     * @return the result of the predicate evaluation
     * @throws IllegalArgumentException when the property cannot be evaluated
     */
    public boolean evaluate(Object object) {
       
        boolean evaluation = false;

        try {
            Object propValue = PropertyUtils.getProperty( object, propertyName );
            evaluation = predicate.evaluate(propValue);
        } catch (IllegalArgumentException e) {
            final String errorMsg = "Problem during evaluation.";
            log.error("ERROR: " + errorMsg, e);
            throw e;
        } catch (IllegalAccessException e) {
            final String errorMsg = "Unable to access the property provided.";
            log.error(errorMsg, e);
            throw new IllegalArgumentException(errorMsg);
        } catch (InvocationTargetException e) {
            final String errorMsg = "Exception occurred in property's getter";
            log.error(errorMsg, e);
            throw new IllegalArgumentException(errorMsg);
        } catch (NoSuchMethodException e) {
            final String errorMsg = "Property not found.";
            log.error(errorMsg, e);
            throw new IllegalArgumentException(errorMsg);
        }

        return evaluation;
    }

    /**
     * Gets the name of the property whose value is to be predicated.
     * in the evaluation.
     * @return the property name, not null
     */ 
    public String getPropertyName() {
        return propertyName;
    }

    /** 
     * Sets the name of the property whose value is to be predicated.
     * @param propertyName the name of the property whose value is to be predicated,
     * not null
     */
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    /**
     * Gets the <code>Predicate</code> to be applied to the value of the named property
     * during {@link #evaluate}.
     * @return <code>Predicate</code>, not null
     */
    public Predicate getPredicate() {
        return predicate;
    }

    /** 
     * Sets the <code>Predicate</code> to be applied to the value of the named property
     * during {@link #evaluate(Object)}.
     * @param predicate <code>Predicate</code>, not null
     */
    public void setPredicate(Predicate predicate) {
        this.predicate = predicate;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二三区好的| 亚洲乱码一区二区三区在线观看| 成av人片一区二区| 国产麻豆一精品一av一免费 | 韩国成人精品a∨在线观看| 午夜欧美大尺度福利影院在线看| 中文字幕佐山爱一区二区免费| 久久久亚洲精华液精华液精华液| 日韩三级精品电影久久久| 欧美日韩一区不卡| 欧美肥妇bbw| 欧美日韩一区二区三区不卡| 欧美日韩国产综合久久| 欧美日韩色一区| 51精品久久久久久久蜜臀| 91精品视频网| 欧美四级电影网| 欧美精品vⅰdeose4hd| 欧美一区二区视频在线观看 | 日韩三级在线观看| 久久精品欧美一区二区三区不卡 | 美国十次综合导航| 轻轻草成人在线| 国产精品综合在线视频| av男人天堂一区| 欧美午夜精品免费| 欧美一区二区成人| 国产欧美一区二区在线| 亚洲欧美日韩小说| 日韩国产精品大片| 国产一区二区电影| 国产精品99久久久久久宅男| 国产麻豆一精品一av一免费| av在线播放一区二区三区| 在线免费观看日本一区| 日韩三级免费观看| 成人免费一区二区三区在线观看| 亚洲国产毛片aaaaa无费看 | 国产69精品久久久久毛片| 国产高清不卡二三区| 韩日精品视频一区| 91天堂素人约啪| 欧美日韩一区不卡| 久久久久久一二三区| 亚洲日本一区二区| 另类综合日韩欧美亚洲| youjizz国产精品| 日韩欧美亚洲国产另类 | 亚洲精品日韩综合观看成人91| 午夜久久电影网| 成人高清免费观看| 日韩精品一区二区三区在线| 亚洲欧洲国产日本综合| 久久国产麻豆精品| 欧美午夜精品一区二区三区| 欧美激情综合在线| 久久精品99久久久| 欧美色网一区二区| 亚洲乱码国产乱码精品精小说 | 亚洲日本在线观看| 国产成人精品在线看| 678五月天丁香亚洲综合网| 国产精品免费久久| 国产美女av一区二区三区| 欧美理论在线播放| 亚洲图片欧美色图| 91视视频在线观看入口直接观看www | 色噜噜狠狠色综合欧洲selulu| 欧美成人女星排名| 日本不卡一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲影视资源网| 99亚偷拍自图区亚洲| 久久亚洲综合色一区二区三区| 视频在线观看国产精品| 欧美日韩黄色一区二区| 亚洲精品乱码久久久久久日本蜜臀| 国产成人免费高清| 国产日韩欧美麻豆| 懂色av中文一区二区三区| 久久久噜噜噜久噜久久综合| 美女精品一区二区| 日韩欧美国产高清| 奇米影视7777精品一区二区| 欧美美女视频在线观看| 午夜久久电影网| 日韩亚洲欧美中文三级| 美女精品自拍一二三四| 精品电影一区二区| 国产高清亚洲一区| 亚洲婷婷综合色高清在线| 粉嫩av亚洲一区二区图片| 欧美经典一区二区三区| 亚洲一区二区三区美女| 欧美日韩一区二区在线观看| 视频一区在线播放| 色婷婷久久一区二区三区麻豆| √…a在线天堂一区| 91在线你懂得| 婷婷开心激情综合| 日韩一级高清毛片| 风间由美性色一区二区三区| 国产精品情趣视频| 91行情网站电视在线观看高清版| 中文字幕av一区 二区| 91亚洲精品乱码久久久久久蜜桃| 亚洲乱码中文字幕| 欧美一区二区三区播放老司机| 久久国产剧场电影| 国产精品久久久久国产精品日日| 91成人国产精品| 麻豆国产精品官网| 日韩一区有码在线| 日韩欧美亚洲一区二区| heyzo一本久久综合| 亚洲成人福利片| 精品国精品国产| 色婷婷综合五月| 麻豆成人免费电影| 亚洲色图在线播放| 精品成人一区二区三区四区| 9色porny自拍视频一区二区| 午夜av电影一区| 国产精品久久久久久久久快鸭| 欧美一区二区精品在线| 99精品国产99久久久久久白柏| 免费观看一级特黄欧美大片| 国产精品理伦片| 精品久久久久久无| 欧美综合久久久| 国产成人av一区| 日韩av电影免费观看高清完整版在线观看 | 国产精品久久久久影院色老大| 欧美丝袜丝nylons| 波波电影院一区二区三区| 久久99久久精品欧美| 亚洲综合丝袜美腿| 国产精品久久久久久久久图文区 | 久久久亚洲国产美女国产盗摄| 欧美性色黄大片| 不卡av在线免费观看| 美女在线一区二区| 亚洲成人在线免费| 国产精品视频在线看| 日韩欧美一卡二卡| 777xxx欧美| 91超碰这里只有精品国产| 色综合久久综合| 国产乱码精品一区二区三| 日本欧美一区二区三区乱码 | 在线国产电影不卡| 99国产精品久| 国产精品亚洲视频| 国精产品一区一区三区mba视频 | 精品欧美一区二区久久| 91麻豆精品国产91久久久使用方法| 色美美综合视频| 99re这里只有精品6| 成人综合日日夜夜| 粉嫩av一区二区三区| 国产精品69久久久久水密桃| 久久99久久精品欧美| 久久av老司机精品网站导航| 麻豆精品一区二区av白丝在线| 视频一区视频二区中文字幕| 天天综合色天天综合色h| 首页亚洲欧美制服丝腿| 日韩**一区毛片| 乱一区二区av| 国产馆精品极品| 99免费精品视频| 欧美调教femdomvk| 日韩一区二区在线播放| 欧美tickling网站挠脚心| 久久欧美中文字幕| 国产精品成人一区二区艾草| 亚洲猫色日本管| 亚洲综合免费观看高清完整版 | 欧美一区二区三区日韩视频| 日韩免费一区二区三区在线播放| 日韩精品一区二区三区四区视频 | 国产精品理论片| 亚洲男人的天堂在线观看| 亚洲综合丁香婷婷六月香| 日本欧美加勒比视频| 国产精品一区三区| 91啪亚洲精品| 精品蜜桃在线看| 亚洲欧美自拍偷拍| 日本欧美大码aⅴ在线播放| 激情五月婷婷综合| 日本伦理一区二区| 色综合久久九月婷婷色综合| 一本一道综合狠狠老| 精品欧美黑人一区二区三区| 亚洲婷婷国产精品电影人久久| 亚洲福利视频一区二区| 国产传媒久久文化传媒| 欧美亚州韩日在线看免费版国语版| 久久亚洲精华国产精华液|