setDataValue

fun setDataValue(property: Property, value: DataValue?)

Set the value of a specified property.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the property value does not have the expected type.

Parameters

property

The specified property.

value

(nullable) The property value (or null), using the appropriate subclass of {@link com.sap.cloud.mobile.kotlin.odata.DataValue}.