Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationFactoryImpl.java121
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationImpl.java434
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationPackageImpl.java364
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceFactory.java75
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceImpl.java147
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ConnectorModuleImpl.java176
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/EjbModuleImpl.java177
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/JavaClientModuleImpl.java177
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ModuleImpl.java307
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/WebModuleImpl.java233
10 files changed, 0 insertions, 2211 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationFactoryImpl.java
deleted file mode 100644
index c5ebf003a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationFactoryImpl.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.ApplicationFactory;
-import org.eclipse.jst.j2ee.application.ConnectorModule;
-import org.eclipse.jst.j2ee.application.EjbModule;
-import org.eclipse.jst.j2ee.application.JavaClientModule;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.application.WebModule;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-/**
- * @generated
- */
-public class ApplicationFactoryImpl extends EFactoryImpl implements ApplicationFactory{
-
- public ApplicationFactoryImpl() {
- super();
- }
- /**
- * <!-- 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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
-public static ApplicationFactory getActiveFactory() {
- return (ApplicationFactory) getPackage().getEFactoryInstance();
-}
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Application createApplication() {
- ApplicationImpl application = new ApplicationImpl();
- return application;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Module createModule() {
- ModuleImpl module = new ModuleImpl();
- return module;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WebModule createWebModule() {
- WebModuleImpl webModule = new WebModuleImpl();
- return webModule;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public JavaClientModule createJavaClientModule() {
- JavaClientModuleImpl javaClientModule = new JavaClientModuleImpl();
- return javaClientModule;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EjbModule createEjbModule() {
- EjbModuleImpl ejbModule = new EjbModuleImpl();
- return ejbModule;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ConnectorModule createConnectorModule() {
- ConnectorModuleImpl connectorModule = new ConnectorModuleImpl();
- return connectorModule;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ApplicationPackage getApplicationPackage() {
- return (ApplicationPackage)getEPackage();
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static ApplicationPackage getPackage() {
- return ApplicationPackage.eINSTANCE;
- }
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationImpl.java
deleted file mode 100644
index 468c669fe..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationImpl.java
+++ /dev/null
@@ -1,434 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.jst.j2ee.internal.common.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.internal.common.util.CommonUtil;
-import org.eclipse.wst.common.internal.emf.utilities.StringUtil;
-
-
-/**
- * The application element is the root element of a J2EE application deployment descriptor.
-
- */
-public class ApplicationImpl extends CompatibilityDescriptionGroupImpl implements Application{
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList securityRoles = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList modules = null;
- public ApplicationImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getApplication();
- }
-
-/**
- * @see org.eclipse.jst.j2ee.internal.application.Application
- */
-public boolean containsSecurityRole(java.lang.String name) {
- return getSecurityRoleNamed(name) != null;
-}
-public Module getModule(String uri) {
- return getFirstModule(uri);
-}
-
-public Module getModule(String uri, String altDD) {
- List allModules = getModules();
- for (int i = 0; i < allModules.size(); i++) {
- Module aModule = (Module) allModules.get(i);
- if (StringUtil.stringsEqual(uri, aModule.getUri()) && StringUtil.stringsEqual(altDD, aModule.getAltDD()))
- return aModule;
- }
- return null;
-}
- /**
- * Gets the first module matching the specified uri
- * @param uri The uri of a module to find.
- * @return The first matching module or null if no module is found.
- */
- public Module getFirstModule(String uri){
- if (uri == null) return null;
- java.util.Iterator allModules = getModules().iterator();
- while (allModules.hasNext()){
- Module aModule = (Module)allModules.next();
- if(uri.equals(aModule.getUri())) return aModule;
- }
- return null;
- }
-/**
- * @see org.eclipse.jst.j2ee.internal.application.Application
- */
-public Module getModuleHavingAltDD(java.lang.String uri) {
- if (uri == null)
- return null;
- List aModules = getModules();
- for (int i = 0; i < aModules.size(); i++) {
- Module aModule = (Module) aModules.get(i);
- if (uri.equals(aModule.getAltDD()))
- return aModule;
- }
- return null;
-}
-public SecurityRole getSecurityRoleNamed(String roleName) {
- java.util.List tempRoles = getSecurityRoles();
- SecurityRole role;
- for (int i = 0; i < tempRoles.size(); i++) {
- role = (SecurityRole) tempRoles.get(i);
- if (role.getRoleName().equals(roleName))
- return role;
- }
- return null;
-}
-
-/**
- * Return boolean indicating if this Application was populated from an Applcation1.2 compliant descriptor
- * @return boolean
- * @deprecated Use getVersionID() to determine module level
- */
-public boolean isVersion1_2Descriptor() {
- CommonUtil.checkDDObjectForVersion(this);
- String systemId = ((XMLResource)eResource()).getSystemId();
- return systemId == null ? false : systemId.equals(J2EEConstants.APPLICATION_SYSTEMID_1_2);
-}
-/**
- * Return boolean indicating if this Application was populated from an Application1.3 compliant descriptor
- * @return boolean
- * @deprecated Use getVersionID() to determine module level
- */
-public boolean isVersion1_3Descriptor() {
- CommonUtil.checkDDObjectForVersion(this);
- String systemId = ((XMLResource)eResource()).getSystemId();
- return systemId == null ? false : systemId.equals(J2EEConstants.APPLICATION_SYSTEMID_1_3);
-}
- /**
- *
- */
- public void setDisplayName(String newDisplayName) {
- super.setDisplayName(newDisplayName);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getVersion() {
- return version;
- }
-
- /**
- This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
- public int getVersionID() throws IllegalStateException {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null) throw new IllegalStateException();
- return res.getModuleVersionID();
- }
- /**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
- public int getJ2EEVersionID() throws IllegalStateException {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null) throw new IllegalStateException();
- return res.getJ2EEVersionID();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION__VERSION, oldVersion, version));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Contains the definitions of security roles which are
- * global to the application.
- */
- public EList getSecurityRoles() {
- if (securityRoles == null) {
- securityRoles = new EObjectContainmentEList(SecurityRole.class, this, ApplicationPackage.APPLICATION__SECURITY_ROLES);
- }
- return securityRoles;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getModules() {
- if (modules == null) {
- modules = new EObjectContainmentWithInverseEList(Module.class, this, ApplicationPackage.APPLICATION__MODULES, ApplicationPackage.MODULE__APPLICATION);
- }
- return modules;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.APPLICATION__MODULES:
- return ((InternalEList)getModules()).basicAdd(otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.APPLICATION__ICONS:
- return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
- case ApplicationPackage.APPLICATION__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- case ApplicationPackage.APPLICATION__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- case ApplicationPackage.APPLICATION__SECURITY_ROLES:
- return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs);
- case ApplicationPackage.APPLICATION__MODULES:
- return ((InternalEList)getModules()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.APPLICATION__ICONS:
- return getIcons();
- case ApplicationPackage.APPLICATION__DISPLAY_NAMES:
- return getDisplayNames();
- case ApplicationPackage.APPLICATION__DESCRIPTIONS:
- return getDescriptions();
- case ApplicationPackage.APPLICATION__SMALL_ICON:
- return getSmallIcon();
- case ApplicationPackage.APPLICATION__LARGE_ICON:
- return getLargeIcon();
- case ApplicationPackage.APPLICATION__DESCRIPTION:
- return getDescription();
- case ApplicationPackage.APPLICATION__DISPLAY_NAME:
- return getDisplayName();
- case ApplicationPackage.APPLICATION__VERSION:
- return getVersion();
- case ApplicationPackage.APPLICATION__SECURITY_ROLES:
- return getSecurityRoles();
- case ApplicationPackage.APPLICATION__MODULES:
- return getModules();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.APPLICATION__ICONS:
- return icons != null && !icons.isEmpty();
- case ApplicationPackage.APPLICATION__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- case ApplicationPackage.APPLICATION__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- case ApplicationPackage.APPLICATION__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case ApplicationPackage.APPLICATION__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case ApplicationPackage.APPLICATION__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case ApplicationPackage.APPLICATION__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case ApplicationPackage.APPLICATION__VERSION:
- return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
- case ApplicationPackage.APPLICATION__SECURITY_ROLES:
- return securityRoles != null && !securityRoles.isEmpty();
- case ApplicationPackage.APPLICATION__MODULES:
- return modules != null && !modules.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.APPLICATION__ICONS:
- getIcons().clear();
- getIcons().addAll((Collection)newValue);
- return;
- case ApplicationPackage.APPLICATION__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- case ApplicationPackage.APPLICATION__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- case ApplicationPackage.APPLICATION__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case ApplicationPackage.APPLICATION__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case ApplicationPackage.APPLICATION__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case ApplicationPackage.APPLICATION__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- case ApplicationPackage.APPLICATION__VERSION:
- setVersion((String)newValue);
- return;
- case ApplicationPackage.APPLICATION__SECURITY_ROLES:
- getSecurityRoles().clear();
- getSecurityRoles().addAll((Collection)newValue);
- return;
- case ApplicationPackage.APPLICATION__MODULES:
- getModules().clear();
- getModules().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.APPLICATION__ICONS:
- getIcons().clear();
- return;
- case ApplicationPackage.APPLICATION__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- case ApplicationPackage.APPLICATION__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- case ApplicationPackage.APPLICATION__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case ApplicationPackage.APPLICATION__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case ApplicationPackage.APPLICATION__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case ApplicationPackage.APPLICATION__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case ApplicationPackage.APPLICATION__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case ApplicationPackage.APPLICATION__SECURITY_ROLES:
- getSecurityRoles().clear();
- return;
- case ApplicationPackage.APPLICATION__MODULES:
- getModules().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (version: "); //$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationPackageImpl.java
deleted file mode 100644
index 8e85f0968..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationPackageImpl.java
+++ /dev/null
@@ -1,364 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.emf.ecore.impl.EcorePackageImpl;
-import org.eclipse.jem.java.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.ApplicationFactory;
-import org.eclipse.jst.j2ee.application.ConnectorModule;
-import org.eclipse.jst.j2ee.application.EjbModule;
-import org.eclipse.jst.j2ee.application.JavaClientModule;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.application.WebModule;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.internal.client.ClientPackage;
-import org.eclipse.jst.j2ee.internal.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.internal.common.CommonPackage;
-import org.eclipse.jst.j2ee.internal.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.internal.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.internal.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.internal.jca.JcaPackage;
-import org.eclipse.jst.j2ee.internal.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.internal.jsp.JspPackage;
-import org.eclipse.jst.j2ee.internal.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.internal.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.internal.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.internal.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.internal.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.internal.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.internal.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.internal.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.internal.wsdd.impl.WsddPackageImpl;
-
-
-public class ApplicationPackageImpl extends EPackageImpl implements ApplicationPackage, EPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass applicationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass moduleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass webModuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass javaClientModuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass ejbModuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass connectorModuleEClass = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- private ApplicationPackageImpl() {
- super(eNS_URI, ApplicationFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static ApplicationPackage init() {
- if (isInited) return (ApplicationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI);
-
- // Obtain or create and register package.
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ApplicationPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theApplicationPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theApplicationPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- return theApplicationPackage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getApplication() {
- return applicationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getApplication_Version() {
- return (EAttribute)applicationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getApplication_SecurityRoles() {
- return (EReference)applicationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getApplication_Modules() {
- return (EReference)applicationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getModule() {
- return moduleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getModule_Uri() {
- return (EAttribute)moduleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getModule_AltDD() {
- return (EAttribute)moduleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getModule_Application() {
- return (EReference)moduleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWebModule() {
- return webModuleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getWebModule_ContextRoot() {
- return (EAttribute)webModuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getJavaClientModule() {
- return javaClientModuleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getEjbModule() {
- return ejbModuleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getConnectorModule() {
- return connectorModuleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ApplicationFactory getApplicationFactory() {
- return (ApplicationFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- applicationEClass = createEClass(APPLICATION);
- createEAttribute(applicationEClass, APPLICATION__VERSION);
- createEReference(applicationEClass, APPLICATION__SECURITY_ROLES);
- createEReference(applicationEClass, APPLICATION__MODULES);
-
- moduleEClass = createEClass(MODULE);
- createEAttribute(moduleEClass, MODULE__URI);
- createEAttribute(moduleEClass, MODULE__ALT_DD);
- createEReference(moduleEClass, MODULE__APPLICATION);
-
- webModuleEClass = createEClass(WEB_MODULE);
- createEAttribute(webModuleEClass, WEB_MODULE__CONTEXT_ROOT);
-
- javaClientModuleEClass = createEClass(JAVA_CLIENT_MODULE);
-
- ejbModuleEClass = createEClass(EJB_MODULE);
-
- connectorModuleEClass = createEClass(CONNECTOR_MODULE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
-
- // Add supertypes to classes
- applicationEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup());
- webModuleEClass.getESuperTypes().add(this.getModule());
- javaClientModuleEClass.getESuperTypes().add(this.getModule());
- ejbModuleEClass.getESuperTypes().add(this.getModule());
- connectorModuleEClass.getESuperTypes().add(this.getModule());
-
- // Initialize classes and features; add operations and parameters
- initEClass(applicationEClass, Application.class, "Application", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getApplication_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplication_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplication_Modules(), this.getModule(), this.getModule_Application(), "modules", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getModule_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getModule_AltDD(), ecorePackage.getEString(), "altDD", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getModule_Application(), this.getApplication(), this.getApplication_Modules(), "application", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(webModuleEClass, WebModule.class, "WebModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getWebModule_ContextRoot(), ecorePackage.getEString(), "contextRoot", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(javaClientModuleEClass, JavaClientModule.class, "JavaClientModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(ejbModuleEClass, EjbModule.class, "EjbModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(connectorModuleEClass, ConnectorModule.class, "ConnectorModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //ApplicationPackageImpl
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceFactory.java
deleted file mode 100644
index 5eccc7c25..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.common.impl.J2EEResourceFactoryRegistry;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory;
-
-
-public class ApplicationResourceFactory extends TranslatorResourceFactory {
-
- /**
- * Method registerDtds.
- */
- public static void registerDtds() {
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SYSTEMID_1_2, "application_1_2.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SYSTEMID_1_3, "application_1_3.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.APPLICATION_SCHEMA_LOC_1_4, "application_1_4.xsd"); //$NON-NLS-1$
- // moved to the web svcs J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_SERVICES_CLIENT_SCHEMA_LOC_1_1, "j2ee_web_services_client_1_1.xsd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.J2EE_1_4_XSD_SHORT_NAME, J2EEConstants.J2EE_1_4_XSD_SHORT_NAME);
- }
-
- /**
- * @param aRendererFactory
- */
- public ApplicationResourceFactory(RendererFactory aRendererFactory) {
- super(aRendererFactory);
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer)
- */
- protected TranslatorResource createResource(URI uri, Renderer aRenderer) {
- return new ApplicationResourceImpl(uri, aRenderer);
- }
- /**
- * Register myself with the Resource.Factory.Registry
- */
- public static void registerWith(RendererFactory aRendererFactory) {
- J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(aRendererFactory));
- }
-
- /**
- * register using the default renderer factory.
- * @see #registerWith(RendererFactory)
- */
- public static void register() {
- registerWith(RendererFactory.getDefaultRendererFactory());
- }
-
- public static void register(FileNameResourceFactoryRegistry aRegistry) {
- aRegistry.registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(RendererFactory.getDefaultRendererFactory()));
- }
-
-
- public static Resource.Factory getRegisteredFactory() {
- return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.APPLICATION_DD_URI_OBJ);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceImpl.java
deleted file mode 100644
index 550a718ec..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ApplicationResourceImpl.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.ApplicationResource;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl;
-import org.eclipse.jst.j2ee.internal.model.translator.application.ApplicationTranslator;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.Translator;
-
-
-public class ApplicationResourceImpl extends XMLResourceImpl implements ApplicationResource {
- /**
- * @param uri
- * @param aRenderer
- */
- public ApplicationResourceImpl(URI uri, Renderer aRenderer) {
- super(uri, aRenderer);
-
- }
-
- /**
- * @param aRenderer
- */
- public ApplicationResourceImpl(Renderer aRenderer) {
- super(aRenderer);
- }
- /**
- * Return the first element in the EList. */
- public Application getApplication() {
- return (Application) getRootObject();
- }
-
-
- public int getType() {
- return APPLICATION_TYPE;
- }
-
-
- public String getDoctype() {
- switch (getJ2EEVersionID()) {
- case (J2EE_1_2_ID) :
- case (J2EE_1_3_ID) :
- return J2EEConstants.APPLICATION_DOCTYPE;
- default :
- return null;
- }
-
- }
- /* App version is always the same as the J2EE version
- */
- public int getJ2EEVersionID() {
- return getModuleVersionID();
- }
- public Translator getRootTranslator() {
- return ApplicationTranslator.INSTANCE;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID()
- */
- public String getJ2EE_1_2_SystemID() {
- return J2EEConstants.APPLICATION_SYSTEMID_1_2;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID()
- */
- public String getJ2EE_1_3_SystemID() {
- return J2EEConstants.APPLICATION_SYSTEMID_1_3;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID()
- */
- public String getJ2EE_1_2_PublicID() {
- return J2EEConstants.APPLICATION_PUBLICID_1_2;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID()
- */
- public String getJ2EE_1_3_PublicID() {
- return J2EEConstants.APPLICATION_PUBLICID_1_3;
- }
- /*
- * This directly sets the module version id
- */
- public void setModuleVersionID(int id) {
- super.setVersionID(id);
- switch (id) {
- case (J2EE_1_4_ID) :
- super.setDoctypeValues(null, null);
- break;
- case (J2EE_1_3_ID) :
- super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- break;
- case (J2EE_1_2_ID) :
- super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID());
- }
- syncVersionOfRootObject();
- }
- /*
- * Based on the J2EE version, this will set the module version(Same as J2EE Version for Application)
- */
- public void setJ2EEVersionID(int id) {
- primSetVersionID(id);
- switch (id) {
- case (J2EE_1_4_ID) :
- primSetDoctypeValues(null, null);
- break;
- case (J2EE_1_3_ID) :
- primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- break;
- case (J2EE_1_2_ID) :
- primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID());
- }
- syncVersionOfRootObject();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject()
- */
- protected void syncVersionOfRootObject() {
- Application app = getApplication();
- if (app == null)
- return;
-
- String version = app.getVersion();
- String newVersion = getModuleVersionString();
- if (!newVersion.equals(version))
- app.setVersion(newVersion);
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ConnectorModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ConnectorModuleImpl.java
deleted file mode 100644
index 7779a37cf..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ConnectorModuleImpl.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.ConnectorModule;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-/**
- * Specifies the URI of a resource adapter archive file, relative to the top level of the application package.
- */
-public class ConnectorModuleImpl extends ModuleImpl implements ConnectorModule, Module{
-
- public ConnectorModuleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getConnectorModule();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, ApplicationPackage.CONNECTOR_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- return eBasicSetContainer(null, ApplicationPackage.CONNECTOR_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.CONNECTOR_MODULE__URI:
- return getUri();
- case ApplicationPackage.CONNECTOR_MODULE__ALT_DD:
- return getAltDD();
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- return getApplication();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.CONNECTOR_MODULE__URI:
- setUri((String)newValue);
- return;
- case ApplicationPackage.CONNECTOR_MODULE__ALT_DD:
- setAltDD((String)newValue);
- return;
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- setApplication((Application)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.CONNECTOR_MODULE__URI:
- setUri(URI_EDEFAULT);
- return;
- case ApplicationPackage.CONNECTOR_MODULE__ALT_DD:
- setAltDD(ALT_DD_EDEFAULT);
- return;
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- setApplication((Application)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.CONNECTOR_MODULE__URI:
- return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
- case ApplicationPackage.CONNECTOR_MODULE__ALT_DD:
- return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD);
- case ApplicationPackage.CONNECTOR_MODULE__APPLICATION:
- return getApplication() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
-public boolean isConnectorModule() {
- return true;
-}
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/EjbModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/EjbModuleImpl.java
deleted file mode 100644
index fd2a1856a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/EjbModuleImpl.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.EjbModule;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-/**
- * Specifies the URI of a ejb-jar, relative to the top level of the application package.
-
- */
-public class EjbModuleImpl extends ModuleImpl implements EjbModule, Module {
-
- public EjbModuleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getEjbModule();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, ApplicationPackage.EJB_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- return eBasicSetContainer(null, ApplicationPackage.EJB_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.EJB_MODULE__URI:
- return getUri();
- case ApplicationPackage.EJB_MODULE__ALT_DD:
- return getAltDD();
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- return getApplication();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.EJB_MODULE__URI:
- setUri((String)newValue);
- return;
- case ApplicationPackage.EJB_MODULE__ALT_DD:
- setAltDD((String)newValue);
- return;
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- setApplication((Application)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.EJB_MODULE__URI:
- setUri(URI_EDEFAULT);
- return;
- case ApplicationPackage.EJB_MODULE__ALT_DD:
- setAltDD(ALT_DD_EDEFAULT);
- return;
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- setApplication((Application)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.EJB_MODULE__URI:
- return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
- case ApplicationPackage.EJB_MODULE__ALT_DD:
- return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD);
- case ApplicationPackage.EJB_MODULE__APPLICATION:
- return getApplication() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
-public boolean isEjbModule() {
- return true;
-}
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/JavaClientModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/JavaClientModuleImpl.java
deleted file mode 100644
index 8ac4bf276..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/JavaClientModuleImpl.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.JavaClientModule;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-/**
- * specifies the URI of a java application client module, relative to the top level of the application package.
-
- */
-public class JavaClientModuleImpl extends ModuleImpl implements JavaClientModule, Module {
-
- public JavaClientModuleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getJavaClientModule();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- return eBasicSetContainer(null, ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__URI:
- return getUri();
- case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD:
- return getAltDD();
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- return getApplication();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__URI:
- setUri((String)newValue);
- return;
- case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD:
- setAltDD((String)newValue);
- return;
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- setApplication((Application)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__URI:
- setUri(URI_EDEFAULT);
- return;
- case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD:
- setAltDD(ALT_DD_EDEFAULT);
- return;
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- setApplication((Application)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.JAVA_CLIENT_MODULE__URI:
- return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
- case ApplicationPackage.JAVA_CLIENT_MODULE__ALT_DD:
- return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD);
- case ApplicationPackage.JAVA_CLIENT_MODULE__APPLICATION:
- return getApplication() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
-public boolean isJavaModule() {
- return true;
-}
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ModuleImpl.java
deleted file mode 100644
index 1784bc708..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/ModuleImpl.java
+++ /dev/null
@@ -1,307 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-
-/**
- * The module element represents a single J2EE module and contains an ejb, java, or web element, which indicates the module type and contains a path to the module file, and an optional alt-dd element, which specifies an optional URI to the post-assembly version of the deployment descriptor. The application deployment descriptor must have one module element for each J2EE module in the application package.
-
- */
-public class ModuleImpl extends EObjectImpl implements Module, EObject {
-
- /**
- * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUri()
- * @generated
- * @ordered
- */
- protected static final String URI_EDEFAULT = null;
-
- protected static final char FORWARD_SLASH = '/';
- protected static final char BACKWARD_SLASH = '\\';
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String uri = URI_EDEFAULT;
- /**
- * The default value of the '{@link #getAltDD() <em>Alt DD</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAltDD()
- * @generated
- * @ordered
- */
- protected static final String ALT_DD_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String altDD = ALT_DD_EDEFAULT;
- public ModuleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getModule();
- }
-
-public boolean isConnectorModule() {
- return false;
-}
-/* Returns false by default
- *
- */
-public boolean isEjbModule() {
- return false;
-}
-/*
- * Returns false by default
- */
-public boolean isJavaModule() {
- return false;
-}
-/*
- * Returns false by default
- */
-public boolean isWebModule() {
- return false;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the URI of a module, relative to the top level of the application package.
-
- */
- public String getUri() {
- return uri;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setUri(String newUri) {
- String oldUri = uri;
- uri = newUri;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__URI, oldUri, uri));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The alt-dd element specifies an optional URI to the post-assembly version of the deployment descriptor file for a particular J2EE module. The URI must specify the full pathname of the deployment descriptor file relative to the application's root directory. If alt-dd is not specified, the deployer must read the deployment descriptor from the default location and file name required by the respective component specification.
-
- */
- public String getAltDD() {
- return altDD;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setAltDD(String newAltDD) {
- String oldAltDD = altDD;
- altDD = newAltDD;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__ALT_DD, oldAltDD, altDD));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public Application getApplication() {
- if (eContainerFeatureID != ApplicationPackage.MODULE__APPLICATION) return null;
- return (Application)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setApplication(Application newApplication) {
- if (newApplication != eContainer || (eContainerFeatureID != ApplicationPackage.MODULE__APPLICATION && newApplication != null)) {
- if (EcoreUtil.isAncestor(this, newApplication))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newApplication != null)
- msgs = ((InternalEObject)newApplication).eInverseAdd(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newApplication, ApplicationPackage.MODULE__APPLICATION, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__APPLICATION, newApplication, newApplication));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.MODULE__APPLICATION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, ApplicationPackage.MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.MODULE__APPLICATION:
- return eBasicSetContainer(null, ApplicationPackage.MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case ApplicationPackage.MODULE__APPLICATION:
- return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.MODULE__URI:
- return getUri();
- case ApplicationPackage.MODULE__ALT_DD:
- return getAltDD();
- case ApplicationPackage.MODULE__APPLICATION:
- return getApplication();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.MODULE__URI:
- return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
- case ApplicationPackage.MODULE__ALT_DD:
- return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD);
- case ApplicationPackage.MODULE__APPLICATION:
- return getApplication() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.MODULE__URI:
- setUri((String)newValue);
- return;
- case ApplicationPackage.MODULE__ALT_DD:
- setAltDD((String)newValue);
- return;
- case ApplicationPackage.MODULE__APPLICATION:
- setApplication((Application)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.MODULE__URI:
- setUri(URI_EDEFAULT);
- return;
- case ApplicationPackage.MODULE__ALT_DD:
- setAltDD(ALT_DD_EDEFAULT);
- return;
- case ApplicationPackage.MODULE__APPLICATION:
- setApplication((Application)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (uri: "); //$NON-NLS-1$
- result.append(uri);
- result.append(", altDD: "); //$NON-NLS-1$
- result.append(altDD);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/WebModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/WebModuleImpl.java
deleted file mode 100644
index 7496a270f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/application/impl/WebModuleImpl.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.internal.application.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.Module;
-import org.eclipse.jst.j2ee.application.WebModule;
-import org.eclipse.jst.j2ee.internal.application.ApplicationPackage;
-
-
-/**
- * Contains the web-uri and context-root of a web application module.
-
- */
-public class WebModuleImpl extends ModuleImpl implements WebModule, Module {
-
- /**
- * The default value of the '{@link #getContextRoot() <em>Context Root</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getContextRoot()
- * @generated
- * @ordered
- */
- protected static final String CONTEXT_ROOT_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String contextRoot = CONTEXT_ROOT_EDEFAULT;
- public WebModuleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return ApplicationPackage.eINSTANCE.getWebModule();
- }
-
-public boolean isWebModule() {
- return true;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The context-root element specifies the context root of a web application
-
- */
- public String getContextRoot() {
- return contextRoot;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setContextRoot(String newContextRoot) {
- String oldContextRoot = contextRoot;
- contextRoot = newContextRoot;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.WEB_MODULE__CONTEXT_ROOT, oldContextRoot, contextRoot));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, ApplicationPackage.WEB_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- return eBasicSetContainer(null, ApplicationPackage.WEB_MODULE__APPLICATION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- return eContainer.eInverseRemove(this, ApplicationPackage.APPLICATION__MODULES, Application.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.WEB_MODULE__URI:
- return getUri();
- case ApplicationPackage.WEB_MODULE__ALT_DD:
- return getAltDD();
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- return getApplication();
- case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT:
- return getContextRoot();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.WEB_MODULE__URI:
- return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
- case ApplicationPackage.WEB_MODULE__ALT_DD:
- return ALT_DD_EDEFAULT == null ? altDD != null : !ALT_DD_EDEFAULT.equals(altDD);
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- return getApplication() != null;
- case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT:
- return CONTEXT_ROOT_EDEFAULT == null ? contextRoot != null : !CONTEXT_ROOT_EDEFAULT.equals(contextRoot);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.WEB_MODULE__URI:
- setUri((String)newValue);
- return;
- case ApplicationPackage.WEB_MODULE__ALT_DD:
- setAltDD((String)newValue);
- return;
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- setApplication((Application)newValue);
- return;
- case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT:
- setContextRoot((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case ApplicationPackage.WEB_MODULE__URI:
- setUri(URI_EDEFAULT);
- return;
- case ApplicationPackage.WEB_MODULE__ALT_DD:
- setAltDD(ALT_DD_EDEFAULT);
- return;
- case ApplicationPackage.WEB_MODULE__APPLICATION:
- setApplication((Application)null);
- return;
- case ApplicationPackage.WEB_MODULE__CONTEXT_ROOT:
- setContextRoot(CONTEXT_ROOT_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (contextRoot: "); //$NON-NLS-1$
- result.append(contextRoot);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-

Back to the top