/[classpath]/classpath/java/beans/IndexedPropertyDescriptor.java
ViewVC logotype

Diff of /classpath/java/beans/IndexedPropertyDescriptor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by rabbit78, Fri Oct 7 12:39:42 2005 UTC revision 1.12 by rabbit78, Fri Oct 7 12:47:55 2005 UTC
# Line 240  public class IndexedPropertyDescriptor e Line 240  public class IndexedPropertyDescriptor e
240             (getIndex.getDeclaringClass()))             (getIndex.getDeclaringClass()))
241            {            {
242              throw new IntrospectionException("get and set index methods are "              throw new IntrospectionException("get and set index methods are "
243                                               "not in the same class.");                                               + "not in the same class.");
244            }            }
245        }        }
246    
# Line 258  public class IndexedPropertyDescriptor e Line 258  public class IndexedPropertyDescriptor e
258          .getClass().equals(getMethod.getReturnType()))          .getClass().equals(getMethod.getReturnType()))
259        {        {
260          throw new IntrospectionException("array methods do not match index "          throw new IntrospectionException("array methods do not match index "
261                                           "methods.");                                           + "methods.");
262        }        }
263    
264      this.getMethod = getMethod;      this.getMethod = getMethod;
# Line 282  public class IndexedPropertyDescriptor e Line 282  public class IndexedPropertyDescriptor e
282      return getIndex;      return getIndex;
283    }    }
284    
285      /**
286       * Sets the method that is used to read an indexed property.
287       *
288       * @param m the method to set
289       */
290      public void setIndexedReadMethod(Method m)
291      {
292        getIndex = m;
293      }
294    
295    public Method getIndexedWriteMethod()    public Method getIndexedWriteMethod()
296    {    {
297      return setIndex;      return setIndex;
298    }    }
299    
300      /**
301       * Sets the method that is used to write an indexed property.
302       *
303       * @param m the method to set
304       */
305      public void setIndexedWriteMethod(Method m)
306      {
307        setIndex = m;
308      }
309    
310    private void findMethods(Class beanClass, String getMethodName,    private void findMethods(Class beanClass, String getMethodName,
311                             String setMethodName, String getIndexName,                             String setMethodName, String getIndexName,
312                             String setIndexName)                             String setIndexName)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26