![]() |
Couchbase Lite
Objective-C API for iOS and Mac OS
|
Context passed into a CBLValidationBlock.
Instance Methods | |
| (void) | - reject |
| Rejects the proposed new revision. More... | |
| (void) | - rejectWithMessage: |
| Rejects the proposed new revision. More... | |
| () | - CBLArrayOf |
| Returns an array of all the keys whose values are different between the current and new revisions. More... | |
| (BOOL) | - validateChanges: |
| Calls the 'enumerator' block for each key that's changed, passing both the old and new values. More... | |
Properties | |
| CBLSavedRevision * | currentRevision |
| The contents of the current revision of the document, or nil if this is a new document. More... | |
| NSURL * | source |
| The source of the change: either the URL of the remote database that's being pulled from, or a "user:" URL denoting the user authenticated through the listener's REST API, or nil. More... | |
| - (void CBLValidationContext) reject |
Rejects the proposed new revision.
| - (void CBLValidationContext) rejectWithMessage: | (NSString *) | message |
Rejects the proposed new revision.
Any resulting error will contain the provided message; for example, if the change came from an external HTTP request, the message will be in the response status line. The default message is "invalid document".
| - (CBLValidationContext) CBLArrayOf | (NSString *) |
Returns an array of all the keys whose values are different between the current and new revisions.
| - (BOOL CBLValidationContext) validateChanges: | (CBLChangeEnumeratorBlock) | enumerator |
Calls the 'enumerator' block for each key that's changed, passing both the old and new values.
If the block returns NO, the enumeration stops and rejects the revision, and the method returns NO; else the method returns YES.
|
readatomicassign |
The contents of the current revision of the document, or nil if this is a new document.
|
readnonatomicassign |
The source of the change: either the URL of the remote database that's being pulled from, or a "user:" URL denoting the user authenticated through the listener's REST API, or nil.