CloneableDataType Protocol
Inner representation of data types which are supported by the Cloneable platform and wrapped with the type erased AnyCloneableData
Overview
Protocol Definition
swiftCopy codepublic protocol CloneableDataType {
var bindingValue: Any { get set }
func valueType() -> Any.Type
func getRawValue() -> Any
func getTypeAsString() -> String
func getStringDescription() -> String
func getJXValue(context: JXContext) -> JXValue?
func isEqual(to other: CloneableDataType) -> Bool
init(fileURL: URL, displayName: String) throws
init(json: String) throws // throws CloneableDataError.invalidValue
func getJSONValue() -> String
func saveToFile(fileURL: URL) throws
func getData() -> Data?
}Initialization
Methods
Default Implementations with Extensions
Extension for Default Implementations
Description of Default Implementations
Example Implementation for String
Last updated

