Hi Smooks users.
I am wondering is there an example to show how to implement a customize decoder so i can reference?
taking the Smooks document section Java Bean decoder "Mapping". it accepts a string as input and return another mapped String as output.
However, in my case, I need to accept String as input but return Integer. How can I achieve it?
<jb:decodParam name="Dublin">123</jb:decodeParam>
use the existed Mapping decoder it return 123 as string value "123".
<jb:value property="name" decoder="Mapping" data="history/@warehouse">
<jb:decodeParam name="1">Dublin</jb:decodeParam>
<jb:decodeParam name="2">Belfast</jb:decodeParam>
<jb:decodeParam name="3">Cork</jb:decodeParam>
</jb:value>