DataPath

Used together with {@link com.sap.cloud.mobile.kotlin.odata.DataQuery} to represent a select, expand or sort item which is a single-part or multi-part path expression. For example, a path whose OData URL representation is "Address/City" might be used to access the "City" property in a complex-typed "Address" property. Also used to represent paths in OData CSDL.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val entityKey: EntityKey?
Link copied to clipboard
open val entitySet: EntitySet?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val itemIndex: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val parentPath: DataPath?
Link copied to clipboard
Link copied to clipboard
open val pathType: Int
Link copied to clipboard
open val rootPath: DataPath
Link copied to clipboard
Link copied to clipboard
open val segmentCount: Int

Functions

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

Sets the item index to address an element of an entity collection.

Link copied to clipboard
open fun changeRoot(newRoot: DataPath): DataPath

Return a copy of this data path with the {@link com.sap.cloud.mobile.kotlin.odata.DataPath#rootProperty DataPath.rootProperty} changed.

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
open fun dotString(): String

Return the OData CSDL path expression syntax for this path ('.'-separated segments).

Link copied to clipboard
open fun dynamicPath(child: String): DataPath

Construct a new multi-part path, with this path as the {@link com.sap.cloud.mobile.kotlin.odata.DataPath#parentPath DataPath.parentPath}.

Link copied to clipboard
open fun hasSegments(): Boolean

Return true if this path has segments.

Link copied to clipboard
open fun isNavigationProperty(property: Property?): Boolean

Return true if this path is simply for the specified target navigation property.

Link copied to clipboard
open fun isProperty(): Boolean
open fun isProperty(property: Property?): Boolean

Return true if this path is simply for the specified target property.

Link copied to clipboard
open fun isStructuralProperty(property: Property?): Boolean

Return true if this path is simply for the specified target structural property.

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

Return a new multi-part path, with this path as the {@link com.sap.cloud.mobile.kotlin.odata.DataPath#parentPath DataPath.parentPath}.

Link copied to clipboard
open fun resolveType(): DataType

Return the resolved data type of this path, or {@link com.sap.cloud.mobile.kotlin.odata.DataType#unknown DataType.unknown} if it cannot be determined statically.

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

Return the OData CSDL path expression syntax for this path ('/'-separated segments).

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 withKey(entityKey: EntityKey): DataPath

Sets the entity key to address an element of an entity collection.

Link copied to clipboard
open fun withParent(parent: DataPath): DataPath

Return a copy of this data path with the specified parent as the {@link com.sap.cloud.mobile.kotlin.odata.DataPath#parentPath DataPath.parentPath} of the prior {@link com.sap.cloud.mobile.kotlin.odata.DataPath#rootPath DataPath.rootPath}.