Framework Professional Edition Package


com.prosyst.util.beans
Class IndexedBeanProperty

java.lang.Object
  extended by com.prosyst.util.beans.BeanProperty
      extended by com.prosyst.util.beans.IndexedBeanProperty

public class IndexedBeanProperty
extends BeanProperty

This class represents an array-like bean property, which has indexed getter and/or setter methods. They allow access to a particular member of the array. Indexed bean properties have also a bean property type, which is the type of the array members.

Author:
Krasimir Nedkov

Method Summary
 java.lang.Class getIndexedPropertyType()
          Returns the indexed property type of the bean property.
 java.lang.reflect.Method getIndexedReadMethod()
          Returns the indexed read method.
 java.lang.reflect.Method getIndexedWriteMethod()
          Returns the indexed write argument.
 java.lang.String toString()
           
 
Methods inherited from class com.prosyst.util.beans.BeanProperty
getName, getPropertyType, getReadMethod, getWriteMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIndexedReadMethod

public java.lang.reflect.Method getIndexedReadMethod()
Returns the indexed read method. It receives exactly one argument,which is of type Integer.TYPE and represents the index. The return type is the same as the returned from the getIndexedPropertyType() method.

Returns:
the indexed read method or null if there is no indexed read method

getIndexedWriteMethod

public java.lang.reflect.Method getIndexedWriteMethod()
Returns the indexed write argument. It must receive exactly two arguments. The first one is of type Integer.TYPE and represents the index. The second must have the type returned by the getIndexedPropertyType() method.

Returns:
the write method or null if there is no indexed write method

getIndexedPropertyType

public java.lang.Class getIndexedPropertyType()
Returns the indexed property type of the bean property. It is the same as the return type of the read method (if exists) and the second argument of the writeMethod.

Returns:
the indexed property type

toString

public java.lang.String toString()
Overrides:
toString in class BeanProperty

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved