diff src/edu/unc/genomics/AssemblyFactory.java @ 2:e16016635b2a

Uploaded
author timpalpant
date Mon, 13 Feb 2012 22:12:06 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/edu/unc/genomics/AssemblyFactory.java	Mon Feb 13 22:12:06 2012 -0500
@@ -0,0 +1,26 @@
+/**
+ * 
+ */
+package edu.unc.genomics;
+
+import com.beust.jcommander.IStringConverterFactory;
+
+/**
+ * @author timpalpant
+ *
+ */
+public class AssemblyFactory implements IStringConverterFactory {
+
+	/* (non-Javadoc)
+	 * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class)
+	 */
+	@Override
+	public Class<AssemblyConverter> getConverter(Class forType) {
+		if (forType.equals(Assembly.class)) {
+			return AssemblyConverter.class;
+		} else {
+			return null;
+		}
+	}
+
+}