com.interface21.beans
Interface PropertyValues

All Known Implementing Classes:
MutablePropertyValues, ServletRequestParameterPropertyValues

public interface PropertyValues

Object containing 0 or more PropertyValues comprising one update.

Since:
13 May 2001
Version:
$Id: PropertyValues.java,v 1.1.1.1 2003/02/11 08:10:11 johnsonr Exp $
Author:
Rod Johnson

Method Summary
 PropertyValues changesSince(PropertyValues old)
          Return the changes since the previous PropertyValues.
 boolean contains(java.lang.String propertyName)
          Is there a propertyValue object for this property?
 PropertyValue getPropertyValue(java.lang.String propertyName)
          Return the property value with the given name
 PropertyValue[] getPropertyValues()
          Return an array of the PropertyValue objects held in this object.
 

Method Detail

getPropertyValues

public PropertyValue[] getPropertyValues()
Return an array of the PropertyValue objects held in this object.
Returns:
an array of the PropertyValue objects held in this object.

contains

public boolean contains(java.lang.String propertyName)
Is there a propertyValue object for this property?
Parameters:
propertyName - name of the property we're interested in
Returns:
whether there is a propertyValue object for this property?

getPropertyValue

public PropertyValue getPropertyValue(java.lang.String propertyName)
Return the property value with the given name
Parameters:
propertyName - name to search for
Returns:
pv or null

changesSince

public PropertyValues changesSince(PropertyValues old)
Return the changes since the previous PropertyValues. Subclasses should also override equals.
Parameters:
old - old property values
Returns:
PropertyValues updated or new properties. Return the empty PropertyValues if there are no changes.


Rod Johnson and Spring contributors 2001-2003.