|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 map)
Construct a new PropertyValues object from a Map. |
|
MutablePropertyValues(PropertyValues other)
Deep copy constructor. |
Method Summary | |
void |
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. |
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 other)
public MutablePropertyValues(java.util.Map map)
map
- Map with property values keyed by property name,
which must be a StringMethod Detail |
public void addPropertyValue(PropertyValue pv)
pv
- PropertyValue object to addpublic 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 PropertyValues
public PropertyValue getPropertyValue(java.lang.String propertyName)
PropertyValues
getPropertyValue
in interface PropertyValues
propertyName
- name to search for
public boolean contains(java.lang.String propertyName)
PropertyValues
contains
in interface PropertyValues
propertyName
- name of the property we're interested in
public PropertyValues changesSince(PropertyValues old)
PropertyValues
changesSince
in interface PropertyValues
old
- old property values
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |