RSDResourceTransformerObject
public final class RSDResourceTransformerObject : Codable
RSDResourceTransformerObject
is a concrete implementation of a codable resource transformer.
The transformer can be used to create an object decoded from an embedded resource.
-
Either a fully qualified URL string or else a relative reference to either an embedded resource or a relative URL defined globally by overriding the
RSDResourceConfig
class methods.Declaration
Swift
public let resourceName: String
-
The bundle identifier for the embedded resource.
Declaration
Swift
public let bundleIdentifier: String?
-
The classType for converting the resource to an object. This is a hint that subclasses of
RSDFactory
can use to determine the type of object to instantiate.Declaration
Swift
public let classType: String?
-
The default bundle from the factory used to decode this object.
Declaration
Swift
public var factoryBundle: Bundle?
-
The factory to use in decoding this object.
Declaration
Swift
public var factory: RSDFactory
-
Default initializer for creating the object.
Declaration
Swift
public init(resourceName: String, bundleIdentifier: String? = nil, classType: String? = nil)
Parameters
resourceName
The name of the resource.
bundleIdentifier
The bundle identifier for the embedded resource.
classType
The classType for converting the resource to an object.
-
Default initializer for creating the object.
Declaration
Swift
public init(resourceName: String, bundle: Bundle, classType: String? = nil)
Parameters
resourceName
The name of the resource.
bundleIdentifier
The bundle identifier for the embedded resource.
classType
The classType for converting the resource to an object.