org.cojen.util
Interface BeanProperty


public interface BeanProperty

Contains information regarding a Bean property.

Author:
Brian S O'Neill
See Also:
BeanIntrospector

Method Summary
 Method getIndexedReadMethod(int index)
          Returns a one argument method used to read the indexed property value, or null if indexed reading is not allowed.
 Method getIndexedWriteMethod(int index)
          Returns a two argument method used to write the indexed property value, or null if indexed writing is not allowed.
 Class getIndexType(int index)
          Returns a specific index type supported by this property.
 int getIndexTypesCount()
          Returns the count of index types supported by this property.
 String getName()
          Returns the name of this property.
 Method getReadMethod()
          Returns a no-arg method used to read the property value, or null if reading is not allowed.
 Class getType()
          Returns the type of this property.
 Method getWriteMethod()
          Returns a one argument method used to write the property value, or null if writing is not allowed.
 String toString()
           
 

Method Detail

getName

String getName()
Returns the name of this property.


getType

Class getType()
Returns the type of this property.


getReadMethod

Method getReadMethod()
Returns a no-arg method used to read the property value, or null if reading is not allowed. The return type matches the type of this property.


getWriteMethod

Method getWriteMethod()
Returns a one argument method used to write the property value, or null if writing is not allowed. The first argument is the value to set, which is the type of this property.


getIndexTypesCount

int getIndexTypesCount()
Returns the count of index types supported by this property.


getIndexType

Class getIndexType(int index)
                   throws IndexOutOfBoundsException
Returns a specific index type supported by this property.

Throws:
IndexOutOfBoundsException

getIndexedReadMethod

Method getIndexedReadMethod(int index)
                            throws IndexOutOfBoundsException
Returns a one argument method used to read the indexed property value, or null if indexed reading is not allowed. The first argument on the returned method is the index value.

Throws:
IndexOutOfBoundsException

getIndexedWriteMethod

Method getIndexedWriteMethod(int index)
                             throws IndexOutOfBoundsException
Returns a two argument method used to write the indexed property value, or null if indexed writing is not allowed. The first argument on the returned method is the index value. The second argument is the indexed value to set, which is the type of this property.

Throws:
IndexOutOfBoundsException

toString

String toString()
Overrides:
toString in class Object


Copyright © 2004-2011 Brian S O'Neill. All Rights Reserved.