import {TransformerRegistry} from 'tilla/src/registry/transformer.registry.js'
TransformerRegistry
A registry that can be used to register all Transformers. This registry is tied directly into FieldMapperDelegates and can be used to perform subtransformations
Constructor Summary
Public Constructor | ||
public |
constructor(debuggerName: string) |
Method Summary
Public Methods | ||
public |
clear() Clear all Transformers from the registry |
|
public |
getTransformer(key: string): Transformer | undefined Retrieve the Transformer at the provided the key in the registry |
|
public |
Register the Transformer at the provided the key in the registry |
|
public |
transformer(key: *): * Alias for getTransformer() |
Public Constructors
Public Methods
public getTransformer(key: string): Transformer | undefined source
Retrieve the Transformer at the provided the key in the registry
Params:
Name | Type | Attribute | Description |
key | string | the key that references the Transformer in the registry |
Return:
Transformer | undefined | the transformer |
public register(key: string, transformer: Transformer) source
Register the Transformer at the provided the key in the registry
Params:
Name | Type | Attribute | Description |
key | string | the key to use to register the Transformer. |
|
transformer | Transformer | the Transformer instance. |
public transformer(key: *): * source
Alias for getTransformer()
Params:
Name | Type | Attribute | Description |
key | * |
Return:
* |