ComplexValue

Encapsulates an OData complex value.

Constructors

Link copied to clipboard
constructor()
constructor(withDefaults: Boolean)
constructor(withDefaults: Boolean, type: ComplexType?)
constructor(withDefaults: Boolean, type: ComplexType?, withIndexMap: SparseIndexMap?)

Construct a new complex value. This constructor is intended for use by custom complex value subclasses. Use {@link com.sap.cloud.mobile.kotlin.odata.ComplexValue#ofType(com.sap.cloud.mobile.kotlin.odata.ComplexType, com.sap.cloud.mobile.kotlin.odata.core.SparseIndexMap?) ComplexValue.ofType} for regular construction.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
Link copied to clipboard
open override val structureType: StructureType
Link copied to clipboard
open override val typeCode: Int

Functions

Link copied to clipboard

Return a copy of this complex value (only structural properties are copied).

Link copied to clipboard
open override fun copyMutable(): DataValue

Return a clone of this value if it (together with all value subcomponents) is possibly mutable, or return this value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

Link copied to clipboard

Copy structural/dynamic property values from source complex value into this complex value.

Link copied to clipboard
open override fun toString(): String

Convert this data value to a string. If the {@link com.sap.cloud.mobile.kotlin.odata.ComplexValue#dataType ComplexValue.dataType} is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).