setRequiredValue

fun setRequiredValue(property: Property, value: DataValue)

Set the required 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

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