diff options
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal')
13 files changed, 0 insertions, 4173 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java deleted file mode 100644 index eb25c40c6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java +++ /dev/null @@ -1,286 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.impl; - -import java.util.Map; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.application.Application; -import org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Deployment Descriptor</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getMixed <em>Mixed</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getApplication <em>Application</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ApplicationDeploymentDescriptorImpl extends EObjectImpl implements ApplicationDeploymentDescriptor { - /** - * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed = null; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap = null; - - /** - * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationDeploymentDescriptorImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED); - } - return mixed; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Application getApplication() { - return (Application)getMixed().get(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, true); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetApplication(Application newApplication, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, newApplication, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setApplication(Application newApplication) { - ((FeatureMap.Internal)getMixed()).set(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, newApplication); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return ((InternalEList)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return ((InternalEList)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return basicSetApplication(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - if (coreType) return ((EMap.InternalMapView)getXMLNSPrefixMap()).eMap(); - else return getXMLNSPrefixMap(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - if (coreType) return ((EMap.InternalMapView)getXSISchemaLocation()).eMap(); - else return getXSISchemaLocation(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return getApplication(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - setApplication((Application)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - getMixed().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - setApplication((Application)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - return mixed != null && !mixed.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return getApplication() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //ApplicationDeploymentDescriptorImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationFactoryImpl.java deleted file mode 100644 index 6a5690bdb..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationFactoryImpl.java +++ /dev/null @@ -1,136 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.impl; - -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; - -import org.eclipse.jst.javaee.application.*; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Factory</b>. - * <!-- end-user-doc --> - * @generated - */ -public class ApplicationFactoryImpl extends EFactoryImpl implements ApplicationFactory { - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static ApplicationFactory init() { - try { - ApplicationFactory theApplicationFactory = (ApplicationFactory)EPackage.Registry.INSTANCE.getEFactory("http://java.sun.com/xml/ns/javaee/application"); //$NON-NLS-1$ - if (theApplicationFactory != null) { - return theApplicationFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ApplicationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationFactoryImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ApplicationPackage.APPLICATION: return (EObject)createApplication(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR: return (EObject)createApplicationDeploymentDescriptor(); - case ApplicationPackage.MODULE: return (EObject)createModule(); - case ApplicationPackage.WEB: return (EObject)createWeb(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Application createApplication() { - ApplicationImpl application = new ApplicationImpl(); - return application; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationDeploymentDescriptor createApplicationDeploymentDescriptor() { - ApplicationDeploymentDescriptorImpl applicationDeploymentDescriptor = new ApplicationDeploymentDescriptorImpl(); - return applicationDeploymentDescriptor; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Module createModule() { - ModuleImpl module = new ModuleImpl(); - return module; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Web createWeb() { - WebImpl web = new WebImpl(); - return web; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationPackage getApplicationPackage() { - return (ApplicationPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - public static ApplicationPackage getPackage() { - return ApplicationPackage.eINSTANCE; - } - -} //ApplicationFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationImpl.java deleted file mode 100644 index b6734ce2e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationImpl.java +++ /dev/null @@ -1,544 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.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.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jst.javaee.application.Application; -import org.eclipse.jst.javaee.application.Module; -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; -import org.eclipse.jst.javaee.core.Description; -import org.eclipse.jst.javaee.core.DisplayName; -import org.eclipse.jst.javaee.core.Icon; -import org.eclipse.jst.javaee.core.SecurityRole; -import org.eclipse.jst.jee.application.ICommonApplication; -import org.eclipse.jst.jee.application.ICommonModule; -import org.eclipse.wst.common.internal.emf.utilities.StringUtil; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Application</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getDescriptions <em>Descriptions</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getDisplayNames <em>Display Names</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getIcons <em>Icons</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getModules <em>Modules</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getSecurityRoles <em>Security Roles</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getLibraryDirectory <em>Library Directory</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl#getVersion <em>Version</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ApplicationImpl extends EObjectImpl implements Application, ICommonApplication { - /** - * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescriptions() - * @generated - * @ordered - */ - protected EList descriptions = null; - - /** - * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDisplayNames() - * @generated - * @ordered - */ - protected EList displayNames = null; - - /** - * The cached value of the '{@link #getIcons() <em>Icons</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getIcons() - * @generated - * @ordered - */ - protected EList icons = null; - - /** - * The cached value of the '{@link #getModules() <em>Modules</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getModules() - * @generated - * @ordered - */ - protected EList modules = null; - - /** - * The cached value of the '{@link #getSecurityRoles() <em>Security Roles</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSecurityRoles() - * @generated - * @ordered - */ - protected EList securityRoles = null; - - /** - * The default value of the '{@link #getLibraryDirectory() <em>Library Directory</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLibraryDirectory() - * @generated - * @ordered - */ - protected static final String LIBRARY_DIRECTORY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLibraryDirectory() <em>Library Directory</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLibraryDirectory() - * @generated - * @ordered - */ - protected String libraryDirectory = LIBRARY_DIRECTORY_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * 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 = "5"; //$NON-NLS-1$ - - /** - * 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; - - /** - * This is true if the Version attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean versionESet = false; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.Literals.APPLICATION; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDescriptions() { - if (descriptions == null) { - descriptions = new EObjectContainmentEList(Description.class, this, ApplicationPackage.APPLICATION__DESCRIPTIONS); - } - return descriptions; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getDisplayNames() { - if (displayNames == null) { - displayNames = new EObjectContainmentEList(DisplayName.class, this, ApplicationPackage.APPLICATION__DISPLAY_NAMES); - } - return displayNames; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getIcons() { - if (icons == null) { - icons = new EObjectContainmentEList(Icon.class, this, ApplicationPackage.APPLICATION__ICONS); - } - return icons; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getModules() { - if (modules == null) { - modules = new EObjectContainmentEList(Module.class, this, ApplicationPackage.APPLICATION__MODULES); - } - return modules; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public List getSecurityRoles() { - if (securityRoles == null) { - securityRoles = new EObjectContainmentEList(SecurityRole.class, this, ApplicationPackage.APPLICATION__SECURITY_ROLES); - } - return securityRoles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLibraryDirectory() { - return libraryDirectory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLibraryDirectory(String newLibraryDirectory) { - String oldLibraryDirectory = libraryDirectory; - libraryDirectory = newLibraryDirectory; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION__LIBRARY_DIRECTORY, oldLibraryDirectory, libraryDirectory)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getVersion() { - return version; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - boolean oldVersionESet = versionESet; - versionESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION__VERSION, oldVersion, version, !oldVersionESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetVersion() { - String oldVersion = version; - boolean oldVersionESet = versionESet; - version = VERSION_EDEFAULT; - versionESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, ApplicationPackage.APPLICATION__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetVersion() { - return versionESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__ICONS: - return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__MODULES: - return ((InternalEList)getModules()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return getDescriptions(); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return getDisplayNames(); - case ApplicationPackage.APPLICATION__ICONS: - return getIcons(); - case ApplicationPackage.APPLICATION__MODULES: - return getModules(); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return getSecurityRoles(); - case ApplicationPackage.APPLICATION__LIBRARY_DIRECTORY: - return getLibraryDirectory(); - case ApplicationPackage.APPLICATION__ID: - return getId(); - case ApplicationPackage.APPLICATION__VERSION: - return getVersion(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - getDescriptions().clear(); - getDescriptions().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - getDisplayNames().clear(); - getDisplayNames().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__ICONS: - getIcons().clear(); - getIcons().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__MODULES: - getModules().clear(); - getModules().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - getSecurityRoles().clear(); - getSecurityRoles().addAll((Collection)newValue); - return; - case ApplicationPackage.APPLICATION__LIBRARY_DIRECTORY: - setLibraryDirectory((String)newValue); - return; - case ApplicationPackage.APPLICATION__ID: - setId((String)newValue); - return; - case ApplicationPackage.APPLICATION__VERSION: - setVersion((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - getDescriptions().clear(); - return; - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - getDisplayNames().clear(); - return; - case ApplicationPackage.APPLICATION__ICONS: - getIcons().clear(); - return; - case ApplicationPackage.APPLICATION__MODULES: - getModules().clear(); - return; - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - getSecurityRoles().clear(); - return; - case ApplicationPackage.APPLICATION__LIBRARY_DIRECTORY: - setLibraryDirectory(LIBRARY_DIRECTORY_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__ID: - setId(ID_EDEFAULT); - return; - case ApplicationPackage.APPLICATION__VERSION: - unsetVersion(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION__DESCRIPTIONS: - return descriptions != null && !descriptions.isEmpty(); - case ApplicationPackage.APPLICATION__DISPLAY_NAMES: - return displayNames != null && !displayNames.isEmpty(); - case ApplicationPackage.APPLICATION__ICONS: - return icons != null && !icons.isEmpty(); - case ApplicationPackage.APPLICATION__MODULES: - return modules != null && !modules.isEmpty(); - case ApplicationPackage.APPLICATION__SECURITY_ROLES: - return securityRoles != null && !securityRoles.isEmpty(); - case ApplicationPackage.APPLICATION__LIBRARY_DIRECTORY: - return LIBRARY_DIRECTORY_EDEFAULT == null ? libraryDirectory != null : !LIBRARY_DIRECTORY_EDEFAULT.equals(libraryDirectory); - case ApplicationPackage.APPLICATION__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case ApplicationPackage.APPLICATION__VERSION: - return isSetVersion(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (libraryDirectory: "); //$NON-NLS-1$ - result.append(libraryDirectory); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(", version: "); //$NON-NLS-1$ - if (versionESet) result.append(version); else result.append("<unset>"); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } - - /** - * 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; - } - - 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; - } - - public List getEARModules() { - return getModules(); - } - - public ICommonModule getFirstEARModule(String uri) { - return (ICommonModule) getFirstModule(uri); - } - -} //ApplicationImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationPackageImpl.java deleted file mode 100644 index 93108bb95..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationPackageImpl.java +++ /dev/null @@ -1,725 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.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.xml.namespace.XMLNamespacePackage; - -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; - -import org.eclipse.jst.javaee.application.Application; -import org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor; -import org.eclipse.jst.javaee.application.ApplicationFactory; -import org.eclipse.jst.javaee.application.Module; -import org.eclipse.jst.javaee.application.Web; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -import org.eclipse.jst.javaee.applicationclient.internal.impl.ApplicationclientPackageImpl; - -import org.eclipse.jst.javaee.applicationclient.internal.metadata.ApplicationclientPackage; - -import org.eclipse.jst.javaee.core.internal.impl.JavaeePackageImpl; - -import org.eclipse.jst.javaee.core.internal.metadata.JavaeePackage; - -import org.eclipse.jst.javaee.ejb.internal.impl.EjbPackageImpl; - -import org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage; - -import org.eclipse.jst.javaee.jsp.internal.impl.JspPackageImpl; - -import org.eclipse.jst.javaee.jsp.internal.metadata.JspPackage; - -import org.eclipse.jst.javaee.web.internal.impl.WebPackageImpl; - -import org.eclipse.jst.javaee.web.internal.metadata.WebPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model <b>Package</b>. - * <!-- end-user-doc --> - * @generated - */ -public class ApplicationPackageImpl extends EPackageImpl implements ApplicationPackage { - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass applicationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass applicationDeploymentDescriptorEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass moduleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass webEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage#eNS_URI - * @see #init() - * @generated - */ - private ApplicationPackageImpl() { - super(eNS_URI, ApplicationFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - 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 ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ApplicationPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - XMLNamespacePackage.eINSTANCE.eClass(); - XMLTypePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - WebPackageImpl theWebPackage = (WebPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) instanceof WebPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) : WebPackage.eINSTANCE); - JavaeePackageImpl theJavaeePackage = (JavaeePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) instanceof JavaeePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) : JavaeePackage.eINSTANCE); - EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE); - ApplicationclientPackageImpl theApplicationclientPackage = (ApplicationclientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) instanceof ApplicationclientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) : ApplicationclientPackage.eINSTANCE); - JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE); - - // Create package meta-data objects - theApplicationPackage.createPackageContents(); - theWebPackage.createPackageContents(); - theJavaeePackage.createPackageContents(); - theEjbPackage.createPackageContents(); - theApplicationclientPackage.createPackageContents(); - theJspPackage.createPackageContents(); - - // Initialize created meta-data - theApplicationPackage.initializePackageContents(); - theWebPackage.initializePackageContents(); - theJavaeePackage.initializePackageContents(); - theEjbPackage.initializePackageContents(); - theApplicationclientPackage.initializePackageContents(); - theJspPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theApplicationPackage.freeze(); - - return theApplicationPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getApplication() { - return applicationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplication_Descriptions() { - return (EReference)applicationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplication_DisplayNames() { - return (EReference)applicationEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplication_Icons() { - return (EReference)applicationEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplication_Modules() { - return (EReference)applicationEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplication_SecurityRoles() { - return (EReference)applicationEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplication_LibraryDirectory() { - return (EAttribute)applicationEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplication_Id() { - return (EAttribute)applicationEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplication_Version() { - return (EAttribute)applicationEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getApplicationDeploymentDescriptor() { - return applicationDeploymentDescriptorEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getApplicationDeploymentDescriptor_Mixed() { - return (EAttribute)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationDeploymentDescriptor_XMLNSPrefixMap() { - return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationDeploymentDescriptor_XSISchemaLocation() { - return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getApplicationDeploymentDescriptor_Application() { - return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getModule() { - return moduleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModule_Connector() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModule_Ejb() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModule_Java() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getModule_Web() { - return (EReference)moduleEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModule_AltDd() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModule_Id() { - return (EAttribute)moduleEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getWeb() { - return webEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWeb_WebUri() { - return (EAttribute)webEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWeb_ContextRoot() { - return (EAttribute)webEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getWeb_Id() { - return (EAttribute)webEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - 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); - createEReference(applicationEClass, APPLICATION__DESCRIPTIONS); - createEReference(applicationEClass, APPLICATION__DISPLAY_NAMES); - createEReference(applicationEClass, APPLICATION__ICONS); - createEReference(applicationEClass, APPLICATION__MODULES); - createEReference(applicationEClass, APPLICATION__SECURITY_ROLES); - createEAttribute(applicationEClass, APPLICATION__LIBRARY_DIRECTORY); - createEAttribute(applicationEClass, APPLICATION__ID); - createEAttribute(applicationEClass, APPLICATION__VERSION); - - applicationDeploymentDescriptorEClass = createEClass(APPLICATION_DEPLOYMENT_DESCRIPTOR); - createEAttribute(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED); - createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); - createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); - createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION); - - moduleEClass = createEClass(MODULE); - createEAttribute(moduleEClass, MODULE__CONNECTOR); - createEAttribute(moduleEClass, MODULE__EJB); - createEAttribute(moduleEClass, MODULE__JAVA); - createEReference(moduleEClass, MODULE__WEB); - createEAttribute(moduleEClass, MODULE__ALT_DD); - createEAttribute(moduleEClass, MODULE__ID); - - webEClass = createEClass(WEB); - createEAttribute(webEClass, WEB__WEB_URI); - createEAttribute(webEClass, WEB__CONTEXT_ROOT); - createEAttribute(webEClass, WEB__ID); - } - - /** - * <!-- 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 - JavaeePackage theJavaeePackage = (JavaeePackage)EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI); - XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); - - // Add supertypes to classes - - // Initialize classes and features; add operations and parameters - initEClass(applicationEClass, Application.class, "Application", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getApplication_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplication_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplication_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplication_Modules(), this.getModule(), null, "modules", null, 1, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplication_SecurityRoles(), theJavaeePackage.getSecurityRole(), null, "securityRoles", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getApplication_LibraryDirectory(), theJavaeePackage.getPathType(), "libraryDirectory", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getApplication_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getApplication_Version(), theJavaeePackage.getDeweyVersionType(), "version", "5", 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - - initEClass(applicationDeploymentDescriptorEClass, ApplicationDeploymentDescriptor.class, "ApplicationDeploymentDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getApplicationDeploymentDescriptor_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplicationDeploymentDescriptor_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplicationDeploymentDescriptor_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getApplicationDeploymentDescriptor_Application(), this.getApplication(), null, "application", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getModule_Connector(), theJavaeePackage.getPathType(), "connector", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getModule_Ejb(), theJavaeePackage.getPathType(), "ejb", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getModule_Java(), theJavaeePackage.getPathType(), "java", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getModule_Web(), this.getWeb(), null, "web", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getModule_AltDd(), theJavaeePackage.getPathType(), "altDd", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getModule_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(webEClass, Web.class, "Web", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWeb_WebUri(), theJavaeePackage.getPathType(), "webUri", null, 1, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWeb_ContextRoot(), theXMLTypePackage.getToken(), "contextRoot", null, 1, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getWeb_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void createExtendedMetaDataAnnotations() { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ - addAnnotation - (applicationEClass, - source, - new String[] { - "name", "applicationType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_Descriptions(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_DisplayNames(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_Icons(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "icon", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_Modules(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "module", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_SecurityRoles(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "security-role", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_LibraryDirectory(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "library-directory", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplication_Version(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "version" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (applicationDeploymentDescriptorEClass, - source, - new String[] { - "name", "", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplicationDeploymentDescriptor_Mixed(), - source, - new String[] { - "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ - "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplicationDeploymentDescriptor_XMLNSPrefixMap(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplicationDeploymentDescriptor_XSISchemaLocation(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getApplicationDeploymentDescriptor_Application(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "application", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (moduleEClass, - source, - new String[] { - "name", "moduleType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_Connector(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "connector", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_Ejb(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "ejb", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_Java(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "java", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_Web(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "web", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_AltDd(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "alt-dd", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getModule_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (webEClass, - source, - new String[] { - "name", "webType", //$NON-NLS-1$ //$NON-NLS-2$ - "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWeb_WebUri(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "web-uri", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWeb_ContextRoot(), - source, - new String[] { - "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "context-root", //$NON-NLS-1$ //$NON-NLS-2$ - "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getWeb_Id(), - source, - new String[] { - "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ - "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} //ApplicationPackageImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ModuleImpl.java deleted file mode 100644 index c5b254266..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ModuleImpl.java +++ /dev/null @@ -1,506 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.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.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.jst.javaee.application.Module; -import org.eclipse.jst.javaee.application.Web; -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; -import org.eclipse.jst.jee.application.ICommonModule; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Module</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getConnector <em>Connector</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getEjb <em>Ejb</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getJava <em>Java</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getWeb <em>Web</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getAltDd <em>Alt Dd</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ModuleImpl extends EObjectImpl implements Module, ICommonModule { - /** - * The default value of the '{@link #getConnector() <em>Connector</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnector() - * @generated - * @ordered - */ - protected static final String CONNECTOR_EDEFAULT = null; - - /** - * The cached value of the '{@link #getConnector() <em>Connector</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getConnector() - * @generated - * @ordered - */ - protected String connector = CONNECTOR_EDEFAULT; - - /** - * The default value of the '{@link #getEjb() <em>Ejb</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjb() - * @generated - * @ordered - */ - protected static final String EJB_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEjb() <em>Ejb</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEjb() - * @generated - * @ordered - */ - protected String ejb = EJB_EDEFAULT; - - /** - * The default value of the '{@link #getJava() <em>Java</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJava() - * @generated - * @ordered - */ - protected static final String JAVA_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJava() <em>Java</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getJava() - * @generated - * @ordered - */ - protected String java = JAVA_EDEFAULT; - - /** - * The cached value of the '{@link #getWeb() <em>Web</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWeb() - * @generated - * @ordered - */ - protected Web web = null; - - /** - * 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; - - /** - * The cached value of the '{@link #getAltDd() <em>Alt Dd</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAltDd() - * @generated - * @ordered - */ - protected String altDd = ALT_DD_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ModuleImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.Literals.MODULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getConnector() { - return connector; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setConnector(String newConnector) { - String oldConnector = connector; - connector = newConnector; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__CONNECTOR, oldConnector, connector)); - } - // Returns the uri of the given module type - public String getUri() { - if (eIsSet(ApplicationPackage.MODULE__EJB)) - return getEjb(); - else if (eIsSet(ApplicationPackage.MODULE__CONNECTOR)) - return getConnector(); - else if (eIsSet(ApplicationPackage.MODULE__JAVA)) - return getJava(); - else if (eIsSet(ApplicationPackage.MODULE__WEB)) - return getWeb().getWebUri(); - return null; - - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getEjb() { - return ejb; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setEjb(String newEjb) { - String oldEjb = ejb; - ejb = newEjb; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__EJB, oldEjb, ejb)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getJava() { - return java; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setJava(String newJava) { - String oldJava = java; - java = newJava; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__JAVA, oldJava, java)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Web getWeb() { - return web; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetWeb(Web newWeb, NotificationChain msgs) { - Web oldWeb = web; - web = newWeb; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__WEB, oldWeb, newWeb); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWeb(Web newWeb) { - if (newWeb != web) { - NotificationChain msgs = null; - if (web != null) - msgs = ((InternalEObject)web).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE__WEB, null, msgs); - if (newWeb != null) - msgs = ((InternalEObject)newWeb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE__WEB, null, msgs); - msgs = basicSetWeb(newWeb, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__WEB, newWeb, newWeb)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getAltDd() { - return altDd; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setAltDd(String newAltDd) { - String oldAltDd = altDd; - altDd = newAltDd; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__ALT_DD, oldAltDd, altDd)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplicationPackage.MODULE__WEB: - return basicSetWeb(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplicationPackage.MODULE__CONNECTOR: - return getConnector(); - case ApplicationPackage.MODULE__EJB: - return getEjb(); - case ApplicationPackage.MODULE__JAVA: - return getJava(); - case ApplicationPackage.MODULE__WEB: - return getWeb(); - case ApplicationPackage.MODULE__ALT_DD: - return getAltDd(); - case ApplicationPackage.MODULE__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplicationPackage.MODULE__CONNECTOR: - setConnector((String)newValue); - return; - case ApplicationPackage.MODULE__EJB: - setEjb((String)newValue); - return; - case ApplicationPackage.MODULE__JAVA: - setJava((String)newValue); - return; - case ApplicationPackage.MODULE__WEB: - setWeb((Web)newValue); - return; - case ApplicationPackage.MODULE__ALT_DD: - setAltDd((String)newValue); - return; - case ApplicationPackage.MODULE__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case ApplicationPackage.MODULE__CONNECTOR: - setConnector(CONNECTOR_EDEFAULT); - return; - case ApplicationPackage.MODULE__EJB: - setEjb(EJB_EDEFAULT); - return; - case ApplicationPackage.MODULE__JAVA: - setJava(JAVA_EDEFAULT); - return; - case ApplicationPackage.MODULE__WEB: - setWeb((Web)null); - return; - case ApplicationPackage.MODULE__ALT_DD: - setAltDd(ALT_DD_EDEFAULT); - return; - case ApplicationPackage.MODULE__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplicationPackage.MODULE__CONNECTOR: - return CONNECTOR_EDEFAULT == null ? connector != null : !CONNECTOR_EDEFAULT.equals(connector); - case ApplicationPackage.MODULE__EJB: - return EJB_EDEFAULT == null ? ejb != null : !EJB_EDEFAULT.equals(ejb); - case ApplicationPackage.MODULE__JAVA: - return JAVA_EDEFAULT == null ? java != null : !JAVA_EDEFAULT.equals(java); - case ApplicationPackage.MODULE__WEB: - return web != null; - case ApplicationPackage.MODULE__ALT_DD: - return ALT_DD_EDEFAULT == null ? altDd != null : !ALT_DD_EDEFAULT.equals(altDd); - case ApplicationPackage.MODULE__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (connector: "); //$NON-NLS-1$ - result.append(connector); - result.append(", ejb: "); //$NON-NLS-1$ - result.append(ejb); - result.append(", java: "); //$NON-NLS-1$ - result.append(java); - result.append(", altDd: "); //$NON-NLS-1$ - result.append(altDd); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - - public void setUri(String value) { - // TODO Auto-generated method stub - - } - public boolean isConnectorModule() { - if (eIsSet(ApplicationPackage.MODULE__CONNECTOR)) - return true; - return false; - } - /* Returns false by default - * - */ - public boolean isEjbModule() { - if (eIsSet(ApplicationPackage.MODULE__EJB) ) - return true; - return false; - } - /* - * Returns false by default - */ - public boolean isJavaModule() { - if (eIsSet(ApplicationPackage.MODULE__JAVA)) - return true; - return false; - } - /* - * Returns false by default - */ - public boolean isWebModule() { - if (eIsSet(ApplicationPackage.MODULE__WEB)) - return true; - return false; - } - -} //ModuleImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/WebImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/WebImpl.java deleted file mode 100644 index 7e911c7fc..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/WebImpl.java +++ /dev/null @@ -1,274 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.jst.javaee.application.Web; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Web</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.WebImpl#getWebUri <em>Web Uri</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.WebImpl#getContextRoot <em>Context Root</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.WebImpl#getId <em>Id</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class WebImpl extends EObjectImpl implements Web { - /** - * The default value of the '{@link #getWebUri() <em>Web Uri</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebUri() - * @generated - * @ordered - */ - protected static final String WEB_URI_EDEFAULT = null; - - /** - * The cached value of the '{@link #getWebUri() <em>Web Uri</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getWebUri() - * @generated - * @ordered - */ - protected String webUri = WEB_URI_EDEFAULT; - - /** - * 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; - - /** - * The cached value of the '{@link #getContextRoot() <em>Context Root</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getContextRoot() - * @generated - * @ordered - */ - protected String contextRoot = CONTEXT_ROOT_EDEFAULT; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WebImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.Literals.WEB; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getWebUri() { - return webUri; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setWebUri(String newWebUri) { - String oldWebUri = webUri; - webUri = newWebUri; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.WEB__WEB_URI, oldWebUri, webUri)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getContextRoot() { - return contextRoot; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setContextRoot(String newContextRoot) { - String oldContextRoot = contextRoot; - contextRoot = newContextRoot; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.WEB__CONTEXT_ROOT, oldContextRoot, contextRoot)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.WEB__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplicationPackage.WEB__WEB_URI: - return getWebUri(); - case ApplicationPackage.WEB__CONTEXT_ROOT: - return getContextRoot(); - case ApplicationPackage.WEB__ID: - return getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplicationPackage.WEB__WEB_URI: - setWebUri((String)newValue); - return; - case ApplicationPackage.WEB__CONTEXT_ROOT: - setContextRoot((String)newValue); - return; - case ApplicationPackage.WEB__ID: - setId((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case ApplicationPackage.WEB__WEB_URI: - setWebUri(WEB_URI_EDEFAULT); - return; - case ApplicationPackage.WEB__CONTEXT_ROOT: - setContextRoot(CONTEXT_ROOT_EDEFAULT); - return; - case ApplicationPackage.WEB__ID: - setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplicationPackage.WEB__WEB_URI: - return WEB_URI_EDEFAULT == null ? webUri != null : !WEB_URI_EDEFAULT.equals(webUri); - case ApplicationPackage.WEB__CONTEXT_ROOT: - return CONTEXT_ROOT_EDEFAULT == null ? contextRoot != null : !CONTEXT_ROOT_EDEFAULT.equals(contextRoot); - case ApplicationPackage.WEB__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (webUri: "); //$NON-NLS-1$ - result.append(webUri); - result.append(", contextRoot: "); //$NON-NLS-1$ - result.append(contextRoot); - result.append(", id: "); //$NON-NLS-1$ - result.append(id); - result.append(')'); - return result.toString(); - } - -} //WebImpl
\ No newline at end of file diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/metadata/ApplicationPackage.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/metadata/ApplicationPackage.java deleted file mode 100644 index b50c0b2e3..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/metadata/ApplicationPackage.java +++ /dev/null @@ -1,1098 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.metadata; - -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.jst.javaee.application.ApplicationFactory; - -/** - * <!-- begin-user-doc --> - * The <b>Package</b> for the model. - * It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * <!-- begin-model-doc --> - * - * @(#)application_5.xsds 1.17 08/05/05 - * - * - * - * Copyright 2003-2006 Sun Microsystems, Inc. - * 4150 Network Circle - * Santa Clara, California 95054 - * U.S.A - * All rights reserved. - * - * Sun Microsystems, Inc. has intellectual property rights - * relating to technology described in this document. In - * particular, and without limitation, these intellectual - * property rights may include one or more of the U.S. patents - * listed at http://www.sun.com/patents and one or more - * additional patents or pending patent applications in the - * U.S. and other countries. - * - * This document and the technology which it describes are - * distributed under licenses restricting their use, copying, - * distribution, and decompilation. No part of this document - * may be reproduced in any form by any means without prior - * written authorization of Sun and its licensors, if any. - * - * Third-party software, including font technology, is - * copyrighted and licensed from Sun suppliers. - * - * Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, - * JavaServer Pages, Enterprise JavaBeans and the Java Coffee - * Cup logo are trademarks or registered trademarks of Sun - * Microsystems, Inc. in the U.S. and other countries. - * - * Federal Acquisitions: Commercial Software - Government Users - * Subject to Standard License Terms and Conditions. - * - * - * - * - * - * This is the XML Schema for the application 5 deployment - * descriptor. The deployment descriptor must be named - * "META-INF/application.xml" in the application's ear file. - * All application deployment descriptors must indicate - * the application schema by using the Java EE namespace: - * - * http://java.sun.com/xml/ns/javaee - * - * and indicate the version of the schema by - * using the version element as shown below: - * - * <application xmlns="http://java.sun.com/xml/ns/javaee" - * xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - * xsi:schemaLocation="http://java.sun.com/xml/ns/javaee - * http://java.sun.com/xml/ns/javaee/application_5.xsd" - * version="5"> - * ... - * </application> - * - * The instance documents may indicate the published version of - * the schema using the xsi:schemaLocation attribute for Java EE - * namespace with the following location: - * - * http://java.sun.com/xml/ns/javaee/application_5.xsd - * - * - * - * - * - * The following conventions apply to all Java EE - * deployment descriptor elements unless indicated otherwise. - * - * - In elements that specify a pathname to a file within the - * same JAR file, relative filenames (i.e., those not - * starting with "/") are considered relative to the root of - * the JAR file's namespace. Absolute filenames (i.e., those - * starting with "/") also specify names in the root of the - * JAR file's namespace. In general, relative names are - * preferred. The exception is .war files where absolute - * names are preferred for consistency with the Servlet API. - * - * - * - * @(#)javaee_5.xsds 1.65 06/02/17 - * - * - * - * Copyright 2003-2006 Sun Microsystems, Inc. - * 4150 Network Circle - * Santa Clara, California 95054 - * U.S.A - * All rights reserved. - * - * Sun Microsystems, Inc. has intellectual property rights - * relating to technology described in this document. In - * particular, and without limitation, these intellectual - * property rights may include one or more of the U.S. patents - * listed at http://www.sun.com/patents and one or more - * additional patents or pending patent applications in the - * U.S. and other countries. - * - * This document and the technology which it describes are - * distributed under licenses restricting their use, copying, - * distribution, and decompilation. No part of this document - * may be reproduced in any form by any means without prior - * written authorization of Sun and its licensors, if any. - * - * Third-party software, including font technology, is - * copyrighted and licensed from Sun suppliers. - * - * Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, - * JavaServer Pages, Enterprise JavaBeans and the Java Coffee - * Cup logo are trademarks or registered trademarks of Sun - * Microsystems, Inc. in the U.S. and other countries. - * - * Federal Acquisitions: Commercial Software - Government Users - * Subject to Standard License Terms and Conditions. - * - * - * - * - * The following definitions that appear in the common - * shareable schema(s) of J2EE deployment descriptors should be - * interpreted with respect to the context they are included: - * - * Deployment Component may indicate one of the following: - * j2ee application; - * application client; - * web application; - * enterprise bean; - * resource adapter; - * - * Deployment File may indicate one of the following: - * ear file; - * war file; - * jar file; - * rar file; - * - * - * - * @(#)javaee_web_services_client_1_2.xsds 1.19 02/13/06 - * - * - * - * Copyright 2003-2006 Sun Microsystems, Inc. - * 4150 Network Circle - * Santa Clara, California 95054 - * U.S.A - * All rights reserved. - * - * Sun Microsystems, Inc. has intellectual property rights - * relating to technology described in this document. In - * particular, and without limitation, these intellectual - * property rights may include one or more of the U.S. patents - * listed at http://www.sun.com/patents and one or more - * additional patents or pending patent applications in the - * U.S. and other countries. - * - * This document and the technology which it describes are - * distributed under licenses restricting their use, copying, - * distribution, and decompilation. No part of this document - * may be reproduced in any form by any means without prior - * written authorization of Sun and its licensors, if any. - * - * Third-party software, including font technology, is - * copyrighted and licensed from Sun suppliers. - * - * Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, - * JavaServer Pages, Enterprise JavaBeans and the Java Coffee - * Cup logo are trademarks or registered trademarks of Sun - * Microsystems, Inc. in the U.S. and other countries. - * - * Federal Acquisitions: Commercial Software - Government Users - * Subject to Standard License Terms and Conditions. - * - * - * - * - * (C) Copyright International Business Machines Corporation 2002 - * - * - * - * See http://www.w3.org/XML/1998/namespace.html and - * http://www.w3.org/TR/REC-xml for information about this namespace. - * - * This schema document describes the XML namespace, in a form - * suitable for import by other schema documents. - * - * Note that local names in this namespace are intended to be defined - * only by the World Wide Web Consortium or its subgroups. The - * following names are currently defined in this namespace and should - * not be used with conflicting semantics by any Working Group, - * specification, or document instance: - * - * base (as an attribute name): denotes an attribute whose value - * provides a URI to be used as the base for interpreting any - * relative URIs in the scope of the element on which it - * appears; its value is inherited. This name is reserved - * by virtue of its definition in the XML Base specification. - * - * id (as an attribute name): denotes an attribute whose value - * should be interpreted as if declared to be of type ID. - * The xml:id specification is not yet a W3C Recommendation, - * but this attribute is included here to facilitate experimentation - * with the mechanisms it proposes. Note that it is _not_ included - * in the specialAttrs attribute group. - * - * lang (as an attribute name): denotes an attribute whose value - * is a language code for the natural language of the content of - * any element; its value is inherited. This name is reserved - * by virtue of its definition in the XML specification. - * - * space (as an attribute name): denotes an attribute whose - * value is a keyword indicating what whitespace processing - * discipline is intended for the content of the element; its - * value is inherited. This name is reserved by virtue of its - * definition in the XML specification. - * - * Father (in any context at all): denotes Jon Bosak, the chair of - * the original XML Working Group. This name is reserved by - * the following decision of the W3C XML Plenary and - * XML Coordination groups: - * - * In appreciation for his vision, leadership and dedication - * the W3C XML Plenary on this 10th day of February, 2000 - * reserves for Jon Bosak in perpetuity the XML name - * xml:Father - * - * This schema defines attributes and an attribute group - * suitable for use by - * schemas wishing to allow xml:base, xml:lang, xml:space or xml:id - * attributes on elements they define. - * - * To enable this, such a schema must import this schema - * for the XML namespace, e.g. as follows: - * <schema . . .> - * . . . - * <import namespace="http://www.w3.org/XML/1998/namespace" - * schemaLocation="http://www.w3.org/2001/xml.xsd"/> - * - * Subsequently, qualified reference to any of the attributes - * or the group defined below will have the desired effect, e.g. - * - * <type . . .> - * . . . - * <attributeGroup ref="xml:specialAttrs"/> - * - * will define a type which will schema-validate an instance - * element with any of those attributes - * In keeping with the XML Schema WG's standard versioning - * policy, this schema document will persist at - * http://www.w3.org/2005/08/xml.xsd. - * At the date of issue it can also be found at - * http://www.w3.org/2001/xml.xsd. - * The schema document at that URI may however change in the future, - * in order to remain compatible with the latest version of XML Schema - * itself, or with the XML namespace itself. In other words, if the XML - * Schema or XML namespaces change, the version of this document at - * http://www.w3.org/2001/xml.xsd will change - * accordingly; the version at - * http://www.w3.org/2005/08/xml.xsd will not change. - * - * <!-- end-model-doc --> - * @see org.eclipse.jst.javaee.application.ApplicationFactory - * @generated - */ -public interface ApplicationPackage extends EPackage { - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "application"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - */ - String eNS_URI = "http://java.sun.com/xml/ns/javaee/application_5.xsd"; //$NON-NLS-1$ - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "application"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - ApplicationPackage eINSTANCE = org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl <em>Application</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getApplication() - * @generated - */ - int APPLICATION = 0; - - /** - * The feature id for the '<em><b>Descriptions</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__DESCRIPTIONS = 0; - - /** - * The feature id for the '<em><b>Display Names</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__DISPLAY_NAMES = 1; - - /** - * The feature id for the '<em><b>Icons</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__ICONS = 2; - - /** - * The feature id for the '<em><b>Modules</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__MODULES = 3; - - /** - * The feature id for the '<em><b>Security Roles</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__SECURITY_ROLES = 4; - - /** - * The feature id for the '<em><b>Library Directory</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__LIBRARY_DIRECTORY = 5; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__ID = 6; - - /** - * The feature id for the '<em><b>Version</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION__VERSION = 7; - - /** - * The number of structural features of the '<em>Application</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_FEATURE_COUNT = 8; - - /** - * The meta object id for the '{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl <em>Deployment Descriptor</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getApplicationDeploymentDescriptor() - * @generated - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR = 1; - - /** - * The feature id for the '<em><b>Mixed</b></em>' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED = 0; - - /** - * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP = 1; - - /** - * The feature id for the '<em><b>XSI Schema Location</b></em>' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION = 2; - - /** - * The feature id for the '<em><b>Application</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION = 3; - - /** - * The number of structural features of the '<em>Deployment Descriptor</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int APPLICATION_DEPLOYMENT_DESCRIPTOR_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl <em>Module</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ModuleImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getModule() - * @generated - */ - int MODULE = 2; - - /** - * The feature id for the '<em><b>Connector</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__CONNECTOR = 0; - - /** - * The feature id for the '<em><b>Ejb</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__EJB = 1; - - /** - * The feature id for the '<em><b>Java</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__JAVA = 2; - - /** - * The feature id for the '<em><b>Web</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__WEB = 3; - - /** - * The feature id for the '<em><b>Alt Dd</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__ALT_DD = 4; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE__ID = 5; - - /** - * The number of structural features of the '<em>Module</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODULE_FEATURE_COUNT = 6; - - /** - * The meta object id for the '{@link org.eclipse.jst.javaee.application.internal.impl.WebImpl <em>Web</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.WebImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getWeb() - * @generated - */ - int WEB = 3; - - /** - * The feature id for the '<em><b>Web Uri</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB__WEB_URI = 0; - - /** - * The feature id for the '<em><b>Context Root</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB__CONTEXT_ROOT = 1; - - /** - * The feature id for the '<em><b>Id</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB__ID = 2; - - /** - * The number of structural features of the '<em>Web</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int WEB_FEATURE_COUNT = 3; - - - /** - * Returns the meta object for class '{@link org.eclipse.jst.javaee.application.Application <em>Application</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Application</em>'. - * @see org.eclipse.jst.javaee.application.Application - * @generated - */ - EClass getApplication(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.javaee.application.Application#getDescriptions <em>Descriptions</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Descriptions</em>'. - * @see org.eclipse.jst.javaee.application.Application#getDescriptions() - * @see #getApplication() - * @generated - */ - EReference getApplication_Descriptions(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.javaee.application.Application#getDisplayNames <em>Display Names</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Display Names</em>'. - * @see org.eclipse.jst.javaee.application.Application#getDisplayNames() - * @see #getApplication() - * @generated - */ - EReference getApplication_DisplayNames(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.javaee.application.Application#getIcons <em>Icons</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Icons</em>'. - * @see org.eclipse.jst.javaee.application.Application#getIcons() - * @see #getApplication() - * @generated - */ - EReference getApplication_Icons(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.javaee.application.Application#getModules <em>Modules</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Modules</em>'. - * @see org.eclipse.jst.javaee.application.Application#getModules() - * @see #getApplication() - * @generated - */ - EReference getApplication_Modules(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.jst.javaee.application.Application#getSecurityRoles <em>Security Roles</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Security Roles</em>'. - * @see org.eclipse.jst.javaee.application.Application#getSecurityRoles() - * @see #getApplication() - * @generated - */ - EReference getApplication_SecurityRoles(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Application#getLibraryDirectory <em>Library Directory</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Library Directory</em>'. - * @see org.eclipse.jst.javaee.application.Application#getLibraryDirectory() - * @see #getApplication() - * @generated - */ - EAttribute getApplication_LibraryDirectory(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Application#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.javaee.application.Application#getId() - * @see #getApplication() - * @generated - */ - EAttribute getApplication_Id(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Application#getVersion <em>Version</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Version</em>'. - * @see org.eclipse.jst.javaee.application.Application#getVersion() - * @see #getApplication() - * @generated - */ - EAttribute getApplication_Version(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor <em>Deployment Descriptor</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Deployment Descriptor</em>'. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor - * @generated - */ - EClass getApplicationDeploymentDescriptor(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getMixed <em>Mixed</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute list '<em>Mixed</em>'. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getMixed() - * @see #getApplicationDeploymentDescriptor() - * @generated - */ - EAttribute getApplicationDeploymentDescriptor_Mixed(); - - /** - * Returns the meta object for the map '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getXMLNSPrefixMap() - * @see #getApplicationDeploymentDescriptor() - * @generated - */ - EReference getApplicationDeploymentDescriptor_XMLNSPrefixMap(); - - /** - * Returns the meta object for the map '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getXSISchemaLocation <em>XSI Schema Location</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the map '<em>XSI Schema Location</em>'. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getXSISchemaLocation() - * @see #getApplicationDeploymentDescriptor() - * @generated - */ - EReference getApplicationDeploymentDescriptor_XSISchemaLocation(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getApplication <em>Application</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Application</em>'. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor#getApplication() - * @see #getApplicationDeploymentDescriptor() - * @generated - */ - EReference getApplicationDeploymentDescriptor_Application(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.javaee.application.Module <em>Module</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Module</em>'. - * @see org.eclipse.jst.javaee.application.Module - * @generated - */ - EClass getModule(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Module#getConnector <em>Connector</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Connector</em>'. - * @see org.eclipse.jst.javaee.application.Module#getConnector() - * @see #getModule() - * @generated - */ - EAttribute getModule_Connector(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Module#getEjb <em>Ejb</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Ejb</em>'. - * @see org.eclipse.jst.javaee.application.Module#getEjb() - * @see #getModule() - * @generated - */ - EAttribute getModule_Ejb(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Module#getJava <em>Java</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Java</em>'. - * @see org.eclipse.jst.javaee.application.Module#getJava() - * @see #getModule() - * @generated - */ - EAttribute getModule_Java(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.jst.javaee.application.Module#getWeb <em>Web</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Web</em>'. - * @see org.eclipse.jst.javaee.application.Module#getWeb() - * @see #getModule() - * @generated - */ - EReference getModule_Web(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Module#getAltDd <em>Alt Dd</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Alt Dd</em>'. - * @see org.eclipse.jst.javaee.application.Module#getAltDd() - * @see #getModule() - * @generated - */ - EAttribute getModule_AltDd(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Module#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.javaee.application.Module#getId() - * @see #getModule() - * @generated - */ - EAttribute getModule_Id(); - - /** - * Returns the meta object for class '{@link org.eclipse.jst.javaee.application.Web <em>Web</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Web</em>'. - * @see org.eclipse.jst.javaee.application.Web - * @generated - */ - EClass getWeb(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Web#getWebUri <em>Web Uri</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Web Uri</em>'. - * @see org.eclipse.jst.javaee.application.Web#getWebUri() - * @see #getWeb() - * @generated - */ - EAttribute getWeb_WebUri(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Web#getContextRoot <em>Context Root</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Context Root</em>'. - * @see org.eclipse.jst.javaee.application.Web#getContextRoot() - * @see #getWeb() - * @generated - */ - EAttribute getWeb_ContextRoot(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.jst.javaee.application.Web#getId <em>Id</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Id</em>'. - * @see org.eclipse.jst.javaee.application.Web#getId() - * @see #getWeb() - * @generated - */ - EAttribute getWeb_Id(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - ApplicationFactory getApplicationFactory(); - - /** - * <!-- begin-user-doc --> - * Defines literals for the meta objects that represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl <em>Application</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getApplication() - * @generated - */ - EClass APPLICATION = eINSTANCE.getApplication(); - - /** - * The meta object literal for the '<em><b>Descriptions</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION__DESCRIPTIONS = eINSTANCE.getApplication_Descriptions(); - - /** - * The meta object literal for the '<em><b>Display Names</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION__DISPLAY_NAMES = eINSTANCE.getApplication_DisplayNames(); - - /** - * The meta object literal for the '<em><b>Icons</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION__ICONS = eINSTANCE.getApplication_Icons(); - - /** - * The meta object literal for the '<em><b>Modules</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION__MODULES = eINSTANCE.getApplication_Modules(); - - /** - * The meta object literal for the '<em><b>Security Roles</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION__SECURITY_ROLES = eINSTANCE.getApplication_SecurityRoles(); - - /** - * The meta object literal for the '<em><b>Library Directory</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute APPLICATION__LIBRARY_DIRECTORY = eINSTANCE.getApplication_LibraryDirectory(); - - /** - * The meta object literal for the '<em><b>Id</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute APPLICATION__ID = eINSTANCE.getApplication_Id(); - - /** - * The meta object literal for the '<em><b>Version</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute APPLICATION__VERSION = eINSTANCE.getApplication_Version(); - - /** - * The meta object literal for the '{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl <em>Deployment Descriptor</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getApplicationDeploymentDescriptor() - * @generated - */ - EClass APPLICATION_DEPLOYMENT_DESCRIPTOR = eINSTANCE.getApplicationDeploymentDescriptor(); - - /** - * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED = eINSTANCE.getApplicationDeploymentDescriptor_Mixed(); - - /** - * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP = eINSTANCE.getApplicationDeploymentDescriptor_XMLNSPrefixMap(); - - /** - * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION = eINSTANCE.getApplicationDeploymentDescriptor_XSISchemaLocation(); - - /** - * The meta object literal for the '<em><b>Application</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION = eINSTANCE.getApplicationDeploymentDescriptor_Application(); - - /** - * The meta object literal for the '{@link org.eclipse.jst.javaee.application.internal.impl.ModuleImpl <em>Module</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.ModuleImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getModule() - * @generated - */ - EClass MODULE = eINSTANCE.getModule(); - - /** - * The meta object literal for the '<em><b>Connector</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODULE__CONNECTOR = eINSTANCE.getModule_Connector(); - - /** - * The meta object literal for the '<em><b>Ejb</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODULE__EJB = eINSTANCE.getModule_Ejb(); - - /** - * The meta object literal for the '<em><b>Java</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODULE__JAVA = eINSTANCE.getModule_Java(); - - /** - * The meta object literal for the '<em><b>Web</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MODULE__WEB = eINSTANCE.getModule_Web(); - - /** - * The meta object literal for the '<em><b>Alt Dd</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODULE__ALT_DD = eINSTANCE.getModule_AltDd(); - - /** - * The meta object literal for the '<em><b>Id</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODULE__ID = eINSTANCE.getModule_Id(); - - /** - * The meta object literal for the '{@link org.eclipse.jst.javaee.application.internal.impl.WebImpl <em>Web</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.impl.WebImpl - * @see org.eclipse.jst.javaee.application.internal.impl.ApplicationPackageImpl#getWeb() - * @generated - */ - EClass WEB = eINSTANCE.getWeb(); - - /** - * The meta object literal for the '<em><b>Web Uri</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute WEB__WEB_URI = eINSTANCE.getWeb_WebUri(); - - /** - * The meta object literal for the '<em><b>Context Root</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute WEB__CONTEXT_ROOT = eINSTANCE.getWeb_ContextRoot(); - - /** - * The meta object literal for the '<em><b>Id</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute WEB__ID = eINSTANCE.getWeb_Id(); - - } - -} //ApplicationPackage diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationAdapterFactory.java deleted file mode 100644 index f5b432ced..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationAdapterFactory.java +++ /dev/null @@ -1,177 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.jst.javaee.application.*; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage - * @generated - */ -public class ApplicationAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ApplicationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationAdapterFactory() { - if (modelPackage == null) { - modelPackage = ApplicationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch the delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationSwitch modelSwitch = - new ApplicationSwitch() { - public Object caseApplication(Application object) { - return createApplicationAdapter(); - } - public Object caseApplicationDeploymentDescriptor(ApplicationDeploymentDescriptor object) { - return createApplicationDeploymentDescriptorAdapter(); - } - public Object caseModule(Module object) { - return createModuleAdapter(); - } - public Object caseWeb(Web object) { - return createWebAdapter(); - } - public Object defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - public Adapter createAdapter(Notifier target) { - return (Adapter)modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.application.Application <em>Application</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.javaee.application.Application - * @generated - */ - public Adapter createApplicationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor <em>Deployment Descriptor</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor - * @generated - */ - public Adapter createApplicationDeploymentDescriptorAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.application.Module <em>Module</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.javaee.application.Module - * @generated - */ - public Adapter createModuleAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.application.Web <em>Web</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jst.javaee.application.Web - * @generated - */ - public Adapter createWebAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ApplicationAdapterFactory diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceFactoryImpl.java deleted file mode 100644 index a471abfa8..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceFactoryImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * <!-- begin-user-doc --> - * The <b>Resource Factory</b> associated with the package. - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.util.ApplicationResourceImpl - * @generated - */ -public class ApplicationResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - */ - public Resource createResource(URI uri) { - XMLResource result = new ApplicationResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); -// XMLOptions xmlOptions = new XMLOptionsImpl(); -// -// xmlOptions.setProcessSchemaLocations(true); -// -// result.getDefaultLoadOptions().put(XMLResource.OPTION_XML_OPTIONS, xmlOptions); - return result; - } - -} //ApplicationResourceFactoryImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceImpl.java deleted file mode 100644 index 6277f6c7c..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationResourceImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.xmi.XMLHelper; -import org.eclipse.emf.ecore.xmi.XMLLoad; -import org.eclipse.jst.javaee.application.Application; -import org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor; -import org.eclipse.jst.javaee.application.IApplicationResource; -import org.eclipse.jst.javaee.core.JEEXMLLoadImpl; -import org.eclipse.jst.javaee.core.internal.util.JavaeeResourceImpl; -import org.eclipse.wst.common.internal.emf.resource.IRootObjectResource; - -/** - * <!-- begin-user-doc --> - * The <b>Resource </b> associated with the package. - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.util.ApplicationResourceFactoryImpl - * @generated - */ -public class ApplicationResourceImpl extends JavaeeResourceImpl implements IRootObjectResource, IApplicationResource { - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param uri the URI of the new resource. - * @generated - */ - public ApplicationResourceImpl(URI uri) { - super(uri); - } - protected XMLLoad createXMLLoad() { - return new JEEXMLLoadImpl(createXMLHelper()); - } - - - protected XMLHelper createXMLHelper() { - - return new EarXMLHelperImpl(this); - } - /* (non-Javadoc) - * @see org.eclipse.jst.javaee.application.internal.util.IApplicationResource#getRootObject() - */ - public EObject getRootObject() { - if (contents == null || contents.isEmpty()) - return null; - Object root = getContents().get(0); - if(root == null){ - return null; - } - return (EObject)((ApplicationDeploymentDescriptor)root).getApplication(); - } - /* (non-Javadoc) - * @see org.eclipse.jst.javaee.application.internal.util.IApplicationResource#getApplication() - */ - public Application getApplication() { - return (Application)getRootObject(); - } - -} //ApplicationResourceImpl diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationSwitch.java deleted file mode 100644 index 915817204..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationSwitch.java +++ /dev/null @@ -1,199 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.util; - -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.jst.javaee.application.*; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage - * @generated - */ -public class ApplicationSwitch { - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static ApplicationPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationSwitch() { - if (modelPackage == null) { - modelPackage = ApplicationPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public Object doSwitch(EObject theEObject) { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(EClass theEClass, EObject theEObject) { - if (theEClass.eContainer() == modelPackage) { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected Object doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ApplicationPackage.APPLICATION: { - Application application = (Application)theEObject; - Object result = caseApplication(application); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR: { - ApplicationDeploymentDescriptor applicationDeploymentDescriptor = (ApplicationDeploymentDescriptor)theEObject; - Object result = caseApplicationDeploymentDescriptor(applicationDeploymentDescriptor); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.MODULE: { - Module module = (Module)theEObject; - Object result = caseModule(module); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ApplicationPackage.WEB: { - Web web = (Web)theEObject; - Object result = caseWeb(web); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Application</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Application</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseApplication(Application object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Deployment Descriptor</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Deployment Descriptor</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseApplicationDeploymentDescriptor(ApplicationDeploymentDescriptor object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Module</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Module</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseModule(Module object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>Web</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>Web</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public Object caseWeb(Web object) { - return null; - } - - /** - * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpretting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public Object defaultCase(EObject object) { - return null; - } - -} //ApplicationSwitch diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationXMLProcessor.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationXMLProcessor.java deleted file mode 100644 index 2f5486754..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/ApplicationXMLProcessor.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.javaee.application.internal.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ApplicationXMLProcessor extends XMLProcessor { - /** - * Public constructor to instantiate the helper. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - ApplicationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the ApplicationResourceFactoryImpl factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Map getRegistrations() { - if (registrations == null) { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new ApplicationResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new ApplicationResourceFactoryImpl()); - } - return registrations; - } - -} //ApplicationXMLProcessor diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/EarXMLHelperImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/EarXMLHelperImpl.java deleted file mode 100644 index ff3bef912..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/util/EarXMLHelperImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2007 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.javaee.application.internal.util; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; -import org.eclipse.jst.javaee.core.internal.util.JEEXMLHelperImpl; - -public class EarXMLHelperImpl extends JEEXMLHelperImpl { - - public EarXMLHelperImpl(XMLResource resource) { - super(resource); - // TODO Auto-generated constructor stub - } - - - public String getURI(String prefix) { - if (prefix != null && prefix.equals("")) - return ApplicationPackage.eNS_URI; - else - return super.getURI(prefix); - } - - protected String getQName(EPackage ePackage, String name, boolean mustHavePrefix) - { - String nsPrefix = getPrefix(ePackage, mustHavePrefix); - // Not using EE5 package namespace - default jee5 namespace is used - if (nsPrefix.equals(ApplicationPackage.eNS_PREFIX)) - { - return name; - } - else return super.getQName(ePackage, name, mustHavePrefix); - } - -} |