com.primix.tapestry.util.prop
Interface IPropertyAccessor

All Known Implementing Classes:
BeanProviderHelper.BeanAccessor, ListenerMapHelper.ListenerMapAccessor, MapHelper.MapAccessor

public interface IPropertyAccessor

Defines the methods by which a PropertyHelper can access the properties of the class it provides property access to.

Version:
$Id: IPropertyAccessor.java,v 1.5 2001/10/08 18:28:40 hship Exp $
Author:
Howard Ship

Method Summary
 java.lang.Object get(java.lang.Object instance)
          Returns the current value of the property in the instance.
 java.lang.String getName()
          Returns the name of the property.
 java.lang.Class getType()
          Returns the type of the property.
 boolean isReadable()
          Returns true if a method exists to read the current value of the property.
 boolean isReadWrite()
          Returns true if the property is readable and writable: it contains both accessor and mutator methods.
 boolean isWritable()
          Returns true if a method exists to update the current value of the property.
 void set(java.lang.Object instance, java.lang.Object value)
          Sets the value of the property in the instance.
 

Method Detail

getName

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

get

public java.lang.Object get(java.lang.Object instance)
Returns the current value of the property in the instance.

getType

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

isReadable

public boolean isReadable()
Returns true if a method exists to read the current value of the property.

isReadWrite

public boolean isReadWrite()
Returns true if the property is readable and writable: it contains both accessor and mutator methods.

isWritable

public boolean isWritable()
Returns true if a method exists to update the current value of the property.

set

public void set(java.lang.Object instance,
                java.lang.Object value)
Sets the value of the property in the instance.