annotate java-genomics-toolkit/src/edu/unc/genomics/PathFactory.java @ 0:1daf3026d231

Upload alpha version
author timpalpant
date Mon, 13 Feb 2012 21:55:55 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
1 /**
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
2 *
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
3 */
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
4 package edu.unc.genomics;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
5
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
6 import java.nio.file.Path;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
7
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
8 import com.beust.jcommander.IStringConverterFactory;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
9
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
10 /**
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
11 * @author timpalpant
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
12 *
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
13 */
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
14 public class PathFactory implements IStringConverterFactory {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
15 /* (non-Javadoc)
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
16 * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class)
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
17 */
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
18 @Override
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
19 public Class<PathConverter> getConverter(Class forType) {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
20 if (forType.equals(Path.class)) {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
21 return PathConverter.class;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
22 } else {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
23 return null;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
24 }
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
25 }
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
26
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
27 }