/** * Դ�������ƣ�${file_name} * �������Ȩ���������ӹɷ����޹�˾ ��Ȩ���� * ϵͳ���ƣ�JRES Studio * ģ�����ƣ�${project_name} * ����˵����$$desc * ����ĵ��� * ���ߣ�${user} */ package com.hundsun.ares.studio.jres.service.impl; import com.hundsun.ares.studio.jres.service.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class ServiceFactoryImpl extends EFactoryImpl implements ServiceFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ServiceFactory init() { try { ServiceFactory theServiceFactory = (ServiceFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.hundsun.com/ares/studio/jres/service/1.0.0"); if (theServiceFactory != null) { return theServiceFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new ServiceFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ServiceFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ServicePackage.SERVICE: return createService(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Service createService() { ServiceImpl service = new ServiceImpl(); return service; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ServicePackage getServicePackage() { return (ServicePackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static ServicePackage getPackage() { return ServicePackage.eINSTANCE; } } //ServiceFactoryImpl