edu.washington.cs.supple.beanlike
Class BeanlikePropertyDescriptor

java.lang.Object
  extended byedu.washington.cs.supple.beanlike.BeanlikePropertyDescriptor

public final class BeanlikePropertyDescriptor
extends java.lang.Object

BeanlikePropertyDescriptor encapsulates information about a property.

Author:
dbc1

Method Summary
 java.lang.reflect.Method getGetter()
          Access the getter method directly.
 java.lang.String getName()
           
 java.lang.reflect.Method getSetter()
          Access the setter method directly.
 java.lang.Class getType()
           
 java.lang.Object getValue(java.lang.Object beanlike)
           
 void setValue(java.lang.Object beanlike, java.lang.Object v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public java.lang.Object getValue(java.lang.Object beanlike)
                          throws java.lang.IllegalArgumentException
Returns:
the appropriate property value
Throws:
java.lang.IllegalArgumentException

getType

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

setValue

public void setValue(java.lang.Object beanlike,
                     java.lang.Object v)
              throws java.lang.IllegalArgumentException
Parameters:
v - the property value to set
Throws:
java.lang.IllegalArgumentException

getGetter

public java.lang.reflect.Method getGetter()
Access the getter method directly.


getSetter

public java.lang.reflect.Method getSetter()
Access the setter method directly.


getName

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