ObjectFilterCondition
public class ObjectFilterCondition : Codable
An object filter condition is defined by an object property name - object filter expression pair. The filter expression must evaluate to true when applied to the object property’s value for the condition to become true.
-
The filter property of this filter condition.
Declaration
Swift
internal(set) public var property: ObjectFilterProperty { get }
-
The filter expression of this filter condition.
Declaration
Swift
internal(set) public var expression: ObjectFilterExpression { get }
-
Creates an instance of ObjectFilterCondition.
Declaration
Swift
public init(property: ObjectFilterProperty, expression: ObjectFilterExpression)
Parameters
property
Defines the format of nested properties used in an ObjectFilterCondition.
expression
A filter expression consists of a filter operator and an operator-specific number of filter operands (at most two).
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Builds a new
ObjectFilterCondition
using the convenience closure syntax.Declaration
Swift
public static func build(_ closure: (ObjectFilterConditionBuilder) throws -> ()) throws -> ObjectFilterCondition
Parameters
closure
the builder closure, preferably used as trailing closure.
Return Value
ObjectFilterCondition configured using the builder.