0
|
1 /**
|
|
2 *
|
|
3 */
|
|
4 package edu.unc.genomics;
|
|
5
|
|
6 import java.nio.file.Path;
|
|
7
|
|
8 import com.beust.jcommander.IStringConverterFactory;
|
|
9
|
|
10 /**
|
|
11 * @author timpalpant
|
|
12 *
|
|
13 */
|
|
14 public class PathFactory implements IStringConverterFactory {
|
|
15 /* (non-Javadoc)
|
|
16 * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class)
|
|
17 */
|
|
18 @Override
|
|
19 public Class<PathConverter> getConverter(Class forType) {
|
|
20 if (forType.equals(Path.class)) {
|
|
21 return PathConverter.class;
|
|
22 } else {
|
|
23 return null;
|
|
24 }
|
|
25 }
|
|
26
|
|
27 }
|