package org.aksw.limes.core.io.mapping;


import org.apache.log4j.Logger;


/**
 * @author Mohamed Sherif <sherif@informatik.uni-leipzig.de>
 * @version Nov 12, 2015
 */
public class MappingFactory {
	private static final Logger logger = Logger.getLogger(MappingFactory.class.getName());
	
	public enum MappingType{
		MEMORY_MAPPING,
		HYBIRD_MAPPING,
		FILE_MAPPING
	}
	

	/**
	 * @param type
	 * @return a specific module instance given its module's name
	 * @author sherif
	 */
	public static Mapping createMapping(MappingType type) {
		logger.info("Getting Mapping with name " + type);

		if(type == MappingType.MEMORY_MAPPING)
			return new MemoryMapping();
		if(type == MappingType.HYBIRD_MAPPING)
			return new HybridMapping();
		if(type == MappingType.FILE_MAPPING)
			return new FileMapping();
		logger.error("Sorry, " + type + " is not yet implemented. Exit with error ...");
		System.exit(1);
		return null;
	}



}

@@ -309,16 +309,56 @@
 ngType%7B%0A
+%09%09DEFAULT, // currently memory mapping %0A
 %09%09MEMORY
@@ -623,16 +623,80 @@
  type);%0A
+%09%09if(type == MappingType.DEFAULT)%0A%09%09%09return new MemoryMapping();
 %0A%09%09if(ty

add DEFAULT mapping type as MEMORY_MAPPING