I'm currently working on extracting data from a file using a tJavaFlex. I use the substring method a lot. But now I need to use cases. In fact, I'm extracting a string from the file that can correspond to more than 100 categories. I can create a hundred cases in my tJavaFlex, but that makes the code harder to read. So is there a more efficient way to do this in Talend?