TXCompositePolicy

public final class TXCompositePolicy : NSObject, TXMissingPolicy

Combines multiple policies to create a complex result.

The result of each policy if fed to the next as source.

  • Constructor.

    The order of the policies is important; the result of each policy is fed to the next one.

    Declaration

    Swift

    public init(_ policies: TXMissingPolicy...)

    Parameters

    policies

    The missing policies to be used.

  • Objective-C friendly constructor for passing MissingPolicy objects as an array.

    The order of the policies is important; the result of each policy is fed to the next one.

    Declaration

    Swift

    @objc
    public init(_ policies: [TXMissingPolicy])

    Parameters

    policies

    The missing policies to be used.

  • Returns a string after it has been fed to all of the provided policies sequentially.

    Declaration

    Swift

    public func get(sourceString: String) -> String

    Parameters

    sourceString

    The source string

    Return Value

    The final string