java.lang.Object | |
↳ | org.springframework.beans.MutablePropertyValues |
Known Direct Subclasses |
Default implementation of the PropertyValues
interface.
Allows simple manipulation of properties, and provides constructors
to support deep copy and construction from a Map.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new empty MutablePropertyValues object.
| |||||||||||
Deep copy constructor.
| |||||||||||
Construct a new MutablePropertyValues object from a Map.
| |||||||||||
Construct a new MutablePropertyValues object using the given List of
PropertyValue objects as-is.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a PropertyValue object, replacing any existing one for the
corresponding property or getting merged with it (if applicable).
| |||||||||||
Add a PropertyValue object, replacing any existing one for the
corresponding property or getting merged with it (if applicable).
| |||||||||||
Overloaded version of
addPropertyValue that takes
a property name and a property value. | |||||||||||
Add all property values from the given Map.
| |||||||||||
Copy all given PropertyValues into this object.
| |||||||||||
Return the changes since the previous PropertyValues.
| |||||||||||
Is there a property value (or other processing entry) for this property?
| |||||||||||
Return the property value with the given name, if any.
| |||||||||||
Return the underlying List of PropertyValue objects in its raw form.
| |||||||||||
Return an array of the PropertyValue objects held in this object.
| |||||||||||
Return whether this holder contains converted values only (
true ),
or whether the values still need to be converted (false ). | |||||||||||
Does this holder not contain any PropertyValue objects at all?
| |||||||||||
Register the specified property as "processed" in the sense
of some processor calling the corresponding setter method
outside of the PropertyValue(s) mechanism.
| |||||||||||
Remove the given PropertyValue, if contained.
| |||||||||||
Overloaded version of
removePropertyValue that takes a property name. | |||||||||||
Mark this holder as containing converted values only
(i.e.
| |||||||||||
Modify a PropertyValue object held in this object.
| |||||||||||
Return the number of PropertyValue entries in the list.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.PropertyValues
|
Creates a new empty MutablePropertyValues object.
Property values can be added with the add
method.
Deep copy constructor. Guarantees PropertyValue references are independent, although it can't deep copy objects currently referenced by individual PropertyValue objects.
original | the PropertyValues to copy |
---|
Construct a new MutablePropertyValues object from a Map.
original | Map with property values keyed by property name Strings |
---|
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.
propertyValueList | List of PropertyValue objects |
---|
Add a PropertyValue object, replacing any existing one for the corresponding property or getting merged with it (if applicable).
propertyName | name of the property |
---|---|
propertyValue | value of the property |
Add a PropertyValue object, replacing any existing one for the corresponding property or getting merged with it (if applicable).
pv | PropertyValue object to add |
---|
Overloaded version of addPropertyValue
that takes
a property name and a property value.
Note: As of Spring 3.0, we recommend using the more concise
and chaining-capable variant add(String, Object)
.
propertyName | name of the property |
---|---|
propertyValue | value of the property |
Add all property values from the given Map.
other | Map with property values keyed by property name, which must be a String |
---|
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.
other | the PropertyValues to copy |
---|
Return the changes since the previous PropertyValues.
Subclasses should also override equals
.
old | old property values |
---|
Is there a property value (or other processing entry) for this property?
propertyName | the name of the property we're interested in |
---|
Return the property value with the given name, if any.
propertyName | the name to search for |
---|
null
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.
Return an array of the PropertyValue objects held in this object.
Return whether this holder contains converted values only (true
),
or whether the values still need to be converted (false
).
Does this holder not contain any PropertyValue objects at all?
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(String)
call for the specified property.
propertyName | the name of the property. |
---|
Remove the given PropertyValue, if contained.
pv | the PropertyValue to remove |
---|
Overloaded version of removePropertyValue
that takes a property name.
propertyName | name of the property |
---|
Mark this holder as containing converted values only (i.e. no runtime resolution needed anymore).
Modify a PropertyValue object held in this object. Indexed from 0.