Framework Professional Edition Package


com.prosyst.util.beans
Class BeanProperty

java.lang.Object
  extended by com.prosyst.util.beans.BeanProperty
Direct Known Subclasses:
IndexedBeanProperty

public class BeanProperty
extends java.lang.Object

This class describes a bean property. It provides methods for obtaining property name, type, getter and setter methods. The property type, the return type of the getter method (if any) and the argument type of the setter method (if any) are always the same.

Author:
Krasimir Nedkov

Method Summary
 java.lang.String getName()
          Returns the name of this property.
 java.lang.Class getPropertyType()
          Returns type of the property
 java.lang.reflect.Method getReadMethod()
          Returns the 'getter' method of this property.
 java.lang.reflect.Method getWriteMethod()
          Returns the 'setter' method of this property.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this property.

Returns:
name of the property.

getPropertyType

public java.lang.Class getPropertyType()
Returns type of the property

Returns:
the type of the property.

getReadMethod

public java.lang.reflect.Method getReadMethod()
Returns the 'getter' method of this property.

Returns:
the 'getter' method of the property, or null if there is no such method

getWriteMethod

public java.lang.reflect.Method getWriteMethod()
Returns the 'setter' method of this property.

Returns:
the 'setter' method of the property, or null if there is no such method

toString

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

Framework Professional Edition Package


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