Couchbase Lite
Objective-C API for iOS and Mac OS
Instance Methods | Properties | List of all members
CBLModelArray Class Reference

An array of CBLModel objects, that's actually backed by document IDs. More...

#import <CBLModelArray.h>

Inheritance diagram for CBLModelArray:

Instance Methods

(instancetype) - initWithOwner:property:itemClass:docIDs:
 Initializes a model array from an array of document ID strings. More...
 
(instancetype) - initWithOwner:property:itemClass:models:
 Initializes a model array from an array of CBLModels. More...
 

Properties

NSArray * docIDs
 

Detailed Description

An array of CBLModel objects, that's actually backed by document IDs.

It looks up the model dynamically as each item is accessed. This class is used by CBLModel for array-valued properties whose item type is a subclass of CBLModel.

Method Documentation

- (instancetype) initWithOwner: (CBLModel *)  owner
property: (NSString *)  property
itemClass: (Class)  itemClass
docIDs: (NSArray *)  docIDs 

Initializes a model array from an array of document ID strings.

Returns nil if docIDs contains items that are non-strings, or invalid document IDs.

- (instancetype) initWithOwner: (CBLModel *)  owner
property: (NSString *)  property
itemClass: (Class)  itemClass
models: (NSArray *)  models 

Initializes a model array from an array of CBLModels.

Property Documentation

- (NSArray*) docIDs
readatomicassign

The documentation for this class was generated from the following file: