/** * Դ�������ƣ�DictItemPropertyHandlerFactory.java * �������Ȩ���������ӹɷ����޹�˾ ��Ȩ���� * ϵͳ���ƣ�JRES Studio * ģ�����ƣ�com.hundsun.ares.studio.jres.metadata.core * ����˵����$desc * ����ĵ��� * ���ߣ�sundl */ package com.hundsun.ares.studio.jres.metadata.core; import java.util.HashMap; import java.util.Map; import org.eclipse.emf.ecore.EClass; import com.hundsun.ares.studio.core.excel.handler.EMFPropertyHandler; import com.hundsun.ares.studio.core.excel.handler.ExtensiblePropertyHandlerFactory; import com.hundsun.ares.studio.core.excel.handler.IPropertyHandler; import com.hundsun.ares.studio.jres.model.metadata.MetadataPackage; /** * @author sundl * */ public class DictItemPropertyHandlerFactory extends ExtensiblePropertyHandlerFactory { public static final DictItemPropertyHandlerFactory INSTANCE = new DictItemPropertyHandlerFactory(); public static final Map<String, IPropertyHandler> DICT_ITME_HANDLERS = new HashMap<String, IPropertyHandler>(); static { DICT_ITME_HANDLERS.put("�ֵ���", new EMFPropertyHandler(MetadataPackage.Literals.DICTIONARY_ITEM__VALUE)); DICT_ITME_HANDLERS.put("�ֵ�������", new EMFPropertyHandler(MetadataPackage.Literals.DICTIONARY_ITEM__CHINESE_NAME)); } /* (non-Javadoc) * @see com.hundsun.ares.studio.core.excel.handler.ExtensiblePropertyHandlerFactory#getStaticHandlers() */ @Override protected Map<String, IPropertyHandler> getStaticHandlers() { return DICT_ITME_HANDLERS; } /* (non-Javadoc) * @see com.hundsun.ares.studio.core.excel.handler.ExtensiblePropertyHandlerFactory#geteEClass() */ @Override protected EClass geteEClass() { return MetadataPackage.Literals.DICTIONARY_ITEM; } }