I added two missing methods to java.beans.IndexedPropertyDescriptor:
2005-10-07 Roman Kennke <[EMAIL PROTECTED]>
* java/beans/IndexedPropertyDescriptor.java
(setIndexedReadMethod): New method.
(setIndexedWriteMethod): New method.
/Roman
Index: java/beans/IndexedPropertyDescriptor.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/beans/IndexedPropertyDescriptor.java,v
retrieving revision 1.11
diff -u -r1.11 IndexedPropertyDescriptor.java
--- java/beans/IndexedPropertyDescriptor.java 7 Oct 2005 12:39:42 -0000 1.11
+++ java/beans/IndexedPropertyDescriptor.java 7 Oct 2005 12:47:01 -0000
@@ -240,7 +240,7 @@
(getIndex.getDeclaringClass()))
{
throw new IntrospectionException("get and set index methods are "
- "not in the same class.");
+ + "not in the same class.");
}
}
@@ -258,7 +258,7 @@
.getClass().equals(getMethod.getReturnType()))
{
throw new IntrospectionException("array methods do not match index "
- "methods.");
+ + "methods.");
}
this.getMethod = getMethod;
@@ -282,9 +282,29 @@
return getIndex;
}
+ /**
+ * Sets the method that is used to read an indexed property.
+ *
+ * @param m the method to set
+ */
+ public void setIndexedReadMethod(Method m)
+ {
+ getIndex = m;
+ }
+
public Method getIndexedWriteMethod()
{
return setIndex;
+ }
+
+ /**
+ * Sets the method that is used to write an indexed property.
+ *
+ * @param m the method to set
+ */
+ public void setIndexedWriteMethod(Method m)
+ {
+ setIndex = m;
}
private void findMethods(Class beanClass, String getMethodName,
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches