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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mappedpropertydescriptor.java

?? osworkflow修改版本
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Header: /cvs/osworkflow/src/designer/com/opensymphony/workflow/designer/beanutils/MappedPropertyDescriptor.java,v 1.1 2003/12/06 18:05:58 hani Exp $ * $Revision: 1.1 $ * $Date: 2003/12/06 18:05:58 $ * * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in *    the documentation and/or other materials provided with the *    distribution. * * 3. The end-user documentation included with the redistribution, *    if any, must include the following acknowledgement: *       "This product includes software developed by the *        Apache Software Foundation (http://www.apache.org/)." *    Alternately, this acknowledgement may appear in the software itself, *    if and wherever such third-party acknowledgements normally appear. * * 4. The names "Apache", "The Jakarta Project", "Commons", and "Apache Software *    Foundation" must not be used to endorse or promote products derived *    from this software without prior written permission. For written *    permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", *    "Apache" nor may "Apache" appear in their names without prior *    written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */package com.opensymphony.workflow.designer.beanutils;import java.beans.IntrospectionException;import java.beans.PropertyDescriptor;import java.lang.reflect.Method;import java.lang.reflect.Modifier;import java.security.AccessController;import java.security.PrivilegedAction;/** * A MappedPropertyDescriptor describes one mapped property. * Mapped properties are multivalued properties like indexed properties * but that are accessed with a String key instead of an index. * Such property values are typically stored in a Map collection. * For this class to work properly, a mapped value must have * getter and setter methods of the form * <p><code>get<strong>Property</strong>(String key)<code> and * <p><code>set&ltProperty&gt(String key, Object value)<code>, * <p>where <code><strong>Property</strong></code> must be replaced * by the name of the property. * * @author Rey Fran鏾is * @author Gregor Ra齧an * @version $Revision: 1.1 $ $Date: 2003/12/06 18:05:58 $ * @see java.beans.PropertyDescriptor */public class MappedPropertyDescriptor extends PropertyDescriptor{  // ----------------------------------------------------- Instance Variables  /** The underlying data type of the property we are describing. */  private Class mappedPropertyType;  /** The reader method for this property (if any). */  private Method mappedReadMethod;  /** The writer method for this property (if any). */  private Method mappedWriteMethod;  /** The parameter types array for the reader method signature. */  private static final Class[] stringClassArray = new Class[]{String.class};  // ----------------------------------------------------------- Constructors  /**   * Constructs a MappedPropertyDescriptor for a property that follows   * the standard Java convention by having getFoo and setFoo   * accessor methods, with the addition of a String parameter (the key).   * Thus if the argument name is "fred", it will   * assume that the writer method is "setFred" and the reader method   * is "getFred".  Note that the property name should start with a lower   * case character, which will be capitalized in the method names.   *   * @param propertyName The programmatic name of the property.   * @param beanClass    The Class object for the target bean.  For   *                     example sun.beans.OurButton.class.   * @throws IntrospectionException if an exception occurs during   *                                introspection.   */  public MappedPropertyDescriptor(String propertyName, Class beanClass) throws IntrospectionException  {    super(propertyName, null, null);    if(propertyName == null || propertyName.length() == 0)    {      throw new IntrospectionException("bad property name: " + propertyName + " on class: " + beanClass.getClass().getName());    }    setName(propertyName);    String base = capitalizePropertyName(propertyName);    // Look for mapped read method and matching write method    try    {      mappedReadMethod = findMethod(beanClass, "get" + base, 1, stringClassArray);      Class params[] = {String.class, mappedReadMethod.getReturnType()};      mappedWriteMethod = findMethod(beanClass, "set" + base, 2, params);    }    catch(IntrospectionException e)    {      ;    }    // If there's no read method, then look for just a write method    if(mappedReadMethod == null)    {      mappedWriteMethod = findMethod(beanClass, "set" + base, 2);    }    if((mappedReadMethod == null) && (mappedWriteMethod == null))    {      throw new IntrospectionException("Property '" + propertyName + "' not found on " + beanClass.getName());    }    findMappedPropertyType();  }  /**   * This constructor takes the name of a mapped property, and method   * names for reading and writing the property.   *   * @param propertyName     The programmatic name of the property.   * @param beanClass        The Class object for the target bean.  For   *                         example sun.beans.OurButton.class.   * @param mappedGetterName The name of the method used for   *                         reading one of the property values.  May be null if the   *                         property is write-only.   * @param mappedSetterName The name of the method used for writing   *                         one of the property values.  May be null if the property is   *                         read-only.   * @throws IntrospectionException if an exception occurs during   *                                introspection.   */  public MappedPropertyDescriptor(String propertyName, Class beanClass, String mappedGetterName, String mappedSetterName) throws IntrospectionException  {    super(propertyName, null, null);    if(propertyName == null || propertyName.length() == 0)    {      throw new IntrospectionException("bad property name: " + propertyName);    }    setName(propertyName);    // search the mapped get and set methods    mappedReadMethod = findMethod(beanClass, mappedGetterName, 1, stringClassArray);    if(mappedReadMethod != null)    {      Class params[] = {String.class, mappedReadMethod.getReturnType()};      mappedWriteMethod = findMethod(beanClass, mappedSetterName, 2, params);    }    else    {      mappedWriteMethod = findMethod(beanClass, mappedSetterName, 2);    }    findMappedPropertyType();  }  /**   * This constructor takes the name of a mapped property, and Method   * objects for reading and writing the property.   *   * @param propertyName The programmatic name of the property.   * @param mappedGetter The method used for reading one of   *                     the property values.  May be be null if the property   *                     is write-only.   * @param mappedSetter The method used for writing one the   *                     property values.  May be null if the property is read-only.   * @throws IntrospectionException if an exception occurs during   *                                introspection.   */  public MappedPropertyDescriptor(String propertyName, Method mappedGetter, Method mappedSetter) throws IntrospectionException  {    super(propertyName, mappedGetter, mappedSetter);    if(propertyName == null || propertyName.length() == 0)    {      throw new IntrospectionException("bad property name: " + propertyName);    }    setName(propertyName);    mappedReadMethod = mappedGetter;    mappedWriteMethod = mappedSetter;    findMappedPropertyType();  }  // -------------------------------------------------------- Public Methods  /**   * Gets the Class object for the property values.   *   * @return The Java type info for the property values.  Note that   *         the "Class" object may describe a built-in Java type such as "int".   *         The result may be "null" if this is a mapped property that   *         does not support non-keyed access.   *         <p/>   *         This is the type that will be returned by the mappedReadMethod.   */  public Class getMappedPropertyType()  {    return mappedPropertyType;  }  /**   * Gets the method that should be used to read one of the property value.   *   * @return The method that should be used to read the property value.   *         May return null if the property can't be read.   */  public Method getMappedReadMethod()  {    return mappedReadMethod;  }  /**   * Sets the method that should be used to read one of the property value.   *   * @param mappedGetter The new getter method.   */  public void setMappedReadMethod(Method mappedGetter) throws IntrospectionException  {    mappedReadMethod = mappedGetter;    findMappedPropertyType();  }  /**   * Gets the method that should be used to write one of the property value.   *   * @return The method that should be used to write one of the property value.   *         May return null if the property can't be written.   */  public Method getMappedWriteMethod()  {    return mappedWriteMethod;  }  /**   * Sets the method that should be used to write the property value.   *   * @param mappedSetter The new setter method.   */  public void setMappedWriteMethod(Method mappedSetter) throws IntrospectionException  {    mappedWriteMethod = mappedSetter;    findMappedPropertyType();  }  // ------------------------------------------------------- Private Methods  /**   * Introspect our bean class to identify the corresponding getter   * and setter methods.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国在线一区二区| 亚洲一区免费在线观看| 精品午夜一区二区三区在线观看| 欧美一卡二卡三卡| 久久电影网站中文字幕| 久久久久久综合| 成人免费高清视频在线观看| 国产精品国产三级国产aⅴ中文| 99久久免费精品| 一区二区在线免费观看| 欧美精三区欧美精三区| 美日韩一区二区| 欧美国产视频在线| 欧美亚洲国产一区二区三区 | 亚洲在线视频网站| 欧美日韩免费观看一区二区三区| 日韩精品视频网站| 久久先锋资源网| 91麻豆国产在线观看| 日韩精品电影在线| 日本一区二区综合亚洲| 在线观看av不卡| 国产综合色精品一区二区三区| 中文子幕无线码一区tr| 欧美日韩国产高清一区二区三区| 国产在线不卡视频| 亚洲综合激情另类小说区| 精品久久人人做人人爽| 91久久线看在观草草青青| 久久精品国产亚洲高清剧情介绍| 亚洲视频在线一区| 精品精品国产高清a毛片牛牛 | 国产一区二区三区av电影| 亚洲视频中文字幕| 精品国产123| 欧美日韩亚洲国产综合| 丁香六月久久综合狠狠色| 五月婷婷激情综合| 1000部国产精品成人观看| 欧美一区二区三区系列电影| 99在线视频精品| 精品中文字幕一区二区小辣椒 | 久久蜜桃一区二区| 欧美性一区二区| 粉嫩13p一区二区三区| 免费不卡在线观看| 亚洲精品乱码久久久久久久久 | 日韩欧美二区三区| 日本久久一区二区| 风流少妇一区二区| 久久se精品一区精品二区| 午夜精品久久久久久久99水蜜桃 | 成人黄色在线视频| 久久成人羞羞网站| 日本v片在线高清不卡在线观看| 国产精品国产三级国产aⅴ中文 | 最新国产精品久久精品| 久久综合九色综合欧美98| 在线综合+亚洲+欧美中文字幕| 99精品视频在线免费观看| 国产麻豆精品95视频| 蜜桃视频免费观看一区| 五月天婷婷综合| 亚洲福利视频导航| 亚洲激情五月婷婷| 亚洲精品乱码久久久久久日本蜜臀| 国产欧美1区2区3区| 久久久99免费| 久久综合久久综合久久综合| 精品国产乱码久久久久久夜甘婷婷| 欧美乱熟臀69xxxxxx| 欧美日韩精品综合在线| 欧美午夜宅男影院| 在线观看一区二区精品视频| 色先锋aa成人| 欧美在线观看视频在线| 欧美日韩一区二区三区四区| 欧美精品一二三| 91精品国产色综合久久不卡蜜臀 | 国产成人综合亚洲91猫咪| 国产精品影视天天线| 国产精品一区二区久久不卡| 国产精品综合一区二区三区| 国产福利精品一区二区| www.日韩av| 91成人网在线| 91精品在线免费| 日韩免费看的电影| 久久噜噜亚洲综合| 中文字幕一区二区三区乱码在线| 亚洲欧洲av另类| 亚洲成人综合在线| 美女一区二区久久| 国产99久久久国产精品潘金网站| 成人一区二区视频| 91成人在线精品| 91精品国产综合久久久久久久| 日韩欧美成人激情| 国产精品久久久久久福利一牛影视| 亚洲视频在线观看三级| 亚洲综合清纯丝袜自拍| 日本成人超碰在线观看| 国产成人午夜高潮毛片| 色综合天天综合网国产成人综合天| 欧美体内she精视频| 日韩免费性生活视频播放| 国产女主播一区| 亚洲高清在线视频| 国产精品资源网| 欧洲精品视频在线观看| 欧美本精品男人aⅴ天堂| 1024成人网| 免费欧美高清视频| 91在线播放网址| 日韩欧美国产三级| 亚洲男人天堂一区| 激情偷乱视频一区二区三区| 99国产精品99久久久久久| 日韩一区二区三免费高清| 中文av一区二区| 免费在线观看精品| 一本久道中文字幕精品亚洲嫩| 精品久久久久久久久久久久久久久久久| 中文字幕一区二区在线播放| 日产国产高清一区二区三区 | 日韩理论片一区二区| 午夜久久久久久久久| 国产成人av福利| 777亚洲妇女| 亚洲色图丝袜美腿| 国产一区不卡在线| 欧美精品在线观看一区二区| 国产精品久久久久7777按摩| 精品综合免费视频观看| 欧美性三三影院| 国产精品久久毛片av大全日韩| 免费高清在线一区| 精品视频1区2区3区| 国产日韩欧美精品电影三级在线 | 亚洲国产日韩综合久久精品| 国产乱子轮精品视频| 69av一区二区三区| 一区二区三区在线观看国产| 高清不卡一区二区| 久久只精品国产| 青青草国产精品亚洲专区无| 欧洲一区二区三区在线| 亚洲人成亚洲人成在线观看图片| 国内精品国产三级国产a久久| 3atv在线一区二区三区| 亚洲国产欧美在线人成| 色婷婷综合久久| 中文字幕不卡的av| 懂色av一区二区在线播放| 337p粉嫩大胆噜噜噜噜噜91av| 全国精品久久少妇| 欧美一区二区三区在线观看视频| 亚洲国产综合视频在线观看| 日本道免费精品一区二区三区| 成人免费一区二区三区视频| 成人爽a毛片一区二区免费| 久久久久国产精品麻豆| 久久99久久精品| 日韩精品一区二区三区视频| 青草av.久久免费一区| 91精品国产全国免费观看| 亚洲电影欧美电影有声小说| 欧美日韩精品专区| 免费欧美在线视频| 精品理论电影在线观看| 国产一区二区在线观看视频| 久久一留热品黄| 国产精品白丝av| 国产欧美久久久精品影院| 懂色av一区二区三区蜜臀| 国产精品久久久久久户外露出 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产不卡在线播放| 国产精品国产三级国产a| eeuss鲁片一区二区三区在线看| 国产精品成人一区二区三区夜夜夜 | 久久99精品一区二区三区三区| 91精品国产日韩91久久久久久| 久久精品国产一区二区| 久久久久久久综合| 不卡欧美aaaaa| 亚洲精品自拍动漫在线| 欧美日韩在线精品一区二区三区激情| 午夜视频在线观看一区二区三区| 欧美一区二区三区四区在线观看| 精品一区免费av| 中文字幕高清一区| 欧美色图在线观看| 久久国内精品自在自线400部| 久久久久久毛片| 在线观看一区二区精品视频| 麻豆国产一区二区| 国产精品女同一区二区三区| 欧洲视频一区二区| 久久精品理论片|