| java.lang.Object org.springframework.core.AttributeAccessorSupport org.springframework.beans.PropertyValue
PropertyValue | public class PropertyValue extends AttributeAccessorSupport implements BeanMetadataElement,Serializable(Code) | | Object to hold information and value for an individual bean 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 an optimized way.
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.
author: Rod Johnson author: Rob Harrop author: Juergen Hoeller since: 13 May 2001 See Also: PropertyValues See Also: BeanWrapper |
Method Summary | |
public boolean | equals(Object other) | public synchronized Object | getConvertedValue() Return the converted value of the constructor argument,
after processed type conversion. | public String | getName() Return the name of the property. | public Object | getSource() | public Object | getValue() Return the value of the property. | public int | hashCode() | public synchronized boolean | isConverted() Return whether this holder contains a converted value already (true ),
or whether the value still needs to be converted (false ). | public synchronized void | setConvertedValue(Object value) Set the converted value of the constructor argument,
after processed type conversion. | public void | setSource(Object source) Set the configuration source Object for this metadata element. | public String | toString() |
resolvedTokens | volatile Object resolvedTokens(Code) | | Package-visible field for caching the resolved property path tokens
|
PropertyValue | public PropertyValue(String name, Object value)(Code) | | Create a new PropertyValue instance.
Parameters: name - the name of the property (never null ) Parameters: value - the value of the property (possibly before type conversion) |
PropertyValue | public PropertyValue(PropertyValue original)(Code) | | Copy constructor.
Parameters: original - the PropertyValue to copy (never null ) |
getConvertedValue | public synchronized Object getConvertedValue()(Code) | | Return the converted value of the constructor argument,
after processed type conversion.
|
getName | public String getName()(Code) | | Return the name of the property.
|
getValue | public Object getValue()(Code) | | Return the value of the property.
Note that type conversion will not have occurred here.
It is the responsibility of the BeanWrapper implementation to
perform type conversion.
|
hashCode | public int hashCode()(Code) | | |
isConverted | public synchronized boolean isConverted()(Code) | | Return whether this holder contains a converted value already (true ),
or whether the value still needs to be converted (false ).
|
setConvertedValue | public synchronized void setConvertedValue(Object value)(Code) | | Set the converted value of the constructor argument,
after processed type conversion.
|
setSource | public void setSource(Object source)(Code) | | Set the configuration source Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
|
|
|