|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.PropertyValue
Class to hold information and value for an individual property. Using an object here, rather than just storing all properties in a map keyed by property name, allows for more flexibility, and the ability to handle indexed properties etc in a special way if necessary.
Note that the value doesn't need to be the final required type: A BeanWrapper implementation should handle any necessary conversion, as this object doesn't know anything about the objects it will be applied to.
Constructor Summary | |
PropertyValue(java.lang.String name,
java.lang.Object value)
Creates new PropertyValue. |
Method Summary | |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getName()
Return the name of the property. |
java.lang.Object |
getValue()
Return the value of the property. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertyValue(java.lang.String name, java.lang.Object value)
name
- name of the propertyvalue
- value of the property (possibly before type conversion)Method Detail |
public java.lang.String getName()
public java.lang.Object getValue()
Note that type conversion will not have occurred here. It is the responsibility of the BeanWrapper implementation to perform type conversion.
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |