TabFileParameter implements IStringConverter<List<FileGraphDelimiter>>, IParameterValidator { @Override public List<FileGraphDelimiter> convert(String value) { String[] values = value.split(","); List<FileGraphDelimiter> fileList = new ArrayList<>(); for (String val : values) { FileGraphDelimiter file = build(val); fileList.add(file); } return fileList; }  @Override List<FileGraphDelimiter> convert(String value); FileGraphDelimiter build(String value); @Override void validate(String name, String value);  }
@Test public void testConvert() { System.out.println("convert"); String value = "test.rdf#test|TAB,test2.rdf"; TabFileParameter instance = new TabFileParameter(); List<FileGraphDelimiter> expResult = Arrays.asList(new FileGraphDelimiter(new File("test.rdf"), "test", "TAB"), new FileGraphDelimiter(new File("test2.rdf"), "", "COMMA")); List<FileGraphDelimiter> result = instance.convert(value); assertEquals(expResult, result); }