A revision of a CBLDocument.
This is the abstract base class of CBLSavedRevision (existing revisions) and CBLNewRevision (revisions yet to be saved).
◆ getRevisionHistory:()
Returns the ancestry of this revision as an array of CBLRevisions, in chronological order.
Older revisions are NOT guaranteed to have their properties available.
◆ propertyForKey:()
| - (nullable id) propertyForKey: |
|
(NSString *) |
key |
|
Shorthand for [self.properties objectForKey: key].
◆ objectForKeyedSubscript:()
| - (nullable id) objectForKeyedSubscript: |
|
(NSString *) |
key |
|
Same as -propertyForKey:.
Enables "[]" access in Xcode 4.4+
◆ CBLArrayOf() [1/2]
| - CBLArrayOf |
|
(NSString *) |
|
|
The names of all attachments (an array of strings).
◆ attachmentNamed:()
Looks up the attachment with the given name (without fetching its contents yet).
◆ CBLArrayOf() [2/2]
◆ NS_UNAVAILABLE()
| - (instancetype) NS_UNAVAILABLE |
|
|
|
◆ document
The document this is a revision of.
◆ database
The database this revision's document belongs to.
◆ isDeletion
Does this revision mark the deletion of its document? (In other words, does it have a "_deleted" property?)
◆ isGone
Does this revision mark the deletion or removal (from available channels) of its document ? (In other words, does it have a "_deleted_ or "_removed" property?)
◆ revisionID
◆ parentRevision
The revision this one is a child of.
◆ parentRevisionID
| - (NSString*) parentRevisionID |
|
readatomicassign |
The ID of the parentRevision.
◆ properties
| - (CBLJSONDict*) properties |
|
readatomicassign |
The revision's contents as parsed from JSON.
Keys beginning with "_" are defined and reserved by CouchbaseLite; others are app-specific. The first call to this method may need to fetch the properties from disk, but subsequent calls are very cheap.
◆ userProperties
| - (CBLJSONDict*) userProperties |
|
readatomiccopy |
The user-defined properties, without the ones reserved by CouchbaseLite.
This is based on -properties, with every key whose name starts with "_" removed.
The documentation for this class was generated from the following file: