DataRefModelExtension extension

on

Properties

collectionId String

Available on DataRefModel, provided by the DataRefModelExtension extension

Returns the collection ID, which is the last segment in the collection path.
no setter
collectionPath String?

Available on DataRefModel, provided by the DataRefModelExtension extension

The full collection path of the reference, always ending in "/".
no setter
hasValidCollection bool

Available on DataRefModel, provided by the DataRefModelExtension extension

Returns true collection is not null, does not contain only empty strings, and is not empty.
no setter
hasValidId bool

Available on DataRefModel, provided by the DataRefModelExtension extension

Returns true id is not null and is not empty.
no setter
isDocumentRef bool

Available on DataRefModel, provided by the DataRefModelExtension extension

no setter
isOnlyCollectionRef bool

Available on DataRefModel, provided by the DataRefModelExtension extension

no setter
parentPath String

Available on DataRefModel, provided by the DataRefModelExtension extension

Returns the parent path of the collection path. This is the collection path without the last segment.
no setter
parentSegments List<String>

Available on DataRefModel, provided by the DataRefModelExtension extension

Returns the parent segments of the collection path. This is the collection path without the last segment.
no setter
path String

Available on DataRefModel, provided by the DataRefModelExtension extension

The full path of the reference. If it ends with "/", it's a path to a collection, otherwise it's a path to a document.
no setter
pathSegments List<String>

Available on DataRefModel, provided by the DataRefModelExtension extension

The full path segments of the reference, in order, including the document ID if it's not null.
no setter
tableName String?

Available on DataRefModel, provided by the DataRefModelExtension extension

The table name, i.e. the last element in collection.
no setter

Operators

operator +(DataRefModel other) DataRefModel

Available on DataRefModel, provided by the DataRefModelExtension extension

Adds two DataRefModel objects. Collection paths must have an odd number of segments.