@@ -0,0 +1,1247 @@
+package org.aksw.limes.core.io.mapping;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.apache.log4j.Logger;%0A%0A%0Apublic class MappingFactory %7B%0A%09private static final Logger logger = Logger.getLogger(MappingFactory.class.getName());%0A%0A%09protected static final String MEMORY_MAPPING %09= %22memorymapping%22;%0A%09protected static final String HYBIRD_MAPPING %09= %22hybirdmapping%22;%0A%09protected static final String FILE_MAPPING %09%09= %22filrmapping%22;%0A%0A%0A%09/**%0A%09 * @param name%0A%09 * @return a specific module instance given its module's name%0A%09 * @author sherif%0A%09 */%0A%09public static Mapping createMapping(String name) %7B%0A%09%09logger.info(%22Getting Mapping with name %22 + name);%0A%0A%09%09if(name.equalsIgnoreCase(MEMORY_MAPPING))%0A%09%09%09return new MemoryMapping();%0A%09%09if(name.equalsIgnoreCase(HYBIRD_MAPPING ))%0A%09%09%09return new HybridMapping();%0A%09%09if(name.equalsIgnoreCase(FILE_MAPPING ))%0A%09%09%09return new FileMapping();%0A%09%09logger.error(%22Sorry, %22 + name + %22 is not yet implemented. Exit with error ...%22);%0A%09%09System.exit(1);%0A%09%09return null;%0A%09%7D%0A%0A%0A%09/**%0A%09 * @return list of names of all implemented operators%0A%09 * @author sherif%0A%09 */%0A%09public static List%3CString%3E getNames()%7B%0A%09%09return new ArrayList%3CString%3E(Arrays.asList(MEMORY_MAPPING, FILE_MAPPING, HYBIRD_MAPPING));%0A%09%7D%0A%7D%0A

add MappingFactory