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

Inheritors

Functions

Link copied to clipboard
@NotNull
abstract fun format(@NotNull data: Any): String
Format the input data into the service's output format.
Link copied to clipboard
abstract fun <T> parse(@NotNull input: String, @NotNull clazz: Class<T>): T
Parse input strings to strongly typed objects.
Link copied to clipboard
@NotNull
abstract fun <T> parseList(@NotNull input: String, @NotNull clazz: Class<T>): List<T>
Deserializes the input into a list of instances of T.
Link copied to clipboard
@NotNull
abstract fun <K, V> parseMap(@NotNull input: String, @NotNull keyClass: Class<K>, @NotNull valueClass: Class<V>): Map<K, V>
Deserializes the input into a map of instances of V keyed by K