Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » [javadoc | source]
org.springframework.beans
public class: MutablePropertyValues [javadoc | source]
java.lang.Object
   org.springframework.beans.MutablePropertyValues

All Implemented Interfaces:
    Serializable, PropertyValues

Direct Known Subclasses:
    FilterConfigPropertyValues, ServletConfigPropertyValues, ServletRequestParameterPropertyValues, PortletConfigPropertyValues, PortletRequestParameterPropertyValues

Default implementation of the PropertyValues interface. Allows simple manipulation of properties, and provides constructors to support deep copy and construction from a Map.
Constructor:
 public MutablePropertyValues() 
 public MutablePropertyValues(PropertyValues original) 
    Deep copy constructor. Guarantees PropertyValue references are independent, although it can't deep copy objects currently referenced by individual PropertyValue objects.
 public MutablePropertyValues(Map original) 
    Construct a new MutablePropertyValues object from a Map.
 public MutablePropertyValues(List propertyValueList) 
    Construct a new MutablePropertyValues object using the given List of PropertyValue objects as-is.

    This is a constructor for advanced usage scenarios. It is not intended for typical programmatic use.

    Parameters:
    propertyValueList - List of PropertyValue objects
Method from org.springframework.beans.MutablePropertyValues Summary:
addPropertyValue,   addPropertyValue,   addPropertyValues,   addPropertyValues,   changesSince,   clear,   contains,   equals,   getPropertyValue,   getPropertyValueList,   getPropertyValues,   hashCode,   isConverted,   isEmpty,   registerProcessedProperty,   removePropertyValue,   removePropertyValue,   setConverted,   setPropertyValueAt,   size,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.MutablePropertyValues Detail:
 public MutablePropertyValues addPropertyValue(PropertyValue pv) 
    Add a PropertyValue object, replacing any existing one for the corresponding property.
 public  void addPropertyValue(String propertyName,
    Object propertyValue) 
    Overloaded version of addPropertyValue that takes a property name and a property value.
 public MutablePropertyValues addPropertyValues(PropertyValues other) 
    Copy all given PropertyValues into this object. Guarantees PropertyValue references are independent, although it can't deep copy objects currently referenced by individual PropertyValue objects.
 public MutablePropertyValues addPropertyValues(Map other) 
    Add all property values from the given Map.
 public PropertyValues changesSince(PropertyValues old) 
 public  void clear() 
    Clear this holder, removing all PropertyValues.
 public boolean contains(String propertyName) 
 public boolean equals(Object other) 
 public PropertyValue getPropertyValue(String propertyName) 
 public List getPropertyValueList() 
    Return the underlying List of PropertyValue objects in its raw form. The returned List can be modified directly, although this is not recommended.

    This is an accessor for optimized access to all PropertyValue objects. It is not intended for typical programmatic use.

 public PropertyValue[] getPropertyValues() 
 public int hashCode() 
 public boolean isConverted() 
    Return whether this holder contains converted values only (true), or whether the values still need to be converted (false).
 public boolean isEmpty() 
 public  void registerProcessedProperty(String propertyName) 
    Register the specified property as "processed" in the sense of some processor calling the corresponding setter method outside of the PropertyValue(s) mechanism.

    This will lead to true being returned from a #contains call for the specified property.

 public  void removePropertyValue(String propertyName) 
    Overloaded version of removePropertyValue that takes a property name.
 public  void removePropertyValue(PropertyValue pv) 
    Remove the given PropertyValue, if contained.
 public  void setConverted() 
    Mark this holder as containing converted values only (i.e. no runtime resolution needed anymore).
 public  void setPropertyValueAt(PropertyValue pv,
    int i) 
    Modify a PropertyValue object held in this object. Indexed from 0.
 public int size() 
 public String toString()