edu.umd.cfar.lamp.apploader.propertysheets
Interface PropertyInterfacer

All Known Implementing Classes:
PropertyAdapter, SetAttrIsDynamic, SetAttrName, SetAttrType, SetAttrValue, SetDescName, SetDescType, SetLvaluePossibles

public interface PropertyInterfacer

Generic functions for interacting with a property of a java object.


Method Summary
 java.lang.String getName()
          Get the display name of the property.
 java.lang.Class getPropertyClass()
          Gets the Class associated with the property
 java.lang.Object getValue(java.lang.Object bean)
          Gets the current value of the property on the given bean.
 boolean isReadable()
          Checks to see if the property may be readable.
 boolean isReadableOn(java.lang.Object bean)
          Checks to see if the property is readable on the given bean.
 boolean isWritable()
          Checks to see if the property may be settable.
 boolean isWritableOn(java.lang.Object bean)
          Checks to see if the property is writable on the given bean.
 void setValue(java.lang.Object bean, java.lang.Object value)
          Sets a specific property of the passed bean to the given value.
 

Method Detail

getName

public java.lang.String getName()
Get the display name of the property.

Returns:
The (possibly localized) display name.

getPropertyClass

public java.lang.Class getPropertyClass()
Gets the Class associated with the property

Returns:
The java class of the property

isReadable

public boolean isReadable()
Checks to see if the property may be readable.

Returns:
true if there exists some instances that allow this property to be read.

isWritable

public boolean isWritable()
Checks to see if the property may be settable.

Returns:
true if there exists some instances that allow this property to be set.

setValue

public void setValue(java.lang.Object bean,
                     java.lang.Object value)
Sets a specific property of the passed bean to the given value.

Parameters:
bean - The java object to set the property specified by this PropertyInterfacer instance of.
value - The new value for the property
Throws:
InapplicablePropertyException
PropertyAccessException

getValue

public java.lang.Object getValue(java.lang.Object bean)
Gets the current value of the property on the given bean.

Parameters:
bean -
Returns:
Throws:
InapplicablePropertyException
PropertyAccessException

isWritableOn

public boolean isWritableOn(java.lang.Object bean)
Checks to see if the property is writable on the given bean.

Parameters:
bean - The bean to check
Returns:
true if the bean's property may be written
Throws:
InapplicablePropertyException

isReadableOn

public boolean isReadableOn(java.lang.Object bean)
Checks to see if the property is readable on the given bean.

Parameters:
bean - The bean to check
Returns:
true if the bean's property may be read
Throws:
InapplicablePropertyException