commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r893718 [8/24] - in /websites/production/commons/content/proper/commons-beanutils: ./ apidocs/ apidocs/org/apache/commons/beanutils/ apidocs/org/apache/commons/beanutils/class-use/ apidocs/org/apache/commons/beanutils/converters/ apidocs/or...
Date Sat, 11 Jan 2014 16:56:23 GMT
Modified: websites/production/commons/content/proper/commons-beanutils/apidocs/src-html/org/apache/commons/beanutils/PropertyUtilsBean.html
==============================================================================
--- websites/production/commons/content/proper/commons-beanutils/apidocs/src-html/org/apache/commons/beanutils/PropertyUtilsBean.html (original)
+++ websites/production/commons/content/proper/commons-beanutils/apidocs/src-html/org/apache/commons/beanutils/PropertyUtilsBean.html Sat Jan 11 16:56:12 2014
@@ -121,7 +121,7 @@
 <span class="sourceLineNo">113</span>     * The cache of PropertyDescriptor arrays for beans we have already<a name="line.113"></a>
 <span class="sourceLineNo">114</span>     * introspected, keyed by the java.lang.Class of this object.<a name="line.114"></a>
 <span class="sourceLineNo">115</span>     */<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    private WeakFastHashMap&lt;Class&lt;?&gt;, PropertyDescriptor[]&gt; descriptorsCache = null;<a name="line.116"></a>
+<span class="sourceLineNo">116</span>    private WeakFastHashMap&lt;Class&lt;?&gt;, BeanIntrospectionData&gt; descriptorsCache = null;<a name="line.116"></a>
 <span class="sourceLineNo">117</span>    private WeakFastHashMap&lt;Class&lt;?&gt;, FastHashMap&gt; mappedDescriptorsCache = null;<a name="line.117"></a>
 <span class="sourceLineNo">118</span><a name="line.118"></a>
 <span class="sourceLineNo">119</span>    /** An empty object array */<a name="line.119"></a>
@@ -137,7 +137,7 @@
 <span class="sourceLineNo">129</span><a name="line.129"></a>
 <span class="sourceLineNo">130</span>    /** Base constructor */<a name="line.130"></a>
 <span class="sourceLineNo">131</span>    public PropertyUtilsBean() {<a name="line.131"></a>
-<span class="sourceLineNo">132</span>        descriptorsCache = new WeakFastHashMap&lt;Class&lt;?&gt;, PropertyDescriptor[]&gt;();<a name="line.132"></a>
+<span class="sourceLineNo">132</span>        descriptorsCache = new WeakFastHashMap&lt;Class&lt;?&gt;, BeanIntrospectionData&gt;();<a name="line.132"></a>
 <span class="sourceLineNo">133</span>        descriptorsCache.setFast(true);<a name="line.133"></a>
 <span class="sourceLineNo">134</span>        mappedDescriptorsCache = new WeakFastHashMap&lt;Class&lt;?&gt;, FastHashMap&gt;();<a name="line.134"></a>
 <span class="sourceLineNo">135</span>        mappedDescriptorsCache.setFast(true);<a name="line.135"></a>
@@ -955,1317 +955,1329 @@
 <span class="sourceLineNo">947</span>            return (null);<a name="line.947"></a>
 <span class="sourceLineNo">948</span>        }<a name="line.948"></a>
 <span class="sourceLineNo">949</span><a name="line.949"></a>
-<span class="sourceLineNo">950</span>        PropertyDescriptor[] descriptors = getPropertyDescriptors(bean);<a name="line.950"></a>
-<span class="sourceLineNo">951</span>        if (descriptors != null) {<a name="line.951"></a>
-<span class="sourceLineNo">952</span><a name="line.952"></a>
-<span class="sourceLineNo">953</span>            for (int i = 0; i &lt; descriptors.length; i++) {<a name="line.953"></a>
-<span class="sourceLineNo">954</span>                if (name.equals(descriptors[i].getName())) {<a name="line.954"></a>
-<span class="sourceLineNo">955</span>                    return (descriptors[i]);<a name="line.955"></a>
-<span class="sourceLineNo">956</span>                }<a name="line.956"></a>
-<span class="sourceLineNo">957</span>            }<a name="line.957"></a>
-<span class="sourceLineNo">958</span>        }<a name="line.958"></a>
-<span class="sourceLineNo">959</span><a name="line.959"></a>
-<span class="sourceLineNo">960</span>        PropertyDescriptor result = null;<a name="line.960"></a>
-<span class="sourceLineNo">961</span>        FastHashMap mappedDescriptors =<a name="line.961"></a>
-<span class="sourceLineNo">962</span>                getMappedPropertyDescriptors(bean);<a name="line.962"></a>
-<span class="sourceLineNo">963</span>        if (mappedDescriptors == null) {<a name="line.963"></a>
-<span class="sourceLineNo">964</span>            mappedDescriptors = new FastHashMap();<a name="line.964"></a>
-<span class="sourceLineNo">965</span>            mappedDescriptors.setFast(true);<a name="line.965"></a>
-<span class="sourceLineNo">966</span>            mappedDescriptorsCache.put(bean.getClass(), mappedDescriptors);<a name="line.966"></a>
-<span class="sourceLineNo">967</span>        }<a name="line.967"></a>
-<span class="sourceLineNo">968</span>        result = (PropertyDescriptor) mappedDescriptors.get(name);<a name="line.968"></a>
-<span class="sourceLineNo">969</span>        if (result == null) {<a name="line.969"></a>
-<span class="sourceLineNo">970</span>            // not found, try to create it<a name="line.970"></a>
-<span class="sourceLineNo">971</span>            try {<a name="line.971"></a>
-<span class="sourceLineNo">972</span>                result = new MappedPropertyDescriptor(name, bean.getClass());<a name="line.972"></a>
-<span class="sourceLineNo">973</span>            } catch (IntrospectionException ie) {<a name="line.973"></a>
-<span class="sourceLineNo">974</span>                /* Swallow IntrospectionException<a name="line.974"></a>
-<span class="sourceLineNo">975</span>                 * TODO: Why?<a name="line.975"></a>
-<span class="sourceLineNo">976</span>                 */<a name="line.976"></a>
-<span class="sourceLineNo">977</span>            }<a name="line.977"></a>
-<span class="sourceLineNo">978</span>            if (result != null) {<a name="line.978"></a>
-<span class="sourceLineNo">979</span>                mappedDescriptors.put(name, result);<a name="line.979"></a>
-<span class="sourceLineNo">980</span>            }<a name="line.980"></a>
-<span class="sourceLineNo">981</span>        }<a name="line.981"></a>
+<span class="sourceLineNo">950</span>        BeanIntrospectionData data = getIntrospectionData(bean.getClass());<a name="line.950"></a>
+<span class="sourceLineNo">951</span>        PropertyDescriptor result = data.getDescriptor(name);<a name="line.951"></a>
+<span class="sourceLineNo">952</span>        if (result != null) {<a name="line.952"></a>
+<span class="sourceLineNo">953</span>            return result;<a name="line.953"></a>
+<span class="sourceLineNo">954</span>        }<a name="line.954"></a>
+<span class="sourceLineNo">955</span><a name="line.955"></a>
+<span class="sourceLineNo">956</span>        FastHashMap mappedDescriptors =<a name="line.956"></a>
+<span class="sourceLineNo">957</span>                getMappedPropertyDescriptors(bean);<a name="line.957"></a>
+<span class="sourceLineNo">958</span>        if (mappedDescriptors == null) {<a name="line.958"></a>
+<span class="sourceLineNo">959</span>            mappedDescriptors = new FastHashMap();<a name="line.959"></a>
+<span class="sourceLineNo">960</span>            mappedDescriptors.setFast(true);<a name="line.960"></a>
+<span class="sourceLineNo">961</span>            mappedDescriptorsCache.put(bean.getClass(), mappedDescriptors);<a name="line.961"></a>
+<span class="sourceLineNo">962</span>        }<a name="line.962"></a>
+<span class="sourceLineNo">963</span>        result = (PropertyDescriptor) mappedDescriptors.get(name);<a name="line.963"></a>
+<span class="sourceLineNo">964</span>        if (result == null) {<a name="line.964"></a>
+<span class="sourceLineNo">965</span>            // not found, try to create it<a name="line.965"></a>
+<span class="sourceLineNo">966</span>            try {<a name="line.966"></a>
+<span class="sourceLineNo">967</span>                result = new MappedPropertyDescriptor(name, bean.getClass());<a name="line.967"></a>
+<span class="sourceLineNo">968</span>            } catch (IntrospectionException ie) {<a name="line.968"></a>
+<span class="sourceLineNo">969</span>                /* Swallow IntrospectionException<a name="line.969"></a>
+<span class="sourceLineNo">970</span>                 * TODO: Why?<a name="line.970"></a>
+<span class="sourceLineNo">971</span>                 */<a name="line.971"></a>
+<span class="sourceLineNo">972</span>            }<a name="line.972"></a>
+<span class="sourceLineNo">973</span>            if (result != null) {<a name="line.973"></a>
+<span class="sourceLineNo">974</span>                mappedDescriptors.put(name, result);<a name="line.974"></a>
+<span class="sourceLineNo">975</span>            }<a name="line.975"></a>
+<span class="sourceLineNo">976</span>        }<a name="line.976"></a>
+<span class="sourceLineNo">977</span><a name="line.977"></a>
+<span class="sourceLineNo">978</span>        return result;<a name="line.978"></a>
+<span class="sourceLineNo">979</span><a name="line.979"></a>
+<span class="sourceLineNo">980</span>    }<a name="line.980"></a>
+<span class="sourceLineNo">981</span><a name="line.981"></a>
 <span class="sourceLineNo">982</span><a name="line.982"></a>
-<span class="sourceLineNo">983</span>        return result;<a name="line.983"></a>
-<span class="sourceLineNo">984</span><a name="line.984"></a>
-<span class="sourceLineNo">985</span>    }<a name="line.985"></a>
-<span class="sourceLineNo">986</span><a name="line.986"></a>
-<span class="sourceLineNo">987</span><a name="line.987"></a>
-<span class="sourceLineNo">988</span>    /**<a name="line.988"></a>
-<span class="sourceLineNo">989</span>     * &lt;p&gt;Retrieve the property descriptors for the specified class,<a name="line.989"></a>
-<span class="sourceLineNo">990</span>     * introspecting and caching them the first time a particular bean class<a name="line.990"></a>
-<span class="sourceLineNo">991</span>     * is encountered.&lt;/p&gt;<a name="line.991"></a>
+<span class="sourceLineNo">983</span>    /**<a name="line.983"></a>
+<span class="sourceLineNo">984</span>     * &lt;p&gt;Retrieve the property descriptors for the specified class,<a name="line.984"></a>
+<span class="sourceLineNo">985</span>     * introspecting and caching them the first time a particular bean class<a name="line.985"></a>
+<span class="sourceLineNo">986</span>     * is encountered.&lt;/p&gt;<a name="line.986"></a>
+<span class="sourceLineNo">987</span>     *<a name="line.987"></a>
+<span class="sourceLineNo">988</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.988"></a>
+<span class="sourceLineNo">989</span>     *<a name="line.989"></a>
+<span class="sourceLineNo">990</span>     * @param beanClass Bean class for which property descriptors are requested<a name="line.990"></a>
+<span class="sourceLineNo">991</span>     * @return the property descriptors<a name="line.991"></a>
 <span class="sourceLineNo">992</span>     *<a name="line.992"></a>
-<span class="sourceLineNo">993</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.993"></a>
-<span class="sourceLineNo">994</span>     *<a name="line.994"></a>
-<span class="sourceLineNo">995</span>     * @param beanClass Bean class for which property descriptors are requested<a name="line.995"></a>
-<span class="sourceLineNo">996</span>     * @return the property descriptors<a name="line.996"></a>
-<span class="sourceLineNo">997</span>     *<a name="line.997"></a>
-<span class="sourceLineNo">998</span>     * @exception IllegalArgumentException if &lt;code&gt;beanClass&lt;/code&gt; is null<a name="line.998"></a>
-<span class="sourceLineNo">999</span>     */<a name="line.999"></a>
-<span class="sourceLineNo">1000</span>    public PropertyDescriptor[]<a name="line.1000"></a>
-<span class="sourceLineNo">1001</span>            getPropertyDescriptors(Class&lt;?&gt; beanClass) {<a name="line.1001"></a>
-<span class="sourceLineNo">1002</span><a name="line.1002"></a>
-<span class="sourceLineNo">1003</span>        if (beanClass == null) {<a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>            throw new IllegalArgumentException("No bean class specified");<a name="line.1004"></a>
-<span class="sourceLineNo">1005</span>        }<a name="line.1005"></a>
-<span class="sourceLineNo">1006</span><a name="line.1006"></a>
-<span class="sourceLineNo">1007</span>        // Look up any cached descriptors for this bean class<a name="line.1007"></a>
-<span class="sourceLineNo">1008</span>        PropertyDescriptor[] descriptors = null;<a name="line.1008"></a>
-<span class="sourceLineNo">1009</span>        descriptors =<a name="line.1009"></a>
-<span class="sourceLineNo">1010</span>                descriptorsCache.get(beanClass);<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span>        if (descriptors != null) {<a name="line.1011"></a>
-<span class="sourceLineNo">1012</span>            return (descriptors);<a name="line.1012"></a>
-<span class="sourceLineNo">1013</span>        }<a name="line.1013"></a>
-<span class="sourceLineNo">1014</span><a name="line.1014"></a>
-<span class="sourceLineNo">1015</span>        descriptors = fetchPropertyDescriptors(beanClass);<a name="line.1015"></a>
-<span class="sourceLineNo">1016</span>        descriptorsCache.put(beanClass, descriptors);<a name="line.1016"></a>
-<span class="sourceLineNo">1017</span>        return (descriptors);<a name="line.1017"></a>
-<span class="sourceLineNo">1018</span><a name="line.1018"></a>
-<span class="sourceLineNo">1019</span>    }<a name="line.1019"></a>
+<span class="sourceLineNo">993</span>     * @exception IllegalArgumentException if &lt;code&gt;beanClass&lt;/code&gt; is null<a name="line.993"></a>
+<span class="sourceLineNo">994</span>     */<a name="line.994"></a>
+<span class="sourceLineNo">995</span>    public PropertyDescriptor[]<a name="line.995"></a>
+<span class="sourceLineNo">996</span>            getPropertyDescriptors(Class&lt;?&gt; beanClass) {<a name="line.996"></a>
+<span class="sourceLineNo">997</span><a name="line.997"></a>
+<span class="sourceLineNo">998</span>        return getIntrospectionData(beanClass).getDescriptors();<a name="line.998"></a>
+<span class="sourceLineNo">999</span><a name="line.999"></a>
+<span class="sourceLineNo">1000</span>    }<a name="line.1000"></a>
+<span class="sourceLineNo">1001</span><a name="line.1001"></a>
+<span class="sourceLineNo">1002</span>    /**<a name="line.1002"></a>
+<span class="sourceLineNo">1003</span>     * &lt;p&gt;Retrieve the property descriptors for the specified bean,<a name="line.1003"></a>
+<span class="sourceLineNo">1004</span>     * introspecting and caching them the first time a particular bean class<a name="line.1004"></a>
+<span class="sourceLineNo">1005</span>     * is encountered.&lt;/p&gt;<a name="line.1005"></a>
+<span class="sourceLineNo">1006</span>     *<a name="line.1006"></a>
+<span class="sourceLineNo">1007</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1007"></a>
+<span class="sourceLineNo">1008</span>     *<a name="line.1008"></a>
+<span class="sourceLineNo">1009</span>     * @param bean Bean for which property descriptors are requested<a name="line.1009"></a>
+<span class="sourceLineNo">1010</span>     * @return the property descriptors<a name="line.1010"></a>
+<span class="sourceLineNo">1011</span>     *<a name="line.1011"></a>
+<span class="sourceLineNo">1012</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; is null<a name="line.1012"></a>
+<span class="sourceLineNo">1013</span>     */<a name="line.1013"></a>
+<span class="sourceLineNo">1014</span>    public PropertyDescriptor[] getPropertyDescriptors(Object bean) {<a name="line.1014"></a>
+<span class="sourceLineNo">1015</span><a name="line.1015"></a>
+<span class="sourceLineNo">1016</span>        if (bean == null) {<a name="line.1016"></a>
+<span class="sourceLineNo">1017</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1017"></a>
+<span class="sourceLineNo">1018</span>        }<a name="line.1018"></a>
+<span class="sourceLineNo">1019</span>        return (getPropertyDescriptors(bean.getClass()));<a name="line.1019"></a>
 <span class="sourceLineNo">1020</span><a name="line.1020"></a>
-<span class="sourceLineNo">1021</span><a name="line.1021"></a>
-<span class="sourceLineNo">1022</span>    /**<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span>     * &lt;p&gt;Retrieve the property descriptors for the specified bean,<a name="line.1023"></a>
-<span class="sourceLineNo">1024</span>     * introspecting and caching them the first time a particular bean class<a name="line.1024"></a>
-<span class="sourceLineNo">1025</span>     * is encountered.&lt;/p&gt;<a name="line.1025"></a>
-<span class="sourceLineNo">1026</span>     *<a name="line.1026"></a>
-<span class="sourceLineNo">1027</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1027"></a>
-<span class="sourceLineNo">1028</span>     *<a name="line.1028"></a>
-<span class="sourceLineNo">1029</span>     * @param bean Bean for which property descriptors are requested<a name="line.1029"></a>
-<span class="sourceLineNo">1030</span>     * @return the property descriptors<a name="line.1030"></a>
-<span class="sourceLineNo">1031</span>     *<a name="line.1031"></a>
-<span class="sourceLineNo">1032</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; is null<a name="line.1032"></a>
-<span class="sourceLineNo">1033</span>     */<a name="line.1033"></a>
-<span class="sourceLineNo">1034</span>    public PropertyDescriptor[] getPropertyDescriptors(Object bean) {<a name="line.1034"></a>
-<span class="sourceLineNo">1035</span><a name="line.1035"></a>
-<span class="sourceLineNo">1036</span>        if (bean == null) {<a name="line.1036"></a>
-<span class="sourceLineNo">1037</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1037"></a>
-<span class="sourceLineNo">1038</span>        }<a name="line.1038"></a>
-<span class="sourceLineNo">1039</span>        return (getPropertyDescriptors(bean.getClass()));<a name="line.1039"></a>
-<span class="sourceLineNo">1040</span><a name="line.1040"></a>
-<span class="sourceLineNo">1041</span>    }<a name="line.1041"></a>
-<span class="sourceLineNo">1042</span><a name="line.1042"></a>
-<span class="sourceLineNo">1043</span><a name="line.1043"></a>
-<span class="sourceLineNo">1044</span>    /**<a name="line.1044"></a>
-<span class="sourceLineNo">1045</span>     * &lt;p&gt;Return the Java Class repesenting the property editor class that has<a name="line.1045"></a>
-<span class="sourceLineNo">1046</span>     * been registered for this property (if any).  This method follows the<a name="line.1046"></a>
-<span class="sourceLineNo">1047</span>     * same name resolution rules used by &lt;code&gt;getPropertyDescriptor()&lt;/code&gt;,<a name="line.1047"></a>
-<span class="sourceLineNo">1048</span>     * so if the last element of a name reference is indexed, the property<a name="line.1048"></a>
-<span class="sourceLineNo">1049</span>     * editor for the underlying property's class is returned.&lt;/p&gt;<a name="line.1049"></a>
-<span class="sourceLineNo">1050</span>     *<a name="line.1050"></a>
-<span class="sourceLineNo">1051</span>     * &lt;p&gt;Note that &lt;code&gt;null&lt;/code&gt; will be returned if there is no property,<a name="line.1051"></a>
-<span class="sourceLineNo">1052</span>     * or if there is no registered property editor class.  Because this<a name="line.1052"></a>
-<span class="sourceLineNo">1053</span>     * return value is ambiguous, you should determine the existence of the<a name="line.1053"></a>
-<span class="sourceLineNo">1054</span>     * property itself by other means.&lt;/p&gt;<a name="line.1054"></a>
-<span class="sourceLineNo">1055</span>     *<a name="line.1055"></a>
-<span class="sourceLineNo">1056</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1056"></a>
-<span class="sourceLineNo">1057</span>     *<a name="line.1057"></a>
-<span class="sourceLineNo">1058</span>     * @param bean Bean for which a property descriptor is requested<a name="line.1058"></a>
-<span class="sourceLineNo">1059</span>     * @param name Possibly indexed and/or nested name of the property for<a name="line.1059"></a>
-<span class="sourceLineNo">1060</span>     *  which a property descriptor is requested<a name="line.1060"></a>
-<span class="sourceLineNo">1061</span>     * @return the property editor class<a name="line.1061"></a>
-<span class="sourceLineNo">1062</span>     *<a name="line.1062"></a>
-<span class="sourceLineNo">1063</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1063"></a>
-<span class="sourceLineNo">1064</span>     *  access to the property accessor method<a name="line.1064"></a>
-<span class="sourceLineNo">1065</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1065"></a>
-<span class="sourceLineNo">1066</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1066"></a>
-<span class="sourceLineNo">1067</span>     * @exception IllegalArgumentException if a nested reference to a<a name="line.1067"></a>
-<span class="sourceLineNo">1068</span>     *  property returns null<a name="line.1068"></a>
-<span class="sourceLineNo">1069</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1069"></a>
-<span class="sourceLineNo">1070</span>     *  throws an exception<a name="line.1070"></a>
-<span class="sourceLineNo">1071</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1071"></a>
-<span class="sourceLineNo">1072</span>     *  propety cannot be found<a name="line.1072"></a>
-<span class="sourceLineNo">1073</span>     */<a name="line.1073"></a>
-<span class="sourceLineNo">1074</span>    public Class&lt;?&gt; getPropertyEditorClass(Object bean, String name)<a name="line.1074"></a>
-<span class="sourceLineNo">1075</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1075"></a>
-<span class="sourceLineNo">1076</span>            NoSuchMethodException {<a name="line.1076"></a>
-<span class="sourceLineNo">1077</span><a name="line.1077"></a>
-<span class="sourceLineNo">1078</span>        if (bean == null) {<a name="line.1078"></a>
-<span class="sourceLineNo">1079</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1079"></a>
-<span class="sourceLineNo">1080</span>        }<a name="line.1080"></a>
-<span class="sourceLineNo">1081</span>        if (name == null) {<a name="line.1081"></a>
-<span class="sourceLineNo">1082</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1082"></a>
-<span class="sourceLineNo">1083</span>                    bean.getClass() + "'");<a name="line.1083"></a>
-<span class="sourceLineNo">1084</span>        }<a name="line.1084"></a>
-<span class="sourceLineNo">1085</span><a name="line.1085"></a>
-<span class="sourceLineNo">1086</span>        PropertyDescriptor descriptor =<a name="line.1086"></a>
-<span class="sourceLineNo">1087</span>                getPropertyDescriptor(bean, name);<a name="line.1087"></a>
-<span class="sourceLineNo">1088</span>        if (descriptor != null) {<a name="line.1088"></a>
-<span class="sourceLineNo">1089</span>            return (descriptor.getPropertyEditorClass());<a name="line.1089"></a>
-<span class="sourceLineNo">1090</span>        } else {<a name="line.1090"></a>
-<span class="sourceLineNo">1091</span>            return (null);<a name="line.1091"></a>
-<span class="sourceLineNo">1092</span>        }<a name="line.1092"></a>
-<span class="sourceLineNo">1093</span><a name="line.1093"></a>
-<span class="sourceLineNo">1094</span>    }<a name="line.1094"></a>
-<span class="sourceLineNo">1095</span><a name="line.1095"></a>
-<span class="sourceLineNo">1096</span><a name="line.1096"></a>
-<span class="sourceLineNo">1097</span>    /**<a name="line.1097"></a>
-<span class="sourceLineNo">1098</span>     * Return the Java Class representing the property type of the specified<a name="line.1098"></a>
-<span class="sourceLineNo">1099</span>     * property, or &lt;code&gt;null&lt;/code&gt; if there is no such property for the<a name="line.1099"></a>
-<span class="sourceLineNo">1100</span>     * specified bean.  This method follows the same name resolution rules<a name="line.1100"></a>
-<span class="sourceLineNo">1101</span>     * used by &lt;code&gt;getPropertyDescriptor()&lt;/code&gt;, so if the last element<a name="line.1101"></a>
-<span class="sourceLineNo">1102</span>     * of a name reference is indexed, the type of the property itself will<a name="line.1102"></a>
-<span class="sourceLineNo">1103</span>     * be returned.  If the last (or only) element has no property with the<a name="line.1103"></a>
-<span class="sourceLineNo">1104</span>     * specified name, &lt;code&gt;null&lt;/code&gt; is returned.<a name="line.1104"></a>
-<span class="sourceLineNo">1105</span>     *<a name="line.1105"></a>
-<span class="sourceLineNo">1106</span>     * @param bean Bean for which a property descriptor is requested<a name="line.1106"></a>
-<span class="sourceLineNo">1107</span>     * @param name Possibly indexed and/or nested name of the property for<a name="line.1107"></a>
-<span class="sourceLineNo">1108</span>     *  which a property descriptor is requested<a name="line.1108"></a>
-<span class="sourceLineNo">1109</span>     * @return The property type<a name="line.1109"></a>
-<span class="sourceLineNo">1110</span>     *<a name="line.1110"></a>
-<span class="sourceLineNo">1111</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1111"></a>
-<span class="sourceLineNo">1112</span>     *  access to the property accessor method<a name="line.1112"></a>
-<span class="sourceLineNo">1113</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1113"></a>
-<span class="sourceLineNo">1114</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1114"></a>
-<span class="sourceLineNo">1115</span>     * @exception IllegalArgumentException if a nested reference to a<a name="line.1115"></a>
-<span class="sourceLineNo">1116</span>     *  property returns null<a name="line.1116"></a>
-<span class="sourceLineNo">1117</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1117"></a>
-<span class="sourceLineNo">1118</span>     *  throws an exception<a name="line.1118"></a>
-<span class="sourceLineNo">1119</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1119"></a>
-<span class="sourceLineNo">1120</span>     *  propety cannot be found<a name="line.1120"></a>
-<span class="sourceLineNo">1121</span>     */<a name="line.1121"></a>
-<span class="sourceLineNo">1122</span>    public Class&lt;?&gt; getPropertyType(Object bean, String name)<a name="line.1122"></a>
-<span class="sourceLineNo">1123</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1123"></a>
-<span class="sourceLineNo">1124</span>            NoSuchMethodException {<a name="line.1124"></a>
-<span class="sourceLineNo">1125</span><a name="line.1125"></a>
-<span class="sourceLineNo">1126</span>        if (bean == null) {<a name="line.1126"></a>
-<span class="sourceLineNo">1127</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1127"></a>
-<span class="sourceLineNo">1128</span>        }<a name="line.1128"></a>
-<span class="sourceLineNo">1129</span>        if (name == null) {<a name="line.1129"></a>
-<span class="sourceLineNo">1130</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1130"></a>
-<span class="sourceLineNo">1131</span>                    bean.getClass() + "'");<a name="line.1131"></a>
-<span class="sourceLineNo">1132</span>        }<a name="line.1132"></a>
-<span class="sourceLineNo">1133</span><a name="line.1133"></a>
-<span class="sourceLineNo">1134</span>        // Resolve nested references<a name="line.1134"></a>
-<span class="sourceLineNo">1135</span>        while (resolver.hasNested(name)) {<a name="line.1135"></a>
-<span class="sourceLineNo">1136</span>            String next = resolver.next(name);<a name="line.1136"></a>
-<span class="sourceLineNo">1137</span>            Object nestedBean = getProperty(bean, next);<a name="line.1137"></a>
-<span class="sourceLineNo">1138</span>            if (nestedBean == null) {<a name="line.1138"></a>
-<span class="sourceLineNo">1139</span>                throw new NestedNullException<a name="line.1139"></a>
-<span class="sourceLineNo">1140</span>                        ("Null property value for '" + next +<a name="line.1140"></a>
-<span class="sourceLineNo">1141</span>                        "' on bean class '" + bean.getClass() + "'");<a name="line.1141"></a>
-<span class="sourceLineNo">1142</span>            }<a name="line.1142"></a>
-<span class="sourceLineNo">1143</span>            bean = nestedBean;<a name="line.1143"></a>
-<span class="sourceLineNo">1144</span>            name = resolver.remove(name);<a name="line.1144"></a>
+<span class="sourceLineNo">1021</span>    }<a name="line.1021"></a>
+<span class="sourceLineNo">1022</span><a name="line.1022"></a>
+<span class="sourceLineNo">1023</span><a name="line.1023"></a>
+<span class="sourceLineNo">1024</span>    /**<a name="line.1024"></a>
+<span class="sourceLineNo">1025</span>     * &lt;p&gt;Return the Java Class repesenting the property editor class that has<a name="line.1025"></a>
+<span class="sourceLineNo">1026</span>     * been registered for this property (if any).  This method follows the<a name="line.1026"></a>
+<span class="sourceLineNo">1027</span>     * same name resolution rules used by &lt;code&gt;getPropertyDescriptor()&lt;/code&gt;,<a name="line.1027"></a>
+<span class="sourceLineNo">1028</span>     * so if the last element of a name reference is indexed, the property<a name="line.1028"></a>
+<span class="sourceLineNo">1029</span>     * editor for the underlying property's class is returned.&lt;/p&gt;<a name="line.1029"></a>
+<span class="sourceLineNo">1030</span>     *<a name="line.1030"></a>
+<span class="sourceLineNo">1031</span>     * &lt;p&gt;Note that &lt;code&gt;null&lt;/code&gt; will be returned if there is no property,<a name="line.1031"></a>
+<span class="sourceLineNo">1032</span>     * or if there is no registered property editor class.  Because this<a name="line.1032"></a>
+<span class="sourceLineNo">1033</span>     * return value is ambiguous, you should determine the existence of the<a name="line.1033"></a>
+<span class="sourceLineNo">1034</span>     * property itself by other means.&lt;/p&gt;<a name="line.1034"></a>
+<span class="sourceLineNo">1035</span>     *<a name="line.1035"></a>
+<span class="sourceLineNo">1036</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1036"></a>
+<span class="sourceLineNo">1037</span>     *<a name="line.1037"></a>
+<span class="sourceLineNo">1038</span>     * @param bean Bean for which a property descriptor is requested<a name="line.1038"></a>
+<span class="sourceLineNo">1039</span>     * @param name Possibly indexed and/or nested name of the property for<a name="line.1039"></a>
+<span class="sourceLineNo">1040</span>     *  which a property descriptor is requested<a name="line.1040"></a>
+<span class="sourceLineNo">1041</span>     * @return the property editor class<a name="line.1041"></a>
+<span class="sourceLineNo">1042</span>     *<a name="line.1042"></a>
+<span class="sourceLineNo">1043</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1043"></a>
+<span class="sourceLineNo">1044</span>     *  access to the property accessor method<a name="line.1044"></a>
+<span class="sourceLineNo">1045</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1045"></a>
+<span class="sourceLineNo">1046</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1046"></a>
+<span class="sourceLineNo">1047</span>     * @exception IllegalArgumentException if a nested reference to a<a name="line.1047"></a>
+<span class="sourceLineNo">1048</span>     *  property returns null<a name="line.1048"></a>
+<span class="sourceLineNo">1049</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1049"></a>
+<span class="sourceLineNo">1050</span>     *  throws an exception<a name="line.1050"></a>
+<span class="sourceLineNo">1051</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1051"></a>
+<span class="sourceLineNo">1052</span>     *  propety cannot be found<a name="line.1052"></a>
+<span class="sourceLineNo">1053</span>     */<a name="line.1053"></a>
+<span class="sourceLineNo">1054</span>    public Class&lt;?&gt; getPropertyEditorClass(Object bean, String name)<a name="line.1054"></a>
+<span class="sourceLineNo">1055</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1055"></a>
+<span class="sourceLineNo">1056</span>            NoSuchMethodException {<a name="line.1056"></a>
+<span class="sourceLineNo">1057</span><a name="line.1057"></a>
+<span class="sourceLineNo">1058</span>        if (bean == null) {<a name="line.1058"></a>
+<span class="sourceLineNo">1059</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1059"></a>
+<span class="sourceLineNo">1060</span>        }<a name="line.1060"></a>
+<span class="sourceLineNo">1061</span>        if (name == null) {<a name="line.1061"></a>
+<span class="sourceLineNo">1062</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1062"></a>
+<span class="sourceLineNo">1063</span>                    bean.getClass() + "'");<a name="line.1063"></a>
+<span class="sourceLineNo">1064</span>        }<a name="line.1064"></a>
+<span class="sourceLineNo">1065</span><a name="line.1065"></a>
+<span class="sourceLineNo">1066</span>        PropertyDescriptor descriptor =<a name="line.1066"></a>
+<span class="sourceLineNo">1067</span>                getPropertyDescriptor(bean, name);<a name="line.1067"></a>
+<span class="sourceLineNo">1068</span>        if (descriptor != null) {<a name="line.1068"></a>
+<span class="sourceLineNo">1069</span>            return (descriptor.getPropertyEditorClass());<a name="line.1069"></a>
+<span class="sourceLineNo">1070</span>        } else {<a name="line.1070"></a>
+<span class="sourceLineNo">1071</span>            return (null);<a name="line.1071"></a>
+<span class="sourceLineNo">1072</span>        }<a name="line.1072"></a>
+<span class="sourceLineNo">1073</span><a name="line.1073"></a>
+<span class="sourceLineNo">1074</span>    }<a name="line.1074"></a>
+<span class="sourceLineNo">1075</span><a name="line.1075"></a>
+<span class="sourceLineNo">1076</span><a name="line.1076"></a>
+<span class="sourceLineNo">1077</span>    /**<a name="line.1077"></a>
+<span class="sourceLineNo">1078</span>     * Return the Java Class representing the property type of the specified<a name="line.1078"></a>
+<span class="sourceLineNo">1079</span>     * property, or &lt;code&gt;null&lt;/code&gt; if there is no such property for the<a name="line.1079"></a>
+<span class="sourceLineNo">1080</span>     * specified bean.  This method follows the same name resolution rules<a name="line.1080"></a>
+<span class="sourceLineNo">1081</span>     * used by &lt;code&gt;getPropertyDescriptor()&lt;/code&gt;, so if the last element<a name="line.1081"></a>
+<span class="sourceLineNo">1082</span>     * of a name reference is indexed, the type of the property itself will<a name="line.1082"></a>
+<span class="sourceLineNo">1083</span>     * be returned.  If the last (or only) element has no property with the<a name="line.1083"></a>
+<span class="sourceLineNo">1084</span>     * specified name, &lt;code&gt;null&lt;/code&gt; is returned.<a name="line.1084"></a>
+<span class="sourceLineNo">1085</span>     *<a name="line.1085"></a>
+<span class="sourceLineNo">1086</span>     * @param bean Bean for which a property descriptor is requested<a name="line.1086"></a>
+<span class="sourceLineNo">1087</span>     * @param name Possibly indexed and/or nested name of the property for<a name="line.1087"></a>
+<span class="sourceLineNo">1088</span>     *  which a property descriptor is requested<a name="line.1088"></a>
+<span class="sourceLineNo">1089</span>     * @return The property type<a name="line.1089"></a>
+<span class="sourceLineNo">1090</span>     *<a name="line.1090"></a>
+<span class="sourceLineNo">1091</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1091"></a>
+<span class="sourceLineNo">1092</span>     *  access to the property accessor method<a name="line.1092"></a>
+<span class="sourceLineNo">1093</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1093"></a>
+<span class="sourceLineNo">1094</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1094"></a>
+<span class="sourceLineNo">1095</span>     * @exception IllegalArgumentException if a nested reference to a<a name="line.1095"></a>
+<span class="sourceLineNo">1096</span>     *  property returns null<a name="line.1096"></a>
+<span class="sourceLineNo">1097</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1097"></a>
+<span class="sourceLineNo">1098</span>     *  throws an exception<a name="line.1098"></a>
+<span class="sourceLineNo">1099</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1099"></a>
+<span class="sourceLineNo">1100</span>     *  propety cannot be found<a name="line.1100"></a>
+<span class="sourceLineNo">1101</span>     */<a name="line.1101"></a>
+<span class="sourceLineNo">1102</span>    public Class&lt;?&gt; getPropertyType(Object bean, String name)<a name="line.1102"></a>
+<span class="sourceLineNo">1103</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1103"></a>
+<span class="sourceLineNo">1104</span>            NoSuchMethodException {<a name="line.1104"></a>
+<span class="sourceLineNo">1105</span><a name="line.1105"></a>
+<span class="sourceLineNo">1106</span>        if (bean == null) {<a name="line.1106"></a>
+<span class="sourceLineNo">1107</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1107"></a>
+<span class="sourceLineNo">1108</span>        }<a name="line.1108"></a>
+<span class="sourceLineNo">1109</span>        if (name == null) {<a name="line.1109"></a>
+<span class="sourceLineNo">1110</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1110"></a>
+<span class="sourceLineNo">1111</span>                    bean.getClass() + "'");<a name="line.1111"></a>
+<span class="sourceLineNo">1112</span>        }<a name="line.1112"></a>
+<span class="sourceLineNo">1113</span><a name="line.1113"></a>
+<span class="sourceLineNo">1114</span>        // Resolve nested references<a name="line.1114"></a>
+<span class="sourceLineNo">1115</span>        while (resolver.hasNested(name)) {<a name="line.1115"></a>
+<span class="sourceLineNo">1116</span>            String next = resolver.next(name);<a name="line.1116"></a>
+<span class="sourceLineNo">1117</span>            Object nestedBean = getProperty(bean, next);<a name="line.1117"></a>
+<span class="sourceLineNo">1118</span>            if (nestedBean == null) {<a name="line.1118"></a>
+<span class="sourceLineNo">1119</span>                throw new NestedNullException<a name="line.1119"></a>
+<span class="sourceLineNo">1120</span>                        ("Null property value for '" + next +<a name="line.1120"></a>
+<span class="sourceLineNo">1121</span>                        "' on bean class '" + bean.getClass() + "'");<a name="line.1121"></a>
+<span class="sourceLineNo">1122</span>            }<a name="line.1122"></a>
+<span class="sourceLineNo">1123</span>            bean = nestedBean;<a name="line.1123"></a>
+<span class="sourceLineNo">1124</span>            name = resolver.remove(name);<a name="line.1124"></a>
+<span class="sourceLineNo">1125</span>        }<a name="line.1125"></a>
+<span class="sourceLineNo">1126</span><a name="line.1126"></a>
+<span class="sourceLineNo">1127</span>        // Remove any subscript from the final name value<a name="line.1127"></a>
+<span class="sourceLineNo">1128</span>        name = resolver.getProperty(name);<a name="line.1128"></a>
+<span class="sourceLineNo">1129</span><a name="line.1129"></a>
+<span class="sourceLineNo">1130</span>        // Special handling for DynaBeans<a name="line.1130"></a>
+<span class="sourceLineNo">1131</span>        if (bean instanceof DynaBean) {<a name="line.1131"></a>
+<span class="sourceLineNo">1132</span>            DynaProperty descriptor =<a name="line.1132"></a>
+<span class="sourceLineNo">1133</span>                    ((DynaBean) bean).getDynaClass().getDynaProperty(name);<a name="line.1133"></a>
+<span class="sourceLineNo">1134</span>            if (descriptor == null) {<a name="line.1134"></a>
+<span class="sourceLineNo">1135</span>                return (null);<a name="line.1135"></a>
+<span class="sourceLineNo">1136</span>            }<a name="line.1136"></a>
+<span class="sourceLineNo">1137</span>            Class&lt;?&gt; type = descriptor.getType();<a name="line.1137"></a>
+<span class="sourceLineNo">1138</span>            if (type == null) {<a name="line.1138"></a>
+<span class="sourceLineNo">1139</span>                return (null);<a name="line.1139"></a>
+<span class="sourceLineNo">1140</span>            } else if (type.isArray()) {<a name="line.1140"></a>
+<span class="sourceLineNo">1141</span>                return (type.getComponentType());<a name="line.1141"></a>
+<span class="sourceLineNo">1142</span>            } else {<a name="line.1142"></a>
+<span class="sourceLineNo">1143</span>                return (type);<a name="line.1143"></a>
+<span class="sourceLineNo">1144</span>            }<a name="line.1144"></a>
 <span class="sourceLineNo">1145</span>        }<a name="line.1145"></a>
 <span class="sourceLineNo">1146</span><a name="line.1146"></a>
-<span class="sourceLineNo">1147</span>        // Remove any subscript from the final name value<a name="line.1147"></a>
-<span class="sourceLineNo">1148</span>        name = resolver.getProperty(name);<a name="line.1148"></a>
-<span class="sourceLineNo">1149</span><a name="line.1149"></a>
-<span class="sourceLineNo">1150</span>        // Special handling for DynaBeans<a name="line.1150"></a>
-<span class="sourceLineNo">1151</span>        if (bean instanceof DynaBean) {<a name="line.1151"></a>
-<span class="sourceLineNo">1152</span>            DynaProperty descriptor =<a name="line.1152"></a>
-<span class="sourceLineNo">1153</span>                    ((DynaBean) bean).getDynaClass().getDynaProperty(name);<a name="line.1153"></a>
-<span class="sourceLineNo">1154</span>            if (descriptor == null) {<a name="line.1154"></a>
-<span class="sourceLineNo">1155</span>                return (null);<a name="line.1155"></a>
-<span class="sourceLineNo">1156</span>            }<a name="line.1156"></a>
-<span class="sourceLineNo">1157</span>            Class&lt;?&gt; type = descriptor.getType();<a name="line.1157"></a>
-<span class="sourceLineNo">1158</span>            if (type == null) {<a name="line.1158"></a>
-<span class="sourceLineNo">1159</span>                return (null);<a name="line.1159"></a>
-<span class="sourceLineNo">1160</span>            } else if (type.isArray()) {<a name="line.1160"></a>
-<span class="sourceLineNo">1161</span>                return (type.getComponentType());<a name="line.1161"></a>
-<span class="sourceLineNo">1162</span>            } else {<a name="line.1162"></a>
-<span class="sourceLineNo">1163</span>                return (type);<a name="line.1163"></a>
-<span class="sourceLineNo">1164</span>            }<a name="line.1164"></a>
-<span class="sourceLineNo">1165</span>        }<a name="line.1165"></a>
-<span class="sourceLineNo">1166</span><a name="line.1166"></a>
-<span class="sourceLineNo">1167</span>        PropertyDescriptor descriptor =<a name="line.1167"></a>
-<span class="sourceLineNo">1168</span>                getPropertyDescriptor(bean, name);<a name="line.1168"></a>
-<span class="sourceLineNo">1169</span>        if (descriptor == null) {<a name="line.1169"></a>
-<span class="sourceLineNo">1170</span>            return (null);<a name="line.1170"></a>
-<span class="sourceLineNo">1171</span>        } else if (descriptor instanceof IndexedPropertyDescriptor) {<a name="line.1171"></a>
-<span class="sourceLineNo">1172</span>            return (((IndexedPropertyDescriptor) descriptor).<a name="line.1172"></a>
-<span class="sourceLineNo">1173</span>                    getIndexedPropertyType());<a name="line.1173"></a>
-<span class="sourceLineNo">1174</span>        } else if (descriptor instanceof MappedPropertyDescriptor) {<a name="line.1174"></a>
-<span class="sourceLineNo">1175</span>            return (((MappedPropertyDescriptor) descriptor).<a name="line.1175"></a>
-<span class="sourceLineNo">1176</span>                    getMappedPropertyType());<a name="line.1176"></a>
-<span class="sourceLineNo">1177</span>        } else {<a name="line.1177"></a>
-<span class="sourceLineNo">1178</span>            return (descriptor.getPropertyType());<a name="line.1178"></a>
-<span class="sourceLineNo">1179</span>        }<a name="line.1179"></a>
-<span class="sourceLineNo">1180</span><a name="line.1180"></a>
-<span class="sourceLineNo">1181</span>    }<a name="line.1181"></a>
-<span class="sourceLineNo">1182</span><a name="line.1182"></a>
-<span class="sourceLineNo">1183</span><a name="line.1183"></a>
-<span class="sourceLineNo">1184</span>    /**<a name="line.1184"></a>
-<span class="sourceLineNo">1185</span>     * &lt;p&gt;Return an accessible property getter method for this property,<a name="line.1185"></a>
-<span class="sourceLineNo">1186</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1186"></a>
-<span class="sourceLineNo">1187</span>     *<a name="line.1187"></a>
-<span class="sourceLineNo">1188</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1188"></a>
-<span class="sourceLineNo">1189</span>     *<a name="line.1189"></a>
-<span class="sourceLineNo">1190</span>     * @param descriptor Property descriptor to return a getter for<a name="line.1190"></a>
-<span class="sourceLineNo">1191</span>     * @return The read method<a name="line.1191"></a>
-<span class="sourceLineNo">1192</span>     */<a name="line.1192"></a>
-<span class="sourceLineNo">1193</span>    public Method getReadMethod(PropertyDescriptor descriptor) {<a name="line.1193"></a>
+<span class="sourceLineNo">1147</span>        PropertyDescriptor descriptor =<a name="line.1147"></a>
+<span class="sourceLineNo">1148</span>                getPropertyDescriptor(bean, name);<a name="line.1148"></a>
+<span class="sourceLineNo">1149</span>        if (descriptor == null) {<a name="line.1149"></a>
+<span class="sourceLineNo">1150</span>            return (null);<a name="line.1150"></a>
+<span class="sourceLineNo">1151</span>        } else if (descriptor instanceof IndexedPropertyDescriptor) {<a name="line.1151"></a>
+<span class="sourceLineNo">1152</span>            return (((IndexedPropertyDescriptor) descriptor).<a name="line.1152"></a>
+<span class="sourceLineNo">1153</span>                    getIndexedPropertyType());<a name="line.1153"></a>
+<span class="sourceLineNo">1154</span>        } else if (descriptor instanceof MappedPropertyDescriptor) {<a name="line.1154"></a>
+<span class="sourceLineNo">1155</span>            return (((MappedPropertyDescriptor) descriptor).<a name="line.1155"></a>
+<span class="sourceLineNo">1156</span>                    getMappedPropertyType());<a name="line.1156"></a>
+<span class="sourceLineNo">1157</span>        } else {<a name="line.1157"></a>
+<span class="sourceLineNo">1158</span>            return (descriptor.getPropertyType());<a name="line.1158"></a>
+<span class="sourceLineNo">1159</span>        }<a name="line.1159"></a>
+<span class="sourceLineNo">1160</span><a name="line.1160"></a>
+<span class="sourceLineNo">1161</span>    }<a name="line.1161"></a>
+<span class="sourceLineNo">1162</span><a name="line.1162"></a>
+<span class="sourceLineNo">1163</span><a name="line.1163"></a>
+<span class="sourceLineNo">1164</span>    /**<a name="line.1164"></a>
+<span class="sourceLineNo">1165</span>     * &lt;p&gt;Return an accessible property getter method for this property,<a name="line.1165"></a>
+<span class="sourceLineNo">1166</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1166"></a>
+<span class="sourceLineNo">1167</span>     *<a name="line.1167"></a>
+<span class="sourceLineNo">1168</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1168"></a>
+<span class="sourceLineNo">1169</span>     *<a name="line.1169"></a>
+<span class="sourceLineNo">1170</span>     * @param descriptor Property descriptor to return a getter for<a name="line.1170"></a>
+<span class="sourceLineNo">1171</span>     * @return The read method<a name="line.1171"></a>
+<span class="sourceLineNo">1172</span>     */<a name="line.1172"></a>
+<span class="sourceLineNo">1173</span>    public Method getReadMethod(PropertyDescriptor descriptor) {<a name="line.1173"></a>
+<span class="sourceLineNo">1174</span><a name="line.1174"></a>
+<span class="sourceLineNo">1175</span>        return (MethodUtils.getAccessibleMethod(descriptor.getReadMethod()));<a name="line.1175"></a>
+<span class="sourceLineNo">1176</span><a name="line.1176"></a>
+<span class="sourceLineNo">1177</span>    }<a name="line.1177"></a>
+<span class="sourceLineNo">1178</span><a name="line.1178"></a>
+<span class="sourceLineNo">1179</span><a name="line.1179"></a>
+<span class="sourceLineNo">1180</span>    /**<a name="line.1180"></a>
+<span class="sourceLineNo">1181</span>     * &lt;p&gt;Return an accessible property getter method for this property,<a name="line.1181"></a>
+<span class="sourceLineNo">1182</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1182"></a>
+<span class="sourceLineNo">1183</span>     *<a name="line.1183"></a>
+<span class="sourceLineNo">1184</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1184"></a>
+<span class="sourceLineNo">1185</span>     *<a name="line.1185"></a>
+<span class="sourceLineNo">1186</span>     * @param clazz The class of the read method will be invoked on<a name="line.1186"></a>
+<span class="sourceLineNo">1187</span>     * @param descriptor Property descriptor to return a getter for<a name="line.1187"></a>
+<span class="sourceLineNo">1188</span>     * @return The read method<a name="line.1188"></a>
+<span class="sourceLineNo">1189</span>     */<a name="line.1189"></a>
+<span class="sourceLineNo">1190</span>    Method getReadMethod(Class&lt;?&gt; clazz, PropertyDescriptor descriptor) {<a name="line.1190"></a>
+<span class="sourceLineNo">1191</span>        return (MethodUtils.getAccessibleMethod(clazz, descriptor.getReadMethod()));<a name="line.1191"></a>
+<span class="sourceLineNo">1192</span>    }<a name="line.1192"></a>
+<span class="sourceLineNo">1193</span><a name="line.1193"></a>
 <span class="sourceLineNo">1194</span><a name="line.1194"></a>
-<span class="sourceLineNo">1195</span>        return (MethodUtils.getAccessibleMethod(descriptor.getReadMethod()));<a name="line.1195"></a>
-<span class="sourceLineNo">1196</span><a name="line.1196"></a>
-<span class="sourceLineNo">1197</span>    }<a name="line.1197"></a>
-<span class="sourceLineNo">1198</span><a name="line.1198"></a>
-<span class="sourceLineNo">1199</span><a name="line.1199"></a>
-<span class="sourceLineNo">1200</span>    /**<a name="line.1200"></a>
-<span class="sourceLineNo">1201</span>     * &lt;p&gt;Return an accessible property getter method for this property,<a name="line.1201"></a>
-<span class="sourceLineNo">1202</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1202"></a>
-<span class="sourceLineNo">1203</span>     *<a name="line.1203"></a>
-<span class="sourceLineNo">1204</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1204"></a>
-<span class="sourceLineNo">1205</span>     *<a name="line.1205"></a>
-<span class="sourceLineNo">1206</span>     * @param clazz The class of the read method will be invoked on<a name="line.1206"></a>
-<span class="sourceLineNo">1207</span>     * @param descriptor Property descriptor to return a getter for<a name="line.1207"></a>
-<span class="sourceLineNo">1208</span>     * @return The read method<a name="line.1208"></a>
-<span class="sourceLineNo">1209</span>     */<a name="line.1209"></a>
-<span class="sourceLineNo">1210</span>    Method getReadMethod(Class&lt;?&gt; clazz, PropertyDescriptor descriptor) {<a name="line.1210"></a>
-<span class="sourceLineNo">1211</span>        return (MethodUtils.getAccessibleMethod(clazz, descriptor.getReadMethod()));<a name="line.1211"></a>
-<span class="sourceLineNo">1212</span>    }<a name="line.1212"></a>
-<span class="sourceLineNo">1213</span><a name="line.1213"></a>
-<span class="sourceLineNo">1214</span><a name="line.1214"></a>
-<span class="sourceLineNo">1215</span>    /**<a name="line.1215"></a>
-<span class="sourceLineNo">1216</span>     * Return the value of the specified simple property of the specified<a name="line.1216"></a>
-<span class="sourceLineNo">1217</span>     * bean, with no type conversions.<a name="line.1217"></a>
-<span class="sourceLineNo">1218</span>     *<a name="line.1218"></a>
-<span class="sourceLineNo">1219</span>     * @param bean Bean whose property is to be extracted<a name="line.1219"></a>
-<span class="sourceLineNo">1220</span>     * @param name Name of the property to be extracted<a name="line.1220"></a>
-<span class="sourceLineNo">1221</span>     * @return The property value<a name="line.1221"></a>
-<span class="sourceLineNo">1222</span>     *<a name="line.1222"></a>
-<span class="sourceLineNo">1223</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1223"></a>
-<span class="sourceLineNo">1224</span>     *  access to the property accessor method<a name="line.1224"></a>
-<span class="sourceLineNo">1225</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1225"></a>
-<span class="sourceLineNo">1226</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1226"></a>
-<span class="sourceLineNo">1227</span>     * @exception IllegalArgumentException if the property name<a name="line.1227"></a>
-<span class="sourceLineNo">1228</span>     *  is nested or indexed<a name="line.1228"></a>
-<span class="sourceLineNo">1229</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1229"></a>
-<span class="sourceLineNo">1230</span>     *  throws an exception<a name="line.1230"></a>
-<span class="sourceLineNo">1231</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1231"></a>
-<span class="sourceLineNo">1232</span>     *  propety cannot be found<a name="line.1232"></a>
-<span class="sourceLineNo">1233</span>     */<a name="line.1233"></a>
-<span class="sourceLineNo">1234</span>    public Object getSimpleProperty(Object bean, String name)<a name="line.1234"></a>
-<span class="sourceLineNo">1235</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1235"></a>
-<span class="sourceLineNo">1236</span>            NoSuchMethodException {<a name="line.1236"></a>
-<span class="sourceLineNo">1237</span><a name="line.1237"></a>
-<span class="sourceLineNo">1238</span>        if (bean == null) {<a name="line.1238"></a>
-<span class="sourceLineNo">1239</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1239"></a>
-<span class="sourceLineNo">1240</span>        }<a name="line.1240"></a>
-<span class="sourceLineNo">1241</span>        if (name == null) {<a name="line.1241"></a>
-<span class="sourceLineNo">1242</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1242"></a>
-<span class="sourceLineNo">1243</span>                    bean.getClass() + "'");<a name="line.1243"></a>
-<span class="sourceLineNo">1244</span>        }<a name="line.1244"></a>
-<span class="sourceLineNo">1245</span><a name="line.1245"></a>
-<span class="sourceLineNo">1246</span>        // Validate the syntax of the property name<a name="line.1246"></a>
-<span class="sourceLineNo">1247</span>        if (resolver.hasNested(name)) {<a name="line.1247"></a>
-<span class="sourceLineNo">1248</span>            throw new IllegalArgumentException<a name="line.1248"></a>
-<span class="sourceLineNo">1249</span>                    ("Nested property names are not allowed: Property '" +<a name="line.1249"></a>
-<span class="sourceLineNo">1250</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1250"></a>
-<span class="sourceLineNo">1251</span>        } else if (resolver.isIndexed(name)) {<a name="line.1251"></a>
-<span class="sourceLineNo">1252</span>            throw new IllegalArgumentException<a name="line.1252"></a>
-<span class="sourceLineNo">1253</span>                    ("Indexed property names are not allowed: Property '" +<a name="line.1253"></a>
-<span class="sourceLineNo">1254</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1254"></a>
-<span class="sourceLineNo">1255</span>        } else if (resolver.isMapped(name)) {<a name="line.1255"></a>
-<span class="sourceLineNo">1256</span>            throw new IllegalArgumentException<a name="line.1256"></a>
-<span class="sourceLineNo">1257</span>                    ("Mapped property names are not allowed: Property '" +<a name="line.1257"></a>
-<span class="sourceLineNo">1258</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1258"></a>
+<span class="sourceLineNo">1195</span>    /**<a name="line.1195"></a>
+<span class="sourceLineNo">1196</span>     * Return the value of the specified simple property of the specified<a name="line.1196"></a>
+<span class="sourceLineNo">1197</span>     * bean, with no type conversions.<a name="line.1197"></a>
+<span class="sourceLineNo">1198</span>     *<a name="line.1198"></a>
+<span class="sourceLineNo">1199</span>     * @param bean Bean whose property is to be extracted<a name="line.1199"></a>
+<span class="sourceLineNo">1200</span>     * @param name Name of the property to be extracted<a name="line.1200"></a>
+<span class="sourceLineNo">1201</span>     * @return The property value<a name="line.1201"></a>
+<span class="sourceLineNo">1202</span>     *<a name="line.1202"></a>
+<span class="sourceLineNo">1203</span>     * @exception IllegalAccessException if the caller does not have<a name="line.1203"></a>
+<span class="sourceLineNo">1204</span>     *  access to the property accessor method<a name="line.1204"></a>
+<span class="sourceLineNo">1205</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt; or<a name="line.1205"></a>
+<span class="sourceLineNo">1206</span>     *  &lt;code&gt;name&lt;/code&gt; is null<a name="line.1206"></a>
+<span class="sourceLineNo">1207</span>     * @exception IllegalArgumentException if the property name<a name="line.1207"></a>
+<span class="sourceLineNo">1208</span>     *  is nested or indexed<a name="line.1208"></a>
+<span class="sourceLineNo">1209</span>     * @exception InvocationTargetException if the property accessor method<a name="line.1209"></a>
+<span class="sourceLineNo">1210</span>     *  throws an exception<a name="line.1210"></a>
+<span class="sourceLineNo">1211</span>     * @exception NoSuchMethodException if an accessor method for this<a name="line.1211"></a>
+<span class="sourceLineNo">1212</span>     *  propety cannot be found<a name="line.1212"></a>
+<span class="sourceLineNo">1213</span>     */<a name="line.1213"></a>
+<span class="sourceLineNo">1214</span>    public Object getSimpleProperty(Object bean, String name)<a name="line.1214"></a>
+<span class="sourceLineNo">1215</span>            throws IllegalAccessException, InvocationTargetException,<a name="line.1215"></a>
+<span class="sourceLineNo">1216</span>            NoSuchMethodException {<a name="line.1216"></a>
+<span class="sourceLineNo">1217</span><a name="line.1217"></a>
+<span class="sourceLineNo">1218</span>        if (bean == null) {<a name="line.1218"></a>
+<span class="sourceLineNo">1219</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1219"></a>
+<span class="sourceLineNo">1220</span>        }<a name="line.1220"></a>
+<span class="sourceLineNo">1221</span>        if (name == null) {<a name="line.1221"></a>
+<span class="sourceLineNo">1222</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1222"></a>
+<span class="sourceLineNo">1223</span>                    bean.getClass() + "'");<a name="line.1223"></a>
+<span class="sourceLineNo">1224</span>        }<a name="line.1224"></a>
+<span class="sourceLineNo">1225</span><a name="line.1225"></a>
+<span class="sourceLineNo">1226</span>        // Validate the syntax of the property name<a name="line.1226"></a>
+<span class="sourceLineNo">1227</span>        if (resolver.hasNested(name)) {<a name="line.1227"></a>
+<span class="sourceLineNo">1228</span>            throw new IllegalArgumentException<a name="line.1228"></a>
+<span class="sourceLineNo">1229</span>                    ("Nested property names are not allowed: Property '" +<a name="line.1229"></a>
+<span class="sourceLineNo">1230</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1230"></a>
+<span class="sourceLineNo">1231</span>        } else if (resolver.isIndexed(name)) {<a name="line.1231"></a>
+<span class="sourceLineNo">1232</span>            throw new IllegalArgumentException<a name="line.1232"></a>
+<span class="sourceLineNo">1233</span>                    ("Indexed property names are not allowed: Property '" +<a name="line.1233"></a>
+<span class="sourceLineNo">1234</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1234"></a>
+<span class="sourceLineNo">1235</span>        } else if (resolver.isMapped(name)) {<a name="line.1235"></a>
+<span class="sourceLineNo">1236</span>            throw new IllegalArgumentException<a name="line.1236"></a>
+<span class="sourceLineNo">1237</span>                    ("Mapped property names are not allowed: Property '" +<a name="line.1237"></a>
+<span class="sourceLineNo">1238</span>                    name + "' on bean class '" + bean.getClass() + "'");<a name="line.1238"></a>
+<span class="sourceLineNo">1239</span>        }<a name="line.1239"></a>
+<span class="sourceLineNo">1240</span><a name="line.1240"></a>
+<span class="sourceLineNo">1241</span>        // Handle DynaBean instances specially<a name="line.1241"></a>
+<span class="sourceLineNo">1242</span>        if (bean instanceof DynaBean) {<a name="line.1242"></a>
+<span class="sourceLineNo">1243</span>            DynaProperty descriptor =<a name="line.1243"></a>
+<span class="sourceLineNo">1244</span>                    ((DynaBean) bean).getDynaClass().getDynaProperty(name);<a name="line.1244"></a>
+<span class="sourceLineNo">1245</span>            if (descriptor == null) {<a name="line.1245"></a>
+<span class="sourceLineNo">1246</span>                throw new NoSuchMethodException("Unknown property '" +<a name="line.1246"></a>
+<span class="sourceLineNo">1247</span>                        name + "' on dynaclass '" +<a name="line.1247"></a>
+<span class="sourceLineNo">1248</span>                        ((DynaBean) bean).getDynaClass() + "'" );<a name="line.1248"></a>
+<span class="sourceLineNo">1249</span>            }<a name="line.1249"></a>
+<span class="sourceLineNo">1250</span>            return (((DynaBean) bean).get(name));<a name="line.1250"></a>
+<span class="sourceLineNo">1251</span>        }<a name="line.1251"></a>
+<span class="sourceLineNo">1252</span><a name="line.1252"></a>
+<span class="sourceLineNo">1253</span>        // Retrieve the property getter method for the specified property<a name="line.1253"></a>
+<span class="sourceLineNo">1254</span>        PropertyDescriptor descriptor =<a name="line.1254"></a>
+<span class="sourceLineNo">1255</span>                getPropertyDescriptor(bean, name);<a name="line.1255"></a>
+<span class="sourceLineNo">1256</span>        if (descriptor == null) {<a name="line.1256"></a>
+<span class="sourceLineNo">1257</span>            throw new NoSuchMethodException("Unknown property '" +<a name="line.1257"></a>
+<span class="sourceLineNo">1258</span>                    name + "' on class '" + bean.getClass() + "'" );<a name="line.1258"></a>
 <span class="sourceLineNo">1259</span>        }<a name="line.1259"></a>
-<span class="sourceLineNo">1260</span><a name="line.1260"></a>
-<span class="sourceLineNo">1261</span>        // Handle DynaBean instances specially<a name="line.1261"></a>
-<span class="sourceLineNo">1262</span>        if (bean instanceof DynaBean) {<a name="line.1262"></a>
-<span class="sourceLineNo">1263</span>            DynaProperty descriptor =<a name="line.1263"></a>
-<span class="sourceLineNo">1264</span>                    ((DynaBean) bean).getDynaClass().getDynaProperty(name);<a name="line.1264"></a>
-<span class="sourceLineNo">1265</span>            if (descriptor == null) {<a name="line.1265"></a>
-<span class="sourceLineNo">1266</span>                throw new NoSuchMethodException("Unknown property '" +<a name="line.1266"></a>
-<span class="sourceLineNo">1267</span>                        name + "' on dynaclass '" +<a name="line.1267"></a>
-<span class="sourceLineNo">1268</span>                        ((DynaBean) bean).getDynaClass() + "'" );<a name="line.1268"></a>
-<span class="sourceLineNo">1269</span>            }<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>            return (((DynaBean) bean).get(name));<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>        }<a name="line.1271"></a>
+<span class="sourceLineNo">1260</span>        Method readMethod = getReadMethod(bean.getClass(), descriptor);<a name="line.1260"></a>
+<span class="sourceLineNo">1261</span>        if (readMethod == null) {<a name="line.1261"></a>
+<span class="sourceLineNo">1262</span>            throw new NoSuchMethodException("Property '" + name +<a name="line.1262"></a>
+<span class="sourceLineNo">1263</span>                    "' has no getter method in class '" + bean.getClass() + "'");<a name="line.1263"></a>
+<span class="sourceLineNo">1264</span>        }<a name="line.1264"></a>
+<span class="sourceLineNo">1265</span><a name="line.1265"></a>
+<span class="sourceLineNo">1266</span>        // Call the property getter and return the value<a name="line.1266"></a>
+<span class="sourceLineNo">1267</span>        Object value = invokeMethod(readMethod, bean, EMPTY_OBJECT_ARRAY);<a name="line.1267"></a>
+<span class="sourceLineNo">1268</span>        return (value);<a name="line.1268"></a>
+<span class="sourceLineNo">1269</span><a name="line.1269"></a>
+<span class="sourceLineNo">1270</span>    }<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span><a name="line.1271"></a>
 <span class="sourceLineNo">1272</span><a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>        // Retrieve the property getter method for the specified property<a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>        PropertyDescriptor descriptor =<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>                getPropertyDescriptor(bean, name);<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>        if (descriptor == null) {<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>            throw new NoSuchMethodException("Unknown property '" +<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>                    name + "' on class '" + bean.getClass() + "'" );<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>        }<a name="line.1279"></a>
-<span class="sourceLineNo">1280</span>        Method readMethod = getReadMethod(bean.getClass(), descriptor);<a name="line.1280"></a>
-<span class="sourceLineNo">1281</span>        if (readMethod == null) {<a name="line.1281"></a>
-<span class="sourceLineNo">1282</span>            throw new NoSuchMethodException("Property '" + name +<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>                    "' has no getter method in class '" + bean.getClass() + "'");<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>        }<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span><a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>        // Call the property getter and return the value<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span>        Object value = invokeMethod(readMethod, bean, EMPTY_OBJECT_ARRAY);<a name="line.1287"></a>
-<span class="sourceLineNo">1288</span>        return (value);<a name="line.1288"></a>
-<span class="sourceLineNo">1289</span><a name="line.1289"></a>
-<span class="sourceLineNo">1290</span>    }<a name="line.1290"></a>
-<span class="sourceLineNo">1291</span><a name="line.1291"></a>
+<span class="sourceLineNo">1273</span>    /**<a name="line.1273"></a>
+<span class="sourceLineNo">1274</span>     * &lt;p&gt;Return an accessible property setter method for this property,<a name="line.1274"></a>
+<span class="sourceLineNo">1275</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1275"></a>
+<span class="sourceLineNo">1276</span>     *<a name="line.1276"></a>
+<span class="sourceLineNo">1277</span>     * &lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; This method does not work correctly with custom bean<a name="line.1277"></a>
+<span class="sourceLineNo">1278</span>     * introspection under certain circumstances. It may return {@code null}<a name="line.1278"></a>
+<span class="sourceLineNo">1279</span>     * even if a write method is defined for the property in question. Use<a name="line.1279"></a>
+<span class="sourceLineNo">1280</span>     * {@link #getWriteMethod(Class, PropertyDescriptor)} to be sure that the<a name="line.1280"></a>
+<span class="sourceLineNo">1281</span>     * correct result is returned.&lt;/p&gt;<a name="line.1281"></a>
+<span class="sourceLineNo">1282</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1282"></a>
+<span class="sourceLineNo">1283</span>     *<a name="line.1283"></a>
+<span class="sourceLineNo">1284</span>     * @param descriptor Property descriptor to return a setter for<a name="line.1284"></a>
+<span class="sourceLineNo">1285</span>     * @return The write method<a name="line.1285"></a>
+<span class="sourceLineNo">1286</span>     */<a name="line.1286"></a>
+<span class="sourceLineNo">1287</span>    public Method getWriteMethod(PropertyDescriptor descriptor) {<a name="line.1287"></a>
+<span class="sourceLineNo">1288</span><a name="line.1288"></a>
+<span class="sourceLineNo">1289</span>        return (MethodUtils.getAccessibleMethod(descriptor.getWriteMethod()));<a name="line.1289"></a>
+<span class="sourceLineNo">1290</span><a name="line.1290"></a>
+<span class="sourceLineNo">1291</span>    }<a name="line.1291"></a>
 <span class="sourceLineNo">1292</span><a name="line.1292"></a>
-<span class="sourceLineNo">1293</span>    /**<a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>     * &lt;p&gt;Return an accessible property setter method for this property,<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1295"></a>
-<span class="sourceLineNo">1296</span>     *<a name="line.1296"></a>
-<span class="sourceLineNo">1297</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1297"></a>
-<span class="sourceLineNo">1298</span>     *<a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>     * @param descriptor Property descriptor to return a setter for<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>     * @return The write method<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>     */<a name="line.1301"></a>
-<span class="sourceLineNo">1302</span>    public Method getWriteMethod(PropertyDescriptor descriptor) {<a name="line.1302"></a>
-<span class="sourceLineNo">1303</span><a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>        return (MethodUtils.getAccessibleMethod(descriptor.getWriteMethod()));<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span><a name="line.1305"></a>
-<span class="sourceLineNo">1306</span>    }<a name="line.1306"></a>
-<span class="sourceLineNo">1307</span><a name="line.1307"></a>
-<span class="sourceLineNo">1308</span><a name="line.1308"></a>
-<span class="sourceLineNo">1309</span>    /**<a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>     * &lt;p&gt;Return an accessible property setter method for this property,<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>     * if there is one; otherwise return &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>     *<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span>     * &lt;p&gt;&lt;strong&gt;FIXME&lt;/strong&gt; - Does not work with DynaBeans.&lt;/p&gt;<a name="line.1313"></a>
-<span class="sourceLineNo">1314</span>     *<a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>     * @param clazz The class of the read method will be invoked on<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span>     * @param descriptor Property descriptor to return a setter for<a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>     * @return The write method<a name="line.1317"></a>
-<span class="sourceLineNo">1318</span>     */<a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>    Method getWriteMethod(Class&lt;?&gt; clazz, PropertyDescriptor descriptor) {<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>        return (MethodUtils.getAccessibleMethod(clazz, descriptor.getWriteMethod()));<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>    }<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span><a name="line.1322"></a>
-<span class="sourceLineNo">1323</span><a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>    /**<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>     * &lt;p&gt;Return &lt;code&gt;true&lt;/code&gt; if the specified property name identifies<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>     * a readable property on the specified bean; otherwise, return<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span>     * &lt;code&gt;false&lt;/code&gt;.<a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>     *<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span>     * @param bean Bean to be examined (may be a {@link DynaBean}<a name="line.1329"></a>
-<span class="sourceLineNo">1330</span>     * @param name Property name to be evaluated<a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>     * @return &lt;code&gt;true&lt;/code&gt; if the property is readable,<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>     * otherwise &lt;code&gt;false&lt;/code&gt;<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>     *<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt;<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>     *  or &lt;code&gt;name&lt;/code&gt; is &lt;code&gt;null&lt;/code&gt;<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span>     *<a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>     * @since BeanUtils 1.6<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span>     */<a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>    public boolean isReadable(Object bean, String name) {<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span><a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>        // Validate method parameters<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>        if (bean == null) {<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1343"></a>
-<span class="sourceLineNo">1344</span>        }<a name="line.1344"></a>
-<span class="sourceLineNo">1345</span>        if (name == null) {<a name="line.1345"></a>
-<span class="sourceLineNo">1346</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1346"></a>
-<span class="sourceLineNo">1347</span>                    bean.getClass() + "'");<a name="line.1347"></a>
-<span class="sourceLineNo">1348</span>        }<a name="line.1348"></a>
-<span class="sourceLineNo">1349</span><a name="line.1349"></a>
-<span class="sourceLineNo">1350</span>        // Resolve nested references<a name="line.1350"></a>
-<span class="sourceLineNo">1351</span>        while (resolver.hasNested(name)) {<a name="line.1351"></a>
-<span class="sourceLineNo">1352</span>            String next = resolver.next(name);<a name="line.1352"></a>
-<span class="sourceLineNo">1353</span>            Object nestedBean = null;<a name="line.1353"></a>
-<span class="sourceLineNo">1354</span>            try {<a name="line.1354"></a>
-<span class="sourceLineNo">1355</span>                nestedBean = getProperty(bean, next);<a name="line.1355"></a>
-<span class="sourceLineNo">1356</span>            } catch (IllegalAccessException e) {<a name="line.1356"></a>
-<span class="sourceLineNo">1357</span>                return false;<a name="line.1357"></a>
-<span class="sourceLineNo">1358</span>            } catch (InvocationTargetException e) {<a name="line.1358"></a>
-<span class="sourceLineNo">1359</span>                return false;<a name="line.1359"></a>
-<span class="sourceLineNo">1360</span>            } catch (NoSuchMethodException e) {<a name="line.1360"></a>
-<span class="sourceLineNo">1361</span>                return false;<a name="line.1361"></a>
-<span class="sourceLineNo">1362</span>            }<a name="line.1362"></a>
-<span class="sourceLineNo">1363</span>            if (nestedBean == null) {<a name="line.1363"></a>
-<span class="sourceLineNo">1364</span>                throw new NestedNullException<a name="line.1364"></a>
-<span class="sourceLineNo">1365</span>                        ("Null property value for '" + next +<a name="line.1365"></a>
-<span class="sourceLineNo">1366</span>                        "' on bean class '" + bean.getClass() + "'");<a name="line.1366"></a>
-<span class="sourceLineNo">1367</span>            }<a name="line.1367"></a>
-<span class="sourceLineNo">1368</span>            bean = nestedBean;<a name="line.1368"></a>
-<span class="sourceLineNo">1369</span>            name = resolver.remove(name);<a name="line.1369"></a>
-<span class="sourceLineNo">1370</span>        }<a name="line.1370"></a>
-<span class="sourceLineNo">1371</span><a name="line.1371"></a>
-<span class="sourceLineNo">1372</span>        // Remove any subscript from the final name value<a name="line.1372"></a>
-<span class="sourceLineNo">1373</span>        name = resolver.getProperty(name);<a name="line.1373"></a>
-<span class="sourceLineNo">1374</span><a name="line.1374"></a>
-<span class="sourceLineNo">1375</span>        // Treat WrapDynaBean as special case - may be a write-only property<a name="line.1375"></a>
-<span class="sourceLineNo">1376</span>        // (see Jira issue# BEANUTILS-61)<a name="line.1376"></a>
-<span class="sourceLineNo">1377</span>        if (bean instanceof WrapDynaBean) {<a name="line.1377"></a>
-<span class="sourceLineNo">1378</span>            bean = ((WrapDynaBean)bean).getInstance();<a name="line.1378"></a>
-<span class="sourceLineNo">1379</span>        }<a name="line.1379"></a>
-<span class="sourceLineNo">1380</span><a name="line.1380"></a>
-<span class="sourceLineNo">1381</span>        // Return the requested result<a name="line.1381"></a>
-<span class="sourceLineNo">1382</span>        if (bean instanceof DynaBean) {<a name="line.1382"></a>
-<span class="sourceLineNo">1383</span>            // All DynaBean properties are readable<a name="line.1383"></a>
-<span class="sourceLineNo">1384</span>            return (((DynaBean) bean).getDynaClass().getDynaProperty(name) != null);<a name="line.1384"></a>
-<span class="sourceLineNo">1385</span>        } else {<a name="line.1385"></a>
-<span class="sourceLineNo">1386</span>            try {<a name="line.1386"></a>
-<span class="sourceLineNo">1387</span>                PropertyDescriptor desc =<a name="line.1387"></a>
-<span class="sourceLineNo">1388</span>                    getPropertyDescriptor(bean, name);<a name="line.1388"></a>
-<span class="sourceLineNo">1389</span>                if (desc != null) {<a name="line.1389"></a>
-<span class="sourceLineNo">1390</span>                    Method readMethod = getReadMethod(bean.getClass(), desc);<a name="line.1390"></a>
-<span class="sourceLineNo">1391</span>                    if (readMethod == null) {<a name="line.1391"></a>
-<span class="sourceLineNo">1392</span>                        if (desc instanceof IndexedPropertyDescriptor) {<a name="line.1392"></a>
-<span class="sourceLineNo">1393</span>                            readMethod = ((IndexedPropertyDescriptor) desc).getIndexedReadMethod();<a name="line.1393"></a>
-<span class="sourceLineNo">1394</span>                        } else if (desc instanceof MappedPropertyDescriptor) {<a name="line.1394"></a>
-<span class="sourceLineNo">1395</span>                            readMethod = ((MappedPropertyDescriptor) desc).getMappedReadMethod();<a name="line.1395"></a>
-<span class="sourceLineNo">1396</span>                        }<a name="line.1396"></a>
-<span class="sourceLineNo">1397</span>                        readMethod = MethodUtils.getAccessibleMethod(bean.getClass(), readMethod);<a name="line.1397"></a>
-<span class="sourceLineNo">1398</span>                    }<a name="line.1398"></a>
-<span class="sourceLineNo">1399</span>                    return (readMethod != null);<a name="line.1399"></a>
-<span class="sourceLineNo">1400</span>                } else {<a name="line.1400"></a>
-<span class="sourceLineNo">1401</span>                    return (false);<a name="line.1401"></a>
-<span class="sourceLineNo">1402</span>                }<a name="line.1402"></a>
-<span class="sourceLineNo">1403</span>            } catch (IllegalAccessException e) {<a name="line.1403"></a>
-<span class="sourceLineNo">1404</span>                return (false);<a name="line.1404"></a>
-<span class="sourceLineNo">1405</span>            } catch (InvocationTargetException e) {<a name="line.1405"></a>
-<span class="sourceLineNo">1406</span>                return (false);<a name="line.1406"></a>
-<span class="sourceLineNo">1407</span>            } catch (NoSuchMethodException e) {<a name="line.1407"></a>
-<span class="sourceLineNo">1408</span>                return (false);<a name="line.1408"></a>
-<span class="sourceLineNo">1409</span>            }<a name="line.1409"></a>
-<span class="sourceLineNo">1410</span>        }<a name="line.1410"></a>
-<span class="sourceLineNo">1411</span><a name="line.1411"></a>
-<span class="sourceLineNo">1412</span>    }<a name="line.1412"></a>
-<span class="sourceLineNo">1413</span><a name="line.1413"></a>
-<span class="sourceLineNo">1414</span><a name="line.1414"></a>
-<span class="sourceLineNo">1415</span>    /**<a name="line.1415"></a>
-<span class="sourceLineNo">1416</span>     * &lt;p&gt;Return &lt;code&gt;true&lt;/code&gt; if the specified property name identifies<a name="line.1416"></a>
-<span class="sourceLineNo">1417</span>     * a writeable property on the specified bean; otherwise, return<a name="line.1417"></a>
-<span class="sourceLineNo">1418</span>     * &lt;code&gt;false&lt;/code&gt;.<a name="line.1418"></a>
-<span class="sourceLineNo">1419</span>     *<a name="line.1419"></a>
-<span class="sourceLineNo">1420</span>     * @param bean Bean to be examined (may be a {@link DynaBean}<a name="line.1420"></a>
-<span class="sourceLineNo">1421</span>     * @param name Property name to be evaluated<a name="line.1421"></a>
-<span class="sourceLineNo">1422</span>     * @return &lt;code&gt;true&lt;/code&gt; if the property is writeable,<a name="line.1422"></a>
-<span class="sourceLineNo">1423</span>     * otherwise &lt;code&gt;false&lt;/code&gt;<a name="line.1423"></a>
-<span class="sourceLineNo">1424</span>     *<a name="line.1424"></a>
-<span class="sourceLineNo">1425</span>     * @exception IllegalArgumentException if &lt;code&gt;bean&lt;/code&gt;<a name="line.1425"></a>
-<span class="sourceLineNo">1426</span>     *  or &lt;code&gt;name&lt;/code&gt; is &lt;code&gt;null&lt;/code&gt;<a name="line.1426"></a>
-<span class="sourceLineNo">1427</span>     *<a name="line.1427"></a>
-<span class="sourceLineNo">1428</span>     * @since BeanUtils 1.6<a name="line.1428"></a>
-<span class="sourceLineNo">1429</span>     */<a name="line.1429"></a>
-<span class="sourceLineNo">1430</span>    public boolean isWriteable(Object bean, String name) {<a name="line.1430"></a>
-<span class="sourceLineNo">1431</span><a name="line.1431"></a>
-<span class="sourceLineNo">1432</span>        // Validate method parameters<a name="line.1432"></a>
-<span class="sourceLineNo">1433</span>        if (bean == null) {<a name="line.1433"></a>
-<span class="sourceLineNo">1434</span>            throw new IllegalArgumentException("No bean specified");<a name="line.1434"></a>
-<span class="sourceLineNo">1435</span>        }<a name="line.1435"></a>
-<span class="sourceLineNo">1436</span>        if (name == null) {<a name="line.1436"></a>
-<span class="sourceLineNo">1437</span>            throw new IllegalArgumentException("No name specified for bean class '" +<a name="line.1437"></a>
-<span class="sourceLineNo">1438</span>                    bean.getClass() + "'");<a name="line.1438"></a>
-<span class="sourceLineNo">1439</span>        }<a name="line.1439"></a>
-<span class="sourceLineNo">1440</span><a name="line.1440"></a>
-<span class="sourceLineNo">1441</span>        // Resolve nested references<a name="line.1441"></a>
-<span class="sourceLineNo">1442</span>        while (resolver.hasNested(name)) {<a name="line.1442"></a>
-<span class="sourceLineNo">1443</span>            String next = resolver.next(name);<a name="line.1443"></a>
-<span class="sourceLineNo">1444</span>            Object nestedBean = null;<a name="line.1444"></a>
-<span class="sourceLineNo">1445</span>            try {<a name="line.1445"></a>
-<span class="sourceLineNo">1446</span>                nestedBean = getProperty(bean, next);<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>            } catch (IllegalAccessException e) {<a name="line.1447"></a>
-<span class="sourceLineNo">1448</span>                return false;<a name="line.1448"></a>
-<span class="sourceLineNo">1449</span>            } catch (InvocationTargetException e) {<a name="line.1449"></a>
-<span class="sourceLineNo">1450</span>                return false;<a name="line.1450"></a>
-<span class="sourceLineNo">1451</span>            } catch (NoSuchMethodException e) {<a name="line.1451"></a>
-<span class="sourceLineNo">1452</span>                return false;<a name="line.1452"></a>
-<span class="sourceLineNo">1453</span>            }<a name="line.1453"></a>
-<span class="sourceLineNo">1454</span>            if (nestedBean == null) {<a name="line.1454"></a>
-<span class="sourceLineNo">1455</span>                throw new NestedNullException<a name="line.1455"></a>

[... 1780 lines stripped ...]


Mime
View raw message