StructureMapExtractionContext

data class StructureMapExtractionContext(context: <ERROR CLASS>, transformSupportServices: <ERROR CLASS>?, structureMapProvider: suspend (String, <ERROR CLASS>) -> <ERROR CLASS>?)

Data used during StructureMap-based extraction.

Constructors

Link copied to clipboard
fun StructureMapExtractionContext(context: <ERROR CLASS>, transformSupportServices: <ERROR CLASS>? = null, structureMapProvider: suspend (String, <ERROR CLASS>) -> <ERROR CLASS>?)

Properties

Link copied to clipboard
val context: <ERROR CLASS>

The application context.

Link copied to clipboard
val structureMapProvider: suspend (String, <ERROR CLASS>) -> <ERROR CLASS>?

A lambda function which returns a StructureMap. Depending on your app this could be hard-coded or use the String parameter to fetch the appropriate structure map.

Link copied to clipboard
val transformSupportServices: <ERROR CLASS>? = null

Optionally pass a custom version of StructureMapUtilities.ITransformerServices to support specific use cases.