/** * Get the one ejb package. */ public ApplicationPackage getApplicationPackage() { return ApplicationFactoryImpl.getPackage(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ApplicationPackage.APPLICATION: return createApplication(); case ApplicationPackage.MODULE: return createModule(); case ApplicationPackage.WEB_MODULE: return createWebModule(); case ApplicationPackage.JAVA_CLIENT_MODULE: return createJavaClientModule(); case ApplicationPackage.EJB_MODULE: return createEjbModule(); case ApplicationPackage.CONNECTOR_MODULE: return createConnectorModule(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
/** * @generated This field/method will be replaced during code generation. */ public ApplicationPackage getApplicationPackage() { return (ApplicationPackage)getEPackage(); }
/** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ApplicationFactory init() { try { ApplicationFactory theApplicationFactory = (ApplicationFactory)EPackage.Registry.INSTANCE.getEFactory("application.xmi"); if (theApplicationFactory != null) { return theApplicationFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new ApplicationFactoryImpl(); }
protected static EClass eClassApplication() { return ApplicationFactoryImpl.getPackage().getApplication(); } protected static EClass eClassApplicationClient() {
public static ApplicationFactory getActiveFactory() { return (ApplicationFactory) getPackage().getEFactoryInstance(); } /**
/** * @see Adapter#notifyChanged(new ENotificationImpl((InternalEObject)Notifier, * int,(EStructuralFeature) EObject, Object, Object, int)) * @deprecated */ public void notifyChanged(Notification notification) { switch (notification.getFeatureID(Application.class)) { case ApplicationPackage.APPLICATION__MODULES : break; default : super.notifyChanged(notification); } if (notification.getEventType() == Notification.REMOVING_ADAPTER && notification.getOldValue() == this) children.remove(notification.getNotifier()); else if (notification.getFeature() == ApplicationFactoryImpl.getPackage().getApplication_Modules()) modulesChanged((Application) notification.getNotifier(), notification.getEventType(), notification.getOldValue(), notification.getNewValue(), notification.getPosition()); }