Diffusion Apple API  6.3.3
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Functions Variables Properties Pages
Instance Methods | List of all members
PTDiffusionPartialJSONUpdateConstraint(PTDiffusionPrimitive) Category Reference

Introduction

Extension adding support to partial JSON update constraints for requiring primitive values at locations referenced with a JSON pointer.

Since
6.3

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:
 

Method Documentation

- (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.

Parameters
numberThe value expected at the location referenced by pointer.
pointerA JSON Pointer syntax reference locating the value in the JSON object.
errorLocation to store a reason in case of failure. May be nil.
Exceptions
NSInvalidArgumentExceptionIf number or pointer is nil.
Note
To match a JSON null at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)
Since
6.3

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.

Parameters
valueThe value expected at the location referenced by pointer.
pointerA JSON Pointer syntax reference locating the value in the JSON object.
errorLocation to store a reason in case of failure. May be nil.
Exceptions
NSInvalidArgumentExceptionIf pointer is nil.
Since
6.3

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.

Parameters
numberThe value expected at the location referenced by pointer.
pointerA JSON Pointer syntax reference locating the value in the JSON object.
errorLocation to store a reason in case of failure. May be nil.
Exceptions
NSInvalidArgumentExceptionIf number or pointer is nil.
Note
To match a JSON null at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)
Since
6.3

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.

Parameters
valueThe value expected at the location referenced by pointer.
pointerA JSON Pointer syntax reference locating the value in the JSON object.
errorLocation to store a reason in case of failure. May be nil.
Exceptions
NSInvalidArgumentExceptionIf pointer is nil.
Since
6.3

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.

Parameters
stringThe value expected at the location referenced by pointer.
pointerA JSON Pointer syntax reference locating the value in the JSON object.
errorLocation to store a reason in case of failure. May be nil.
Exceptions
NSInvalidArgumentExceptionIf string or pointer is nil.
Note
To match a JSON null at the referenced location use withNullAt:error: (PTDiffusionPartialJSONUpdateConstraint)
Since
6.3

Extends class PTDiffusionPartialJSONUpdateConstraint.