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

Uploaded
author timpalpant
date Mon, 13 Feb 2012 22:12:06 -0500
parents
children
line wrap: on
line source

/**
 * 
 */
package edu.unc.genomics;

import java.nio.file.Path;

import com.beust.jcommander.IStringConverterFactory;

/**
 * @author timpalpant
 *
 */
public class PathFactory implements IStringConverterFactory {
	/* (non-Javadoc)
	 * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class)
	 */
	@Override
	public Class<PathConverter> getConverter(Class forType) {
		if (forType.equals(Path.class)) {
			return PathConverter.class;
		} else {
			return null;
		}
	}

}