spring-framework / org.springframework.beans / PropertyAccessor / setPropertyValue

setPropertyValue

abstract fun setPropertyValue(propertyName: String, @Nullable value: Any): Unit

Set the specified value as current property value.

Parameters

propertyName - the name of the property to set the value of (may be a nested path and/or an indexed/mapped property)

value - the new value

Exceptions

InvalidPropertyException - if there is no such property or if the property isn't writable

PropertyAccessException - if the property was valid but the accessor method failed or a type mismatch occurred

abstract fun setPropertyValue(pv: PropertyValue): Unit

Set the specified value as current property value.

Parameters

pv - an object containing the new property value

Exceptions

InvalidPropertyException - if there is no such property or if the property isn't writable

PropertyAccessException - if the property was valid but the accessor method failed or a type mismatch occurred