|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.beans.MutablePropertyValues
Default implementation of the PropertyValues interface. Allows simple manipulation of properties, and provides constructors to support deep copy and construction from a Map.
| Constructor Summary | |
MutablePropertyValues()
Creates a new empty MutablePropertyValues object. |
|
MutablePropertyValues(java.util.Map source)
Construct a new PropertyValues object from a Map. |
|
MutablePropertyValues(PropertyValues source)
Deep copy constructor. |
|
| Method Summary | |
MutablePropertyValues |
addPropertyValue(PropertyValue pv)
Add a PropertyValue object, replacing any existing one for the respective property. |
void |
addPropertyValue(java.lang.String propertyName,
java.lang.Object propertyValue)
Overloaded version of addPropertyValue that takes a property name and a property value. |
MutablePropertyValues |
addPropertyValues(java.util.Map source)
Add all property values from the given Map. |
MutablePropertyValues |
addPropertyValues(PropertyValues source)
Copy all given PropertyValues into this object. |
PropertyValues |
changesSince(PropertyValues old)
Return the changes since the previous PropertyValues. |
boolean |
contains(java.lang.String propertyName)
Is there a property value 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. |
void |
removePropertyValue(PropertyValue pv)
Remove the given PropertyValue, if contained. |
void |
removePropertyValue(java.lang.String propertyName)
Overloaded version of removePropertyValue that takes a property name. |
void |
setPropertyValueAt(PropertyValue pv,
int i)
Modify a PropertyValue object held in this object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MutablePropertyValues()
addPropertyValue(PropertyValue),
addPropertyValue(String, Object)public MutablePropertyValues(PropertyValues source)
source - the PropertyValues to copyaddPropertyValues(PropertyValues)public MutablePropertyValues(java.util.Map source)
source - Map with property values keyed by property name,
which must be a StringaddPropertyValues(Map)| Method Detail |
public MutablePropertyValues addPropertyValues(PropertyValues source)
source - the PropertyValues to copy
public MutablePropertyValues addPropertyValues(java.util.Map source)
source - Map with property values keyed by property name,
which must be a String
public MutablePropertyValues addPropertyValue(PropertyValue pv)
pv - PropertyValue object to add
public void addPropertyValue(java.lang.String propertyName,
java.lang.Object propertyValue)
propertyName - name of the propertypropertyValue - value of the propertyaddPropertyValue(PropertyValue)public void removePropertyValue(PropertyValue pv)
pv - the PropertyValue to removepublic void removePropertyValue(java.lang.String propertyName)
propertyName - name of the propertyremovePropertyValue(PropertyValue)
public void setPropertyValueAt(PropertyValue pv,
int i)
public PropertyValue[] getPropertyValues()
PropertyValues
getPropertyValues in interface PropertyValuespublic PropertyValue getPropertyValue(java.lang.String propertyName)
PropertyValues
getPropertyValue in interface PropertyValuespropertyName - name to search for
public boolean contains(java.lang.String propertyName)
PropertyValues
contains in interface PropertyValuespropertyName - name of the property we're interested in
public PropertyValues changesSince(PropertyValues old)
PropertyValues
changesSince in interface PropertyValuesold - old property values
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||