String makeInList ( final String cell ) { if ( cell . startsWith ( "(" ) ) { return cell ; } String result = "" ; Iterator < String > iterator = Arrays . asList ( ListSplitter . split ( "\"" , true , cell ) ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { final String item = iterator . next ( ) ; if ( item . startsWith ( "\"" ) ) { result += item ; } else { result += "\"" + item + "\"" ; } if ( iterator . hasNext ( ) ) { result += ", " ; } } return "(" + result + ")" ; }
take a CSV list and turn it into DRL syntax