Diffusion Apple API
6.7.8
Unified Client Library for iOS, tvOS and OS X / macOS
|
Extension adding support to partial JSON update constraints for requiring primitive values at locations referenced with a JSON pointer.
Instance Methods | |
(nullable instancetype) | - withDoubleValue:atPointer:error: |
(nullable instancetype) | - withDoubleFloatNumberValue:atPointer:error: |
(nullable instancetype) | - withLongLongValue:atPointer:error: |
(nullable instancetype) | - withInt64NumberValue:atPointer:error: |
(nullable instancetype) | - withStringValue:atPointer:error: |
- (nullable instancetype) withDoubleFloatNumberValue: | (NSNumber *) | number | |
atPointer: | (NSString *) | pointer | |
error: | (NSError **) | error | |
Require a double-precision floating point (Eight-byte IEEE 754) number value at a specific position in the JSON object.
number | The value expected at the location referenced by pointer. |
pointer | A JSON Pointer syntax reference locating the value in the JSON object. |
error | Location to store a reason in case of failure. May be nil . |
NSInvalidArgumentException | If number or pointer is nil . |
null
at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)Extends class PTDiffusionPartialJSONUpdateConstraint.
- (nullable instancetype) withDoubleValue: | (double) | value | |
atPointer: | (NSString *) | pointer | |
error: | (NSError **) | error | |
Require a double-precision floating point (Eight-byte IEEE 754) value at a specific position in the JSON object.
value | The value expected at the location referenced by pointer. |
pointer | A JSON Pointer syntax reference locating the value in the JSON object. |
error | Location to store a reason in case of failure. May be nil . |
NSInvalidArgumentException | If pointer is nil . |
Extends class PTDiffusionPartialJSONUpdateConstraint.
- (nullable instancetype) withInt64NumberValue: | (NSNumber *) | number | |
atPointer: | (NSString *) | pointer | |
error: | (NSError **) | error | |
Require a 64-bit integer number value at a specific position in the JSON object.
number | The value expected at the location referenced by pointer. |
pointer | A JSON Pointer syntax reference locating the value in the JSON object. |
error | Location to store a reason in case of failure. May be nil . |
NSInvalidArgumentException | If number or pointer is nil . |
null
at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)Extends class PTDiffusionPartialJSONUpdateConstraint.
- (nullable instancetype) withLongLongValue: | (long long) | value | |
atPointer: | (NSString *) | pointer | |
error: | (NSError **) | error | |
Require a 64-bit integer value at a specific position in the JSON object.
value | The value expected at the location referenced by pointer. |
pointer | A JSON Pointer syntax reference locating the value in the JSON object. |
error | Location to store a reason in case of failure. May be nil . |
NSInvalidArgumentException | If pointer is nil . |
Extends class PTDiffusionPartialJSONUpdateConstraint.
- (nullable instancetype) withStringValue: | (NSString *) | string | |
atPointer: | (NSString *) | pointer | |
error: | (NSError **) | error | |
Require a string value at a specific position in the JSON object.
string | The value expected at the location referenced by pointer. |
pointer | A JSON Pointer syntax reference locating the value in the JSON object. |
error | Location to store a reason in case of failure. May be nil . |
NSInvalidArgumentException | If string or pointer is nil . |
null
at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)Extends class PTDiffusionPartialJSONUpdateConstraint.