com.redspr.beanldom.info
Class PropertyInfoImpl

java.lang.Object
  |
  +--com.redspr.beanldom.info.PropertyInfoImpl
All Implemented Interfaces:
PropertyInfo

public final class PropertyInfoImpl
extends Object
implements PropertyInfo

Similar to java.beans.PropertyDescriptor but maintains reference to return types ClassInfo and allows static "interpreter" methods.

Author:
Sam Hough

Field Summary
static PropertyInfo[] EMPTY
           
 
Constructor Summary
PropertyInfoImpl(PropertyDescriptor prop2)
           
 
Method Summary
 String getName()
          name of this property
 Object getObject(Object target)
          will invoke the appropriate method on parent
 ClassInfo getPropertyType()
          class info for the type of this property
 String getValue(Object target)
          utility method that will call propertyType.getValue(propertyValue)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final PropertyInfo[] EMPTY
Constructor Detail

PropertyInfoImpl

public PropertyInfoImpl(PropertyDescriptor prop2)
Method Detail

getName

public String getName()
Description copied from interface: PropertyInfo
name of this property

Specified by:
getName in interface PropertyInfo

getPropertyType

public ClassInfo getPropertyType()
Description copied from interface: PropertyInfo
class info for the type of this property

Specified by:
getPropertyType in interface PropertyInfo

getObject

public Object getObject(Object target)
Description copied from interface: PropertyInfo
will invoke the appropriate method on parent

Specified by:
getObject in interface PropertyInfo

getValue

public String getValue(Object target)
Description copied from interface: PropertyInfo
utility method that will call propertyType.getValue(propertyValue)

Specified by:
getValue in interface PropertyInfo