CBLFragment

@protocol CBLFragment <CBLReadOnlyFragment>

CBLFragment protocol provides read and write access to the data value wrapped by a fragment object.

  • Gets the value from or sets the value to the fragment object. The object types are CBLArray, CBLBlob, CBLDictionary, NSNumber, NSString, NSNull, or nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSObject *value;
  • Get the value as a CBLArray, a mapping object of an array value. Returns nil if the value is nil, or the value is not an array.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) CBLArray *array;
  • Get a property’s value as a CBLDictionary, a mapping object of a dictionary value. Returns nil if the value is nil, or the value is not a dictionary.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) CBLDictionary *dictionary;