org.progeeks.util
Interface PropertyAccess

All Known Implementing Classes:
BeanPropertyAdapter, DbfRecordPropertyAccess, PropertyAdapter, TypedPropertyAccess

public interface PropertyAccess

Interface implemented to define a standard way of accessing or manipulating object properties. This is a stateless component and simply accesses a provided object directly.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Method Summary
 boolean addPropertyChangeListener(java.lang.Object object, java.beans.PropertyChangeListener listener)
          Adds the specified property change listener to the specified object using whatever implementation specific way is most friendly.
 boolean addPropertyChangeListener(java.lang.Object object, java.lang.String property, java.beans.PropertyChangeListener listener)
          Adds the specified property change listener to the specified object using whatever implementation specific way is most friendly.
 java.lang.Object getProperty(java.lang.Object object, java.lang.String property)
          Returns the specified property from the specified object in whatever implementation specific way is most friendly.
 java.lang.Class getPropertyClass(java.lang.Object object, java.lang.String property)
          Returns the Java type for the specified property on the specified object.
 boolean hasProperty(java.lang.Object object, java.lang.String property)
          Returns true if the specified object appears to have the specified property.
 boolean removePropertyChangeListener(java.lang.Object object, java.beans.PropertyChangeListener listener)
          Removes a previously registered property change listener from the specified object using whatever implementation specific way is most friendly.
 boolean removePropertyChangeListener(java.lang.Object object, java.lang.String property, java.beans.PropertyChangeListener listener)
          Removes a previously registered property change listener from the specified object using whatever implementation specific way is most friendly.
 void setProperty(java.lang.Object object, java.lang.String property, java.lang.Object value)
          Sets the specified property on the specified object to the specified value using whatever implementation specific way is most friendly.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.Object object,
                             java.lang.String property)
Returns the specified property from the specified object in whatever implementation specific way is most friendly.


hasProperty

boolean hasProperty(java.lang.Object object,
                    java.lang.String property)
Returns true if the specified object appears to have the specified property.


setProperty

void setProperty(java.lang.Object object,
                 java.lang.String property,
                 java.lang.Object value)
Sets the specified property on the specified object to the specified value using whatever implementation specific way is most friendly.


getPropertyClass

java.lang.Class getPropertyClass(java.lang.Object object,
                                 java.lang.String property)
Returns the Java type for the specified property on the specified object.


addPropertyChangeListener

boolean addPropertyChangeListener(java.lang.Object object,
                                  java.beans.PropertyChangeListener listener)
Adds the specified property change listener to the specified object using whatever implementation specific way is most friendly. This method will attempt to find the property change listener methods but will not fail if it doesn't find them.

Returns:
true if the addPropertyChangeListener() method was found and executed successfully. false otherwise.

addPropertyChangeListener

boolean addPropertyChangeListener(java.lang.Object object,
                                  java.lang.String property,
                                  java.beans.PropertyChangeListener listener)
Adds the specified property change listener to the specified object using whatever implementation specific way is most friendly. This method will attempt to find the property change listener methods but will not fail if it doesn't find them.

Returns:
true if the addPropertyChangeListener() method was found and executed successfully. false otherwise.

removePropertyChangeListener

boolean removePropertyChangeListener(java.lang.Object object,
                                     java.beans.PropertyChangeListener listener)
Removes a previously registered property change listener from the specified object using whatever implementation specific way is most friendly. This method will attempt to find the property change listener methods but will not fail if it doesn't find them.

Returns:
true if the removePropertyChangeListener() method was found and executed successfully. false otherwise.

removePropertyChangeListener

boolean removePropertyChangeListener(java.lang.Object object,
                                     java.lang.String property,
                                     java.beans.PropertyChangeListener listener)
Removes a previously registered property change listener from the specified object using whatever implementation specific way is most friendly. This method will attempt to find the property change listener methods but will not fail if it doesn't find them.

Returns:
true if the removePropertyChangeListener() method was found and executed successfully. false otherwise.


Copyright © 2002-2003 Paul Speed. All Rights Reserved.