protected void initWithStringType ( ) { transformers . put ( String . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . UTF_STRING , value ) ; } } ) ; transformers . put ( String [ ] . class , new Transformer ( ) { @ Override public SFSDataWrapper transform ( Object value ) { return new SFSDataWrapper ( SFSDataType . UTF_STRING_ARRAY , stringArrayToCollection ( ( String [ ] ) value ) ) ; } } ) ; }
Add transformer of string and transformer of array of strings to the map