MarshallingService

@DoNotImplement
interface MarshallingService

MarshallingService is an abstract interface for marshalling to and from formatted string data. Corda provides specialized implementations of the marshalling services for converting data in different string formats.

Example usage:

See also

Functions

Link copied to clipboard
abstract fun format(data: Any): String

Format the input data into the service's output format.

Link copied to clipboard
abstract fun <T> parse(input: String, clazz: Class<T>): T

Parse input strings to strongly typed objects.

Link copied to clipboard
abstract fun <T> parseList(input: String, clazz: Class<T>): List<T>

Deserializes the input into a list of instances of T.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
inline fun <T> MarshallingService.parse(input: String): T

Parse input strings to strongly typed objects.

Link copied to clipboard
inline fun <T> MarshallingService.parseList(input: String): List<T>

Deserializes the input into a list of instances of T.