annotate src/edu/unc/genomics/PathFactory.java @ 2:e16016635b2a

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