All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prerna.reactor.export.FormatFactory Maven / Gradle / Ivy

The newest version!
package prerna.reactor.export;

public class FormatFactory {

	public static IFormatter getFormatter(String formatType) {
		
		switch(formatType.toUpperCase()) {
		
		case TableFormatter.FORMAT_TYPE: {
			return new TableFormatter();
		}
		
		case "GRID": {
			return new TableFormatter();
		}
		
		case "GRAPH": {
			return new GraphFormatter();
		}
		
		case "JSON": {
			return new JsonFormatter();
		}
		
		case "KEYVALUE": {
			return new KeyValueFormatter();
		}
		
		case "CLUSTERGRAMMAR": {
			return new ClustergramFormatter();
		}
		
		case "CLUSTERGRAM" : {
			return new ClustergramFormatter();
		}
		
		case "HIERARCHY" : {
			return new HierarchyFormatter();
		}
		
		default : {
			return new TableFormatter();
		}
		
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy