/** * <copyright> * </copyright> * * $Id$ */ package AIP.impl; import AIP.*; 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 AIPFactoryImpl extends EFactoryImpl implements AIPFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static AIPFactory init() { try { AIPFactory theAIPFactory = (AIPFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.acml.tuc.gr/aseme/metamodels/AIP"); if (theAIPFactory != null) { return theAIPFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new AIPFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AIPFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case AIPPackage.AI_PMODEL: return createAIPmodel(); case AIPPackage.PROTOCOL: return createProtocol(); case AIPPackage.PARTICIPANT: return createParticipant(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AIPmodel createAIPmodel() { AIPmodelImpl aiPmodel = new AIPmodelImpl(); return aiPmodel; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Protocol createProtocol() { ProtocolImpl protocol = new ProtocolImpl(); return protocol; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Participant createParticipant() { ParticipantImpl participant = new ParticipantImpl(); return participant; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AIPPackage getAIPPackage() { return (AIPPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static AIPPackage getPackage() { return AIPPackage.eINSTANCE; } } //AIPFactoryImpl