Property

open class Property : PropertyPath

Encapsulates the metadata of an OData structural or navigation property. Used for properties of complex and entity types.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val enumType: EnumType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: Int
Link copied to clipboard
open val isBinary: Boolean
Link copied to clipboard
Link copied to clipboard
open val isComplex: Boolean
Link copied to clipboard
Link copied to clipboard
open val isEntity: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isStream: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val itemType: DataType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var label: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var partnerPath: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var scale: Int
Link copied to clipboard
Link copied to clipboard
var srid: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val typeCode: Int

Functions

Link copied to clipboard
open fun atIndex(itemIndex: Int): DataPath

Return a new data path from this property to an item at the specified index.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataPath#atIndex(kotlin.Int) DataPath.atIndex}.

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

Return this property object without copying ({@link com.sap.cloud.mobile.kotlin.odata.DataValue#copyMutable() DataValue.copyMutable} does not need to copy metadata objects).

Link copied to clipboard
open fun dotString(): String

Return the name of this property, with dot-separated path segments if {@link com.sap.cloud.mobile.kotlin.odata.Property#hasKeyPath Property.hasKeyPath} is true.

Link copied to clipboard

Lookup an existing annotation by term name, or throw an exception if the annotation is not found.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.Property#annotations Property.annotations} and {@link com.sap.cloud.mobile.kotlin.odata.AnnotationMap#get(kotlin.String) AnnotationMap.get}, for looking up annotations that might not exist.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getBinary(source: StructureBase): ByteArray

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getBoolean(source: StructureBase): Boolean

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getByte(source: StructureBase): Byte

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getDouble(source: StructureBase): Double

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getEnum(source: StructureBase): EnumValue

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getFloat(source: StructureBase): Float

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getGuid(source: StructureBase): GuidValue

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getInt(source: StructureBase): Int

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getLong(source: StructureBase): Long

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getNullableByte(source: StructureBase): Byte?

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getNullableInt(source: StructureBase): Int?

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getNullableLong(source: StructureBase): Long?

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

For internal use only.

Link copied to clipboard

For internal use only.

Link copied to clipboard
open fun getShort(source: StructureBase): Short

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard

Get the stream link for this property from a structure.

Link copied to clipboard
open fun getString(source: StructureBase): String

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getUnsignedByte(source: StructureBase): Int

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set, {@link com.sap.cloud.mobile.kotlin.odata.core.CastException} if the value does not have the expected type for this property.

Link copied to clipboard
open fun getValue(source: StructureBase): DataValue?

Get the value of this property from a structure.

Throws:

{@link com.sap.cloud.mobile.kotlin.odata.core.UndefinedException} if the property value was not previously set.

Link copied to clipboard
open fun path(child: Property): DataPath

Return a new data path from this property to a child property.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataPath#path(com.sap.cloud.mobile.kotlin.odata.Property) DataPath.path}.

Link copied to clipboard
open fun setBasicList(target: StructureBase, value: DataValueList)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setBinary(target: StructureBase, value: ByteArray)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setBoolean(target: StructureBase, value: Boolean)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setByte(target: StructureBase, value: Byte)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setComplex(target: StructureBase, value: ComplexValue)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setDecimal(target: StructureBase, value: BigDecimal)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setDouble(target: StructureBase, value: Double)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setEntity(target: StructureBase, value: EntityValue)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setEntityList(target: StructureBase, value: EntityValueList)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setEnum(target: StructureBase, value: EnumValue)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setFloat(target: StructureBase, value: Float)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setGuid(target: StructureBase, value: GuidValue)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setInt(target: StructureBase, value: Int)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setInteger(target: StructureBase, value: BigInteger)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setLong(target: StructureBase, value: Long)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableBinary(target: StructureBase, value: ByteArray?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableBoolean(target: StructureBase, value: Boolean?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableByte(target: StructureBase, value: Byte?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableComplex(target: StructureBase, value: ComplexValue?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableDecimal(target: StructureBase, value: BigDecimal?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableDouble(target: StructureBase, value: Double?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableEntity(target: StructureBase, value: EntityValue?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableEnum(target: StructureBase, value: EnumValue?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableFloat(target: StructureBase, value: Float?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableGuid(target: StructureBase, value: GuidValue?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableInt(target: StructureBase, value: Int?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableInteger(target: StructureBase, value: BigInteger?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableLong(target: StructureBase, value: Long?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableShort(target: StructureBase, value: Short?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableString(target: StructureBase, value: String?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setNullableUnsignedByte(target: StructureBase, value: Int?)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setShort(target: StructureBase, value: Short)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setString(target: StructureBase, value: String)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setUnsignedByte(target: StructureBase, value: Int)

Set the value of this property in a structure.

Throws:

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

Link copied to clipboard
open fun setValue(target: StructureBase, value: DataValue?)

Set the value of this property in a structure.

Link copied to clipboard
open override fun toPath(): DataPath

Return this property or path, expressed as a DataPath.

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.Property#dataType Property.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).

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

Return the path, property, constant value or query function/operator call which is wrapped by this object.

Link copied to clipboard
open fun urlString(): String

Return the name of this property, percent-encoded for use in a URL.

Link copied to clipboard
open fun withKey(entityKey: EntityKey): DataPath

Return a new data path from this property to an item with the specified key.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataPath#withKey(com.sap.cloud.mobile.kotlin.odata.EntityKey) DataPath.withKey}.