| java.lang.Object org.springframework.beans.MutablePropertyValues
All known Subclasses: org.springframework.web.portlet.bind.PortletRequestParameterPropertyValues, org.springframework.web.bind.ServletRequestParameterPropertyValues,
MutablePropertyValues | public class MutablePropertyValues implements PropertyValues,Serializable(Code) | | Default implementation of the
PropertyValues interface.
Allows simple manipulation of properties, and provides constructors
to support deep copy and construction from a Map.
author: Rod Johnson author: Juergen Hoeller author: Rob Harrop since: 13 May 2001 |
MutablePropertyValues | public MutablePropertyValues(List propertyValueList)(Code) | | 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 |
addPropertyValue | public MutablePropertyValues addPropertyValue(PropertyValue pv)(Code) | | Add a PropertyValue object, replacing any existing one
for the corresponding property.
Parameters: pv - PropertyValue object to add this object to allow creating objects, adding multiplePropertyValues in a single statement |
addPropertyValues | public MutablePropertyValues addPropertyValues(PropertyValues other)(Code) | | 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.
Parameters: other - the PropertyValues to copy this object to allow creating objects, adding multiple PropertyValuesin a single statement |
addPropertyValues | public MutablePropertyValues addPropertyValues(Map other)(Code) | | Add all property values from the given Map.
Parameters: other - Map with property values keyed by property name,which must be a String this object to allow creating objects, adding multiplePropertyValues in a single statement |
clear | public void clear()(Code) | | Clear this holder, removing all PropertyValues.
|
getPropertyValueList | public List getPropertyValueList()(Code) | | 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.
|
hashCode | public int hashCode()(Code) | | |
isConverted | public boolean isConverted()(Code) | | Return whether this holder contains converted values only (true ),
or whether the values still need to be converted (false ).
|
isEmpty | public boolean isEmpty()(Code) | | |
removePropertyValue | public void removePropertyValue(PropertyValue pv)(Code) | | Remove the given PropertyValue, if contained.
Parameters: pv - the PropertyValue to remove |
setConverted | public void setConverted()(Code) | | Mark this holder as containing converted values only
(i.e. no runtime resolution needed anymore).
|
setPropertyValueAt | public void setPropertyValueAt(PropertyValue pv, int i)(Code) | | Modify a PropertyValue object held in this object.
Indexed from 0.
|
|
|