Skip to main content

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

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java318
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java332
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java233
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java258
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java383
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java341
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java291
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java237
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java153
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java154
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java445
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java290
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java147
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java449
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java699
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java349
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java150
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java281
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java296
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java243
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java376
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java1399
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java91
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java201
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java496
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java418
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java1840
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java245
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java234
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java692
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java811
35 files changed, 0 insertions, 13543 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java
deleted file mode 100644
index 8b9eb73c0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/AuthConstraintImpl.java
+++ /dev/null
@@ -1,318 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * The auth-constraint element indicates the user roles that should be permitted access to this resource collection. The role used here must appear in a security-role-ref element.
- */
-public class AuthConstraintImpl extends EObjectImpl implements AuthConstraint, EObject {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList roles = null;
- /**
- * 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;
-
- public AuthConstraintImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getAuthConstraint();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * A description of the auth constraint.
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * A list of role names for the auth constraint. Each element specifies the name
- * of a security role (a String).
-
- */
- public EList getRoles() {
- if (roles == null) {
- roles = new EDataTypeUniqueEList(String.class, this, WebapplicationPackage.AUTH_CONSTRAINT__ROLES);
- }
- return roles;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public SecurityConstraint getSecConstraint() {
- if (eContainerFeatureID != WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT) return null;
- return (SecurityConstraint)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSecConstraint(SecurityConstraint newSecConstraint) {
- if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT && newSecConstraint != null)) {
- if (EcoreUtil.isAncestor(this, newSecConstraint))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newSecConstraint != null)
- msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, SecurityConstraint.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, newSecConstraint, newSecConstraint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- return eBasicSetContainer(null, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, msgs);
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, SecurityConstraint.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.AUTH_CONSTRAINT__ROLES:
- return getRoles();
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- return getSecConstraint();
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS:
- return getDescriptions();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.AUTH_CONSTRAINT__ROLES:
- return roles != null && !roles.isEmpty();
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- return getSecConstraint() != null;
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__ROLES:
- getRoles().clear();
- getRoles().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)newValue);
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__ROLES:
- getRoles().clear();
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)null);
- return;
- case WebapplicationPackage.AUTH_CONSTRAINT__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", roles: ");
- result.append(roles);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java
deleted file mode 100644
index 05e984f83..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ContextParamImpl.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The context-param element contains the declaration of a web application's servlet context initialization parameters.
- */
-public class ContextParamImpl extends EObjectImpl implements ContextParam, EObject {
-
- /**
- * The default value of the '{@link #getParamName() <em>Param Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getParamName()
- * @generated
- * @ordered
- */
- protected static final String PARAM_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String paramName = PARAM_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getParamValue() <em>Param Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getParamValue()
- * @generated
- * @ordered
- */
- protected static final String PARAM_VALUE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String paramValue = PARAM_VALUE_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- public ContextParamImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getContextParam();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The param-name element contains the name of a parameter.
- */
- public String getParamName() {
- return paramName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setParamName(String newParamName) {
- String oldParamName = paramName;
- paramName = newParamName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME, oldParamName, paramName));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The param-value element contains the value of a parameter.
- */
- public String getParamValue() {
- return paramValue;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setParamValue(String newParamValue) {
- String oldParamValue = paramValue;
- paramValue = newParamValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE, oldParamValue, paramValue));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.CONTEXT_PARAM__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.CONTEXT_PARAM__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__CONTEXTS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.CONTEXT_PARAM__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__CONTEXTS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME:
- return getParamName();
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE:
- return getParamValue();
- case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- return getWebApp();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME:
- return PARAM_NAME_EDEFAULT == null ? paramName != null : !PARAM_NAME_EDEFAULT.equals(paramName);
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE:
- return PARAM_VALUE_EDEFAULT == null ? paramValue != null : !PARAM_VALUE_EDEFAULT.equals(paramValue);
- case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- return getWebApp() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME:
- setParamName((String)newValue);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE:
- setParamValue((String)newValue);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_NAME:
- setParamName(PARAM_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__PARAM_VALUE:
- setParamValue(PARAM_VALUE_EDEFAULT);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.CONTEXT_PARAM__WEB_APP:
- setWebApp((WebApp)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (paramName: ");
- result.append(paramName);
- result.append(", paramValue: ");
- result.append(paramValue);
- result.append(", description: ");
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java
deleted file mode 100644
index 9cdd2e78b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorCodeErrorPageImpl.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * @generated
- */
-public class ErrorCodeErrorPageImpl extends ErrorPageImpl implements ErrorCodeErrorPage {
-
- /**
- * The default value of the '{@link #getErrorCode() <em>Error Code</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getErrorCode()
- * @generated
- * @ordered
- */
- protected static final String ERROR_CODE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String errorCode = ERROR_CODE_EDEFAULT;
- public ErrorCodeErrorPageImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getErrorCodeErrorPage();
- }
-
-/**
- * isErrorCode method comment.
- */
-public boolean isErrorCode() {
- return true;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The error-code contains an HTTP error code, ex: 404
-
- */
- public String getErrorCode() {
- return errorCode;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setErrorCode(String newErrorCode) {
- String oldErrorCode = errorCode;
- errorCode = newErrorCode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE, oldErrorCode, errorCode));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION:
- return getLocation();
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE:
- return getErrorCode();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION:
- return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE:
- return ERROR_CODE_EDEFAULT == null ? errorCode != null : !ERROR_CODE_EDEFAULT.equals(errorCode);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION:
- setLocation((String)newValue);
- return;
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE:
- setErrorCode((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__LOCATION:
- setLocation(LOCATION_EDEFAULT);
- return;
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE__ERROR_CODE:
- setErrorCode(ERROR_CODE_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (errorCode: ");
- result.append(errorCode);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java
deleted file mode 100644
index 1de1c12c9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ErrorPageImpl.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The error-page element contains a mapping between an error code or exception type to the path of a resource in the web application
- */
-public class ErrorPageImpl extends EObjectImpl implements ErrorPage, EObject {
-
- /**
- * The default value of the '{@link #getLocation() <em>Location</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocation()
- * @generated
- * @ordered
- */
- protected static final String LOCATION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String location = LOCATION_EDEFAULT;
- public ErrorPageImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getErrorPage();
- }
-
-/**
- * isErrorCode method comment.
- */
-public boolean isErrorCode() {
- return false;
-}
-/**
- * isExceptionType method comment.
- */
-public boolean isExceptionType() {
- return false;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The location element contains the location of the resource in the web
- * application
- */
- public String getLocation() {
- return location;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLocation(String newLocation) {
- String oldLocation = location;
- location = newLocation;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_PAGE__LOCATION, oldLocation, location));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.ERROR_PAGE__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.ERROR_PAGE__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ERROR_PAGE__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_PAGE__LOCATION:
- return getLocation();
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- return getWebApp();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_PAGE__LOCATION:
- return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- return getWebApp() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_PAGE__LOCATION:
- setLocation((String)newValue);
- return;
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ERROR_PAGE__LOCATION:
- setLocation(LOCATION_EDEFAULT);
- return;
- case WebapplicationPackage.ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (location: ");
- result.append(location);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java
deleted file mode 100644
index 2ecd0b7ea..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ExceptionTypeErrorPageImpl.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * @generated
- */
-public class ExceptionTypeErrorPageImpl extends ErrorPageImpl implements ExceptionTypeErrorPage {
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected JavaClass exceptionType = null;
- public ExceptionTypeErrorPageImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getExceptionTypeErrorPage();
- }
-
-/**
- * Helper method to set the ExceptionType to a JavaClass having a fully qualified
- * name specified by the parameter
- */
-public String getExceptionTypeName() {
- getExceptionType();
- return exceptionType == null ? null : exceptionType.getQualifiedName();
-}/**
- * Helper method to set the ExceptionType to a JavaClass having a fully qualified
- * name specified by the parameter
- */
-public boolean isExceptionType() {
- return true;
-}
-public void setExceptionTypeName(String exceptionTypeName) {
- setExceptionType(JavaRefFactory.eINSTANCE.createClassRef(exceptionTypeName));
-}
-/**
- * @deprecated Use @link{#setExceptionTypeName(String)}
- */
-public void setExceptionTypeName(String exceptionTypeName, ResourceSet context) {
- setExceptionTypeName(exceptionTypeName);
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The exception type contains a fully qualified class name of a Java exception type.
- */
- public JavaClass getExceptionType() {
- if (exceptionType != null && exceptionType.eIsProxy()) {
- JavaClass oldExceptionType = exceptionType;
- exceptionType = (JavaClass)eResolveProxy((InternalEObject)exceptionType);
- if (exceptionType != oldExceptionType) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE, oldExceptionType, exceptionType));
- }
- }
- return exceptionType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JavaClass basicGetExceptionType() {
- return exceptionType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setExceptionType(JavaClass newExceptionType) {
- JavaClass oldExceptionType = exceptionType;
- exceptionType = newExceptionType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE, oldExceptionType, exceptionType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION:
- return getLocation();
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE:
- if (resolve) return getExceptionType();
- return basicGetExceptionType();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION:
- return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE:
- return exceptionType != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION:
- setLocation((String)newValue);
- return;
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE:
- setExceptionType((JavaClass)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__LOCATION:
- setLocation(LOCATION_EDEFAULT);
- return;
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE:
- setExceptionType((JavaClass)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java
deleted file mode 100644
index 6b2523a01..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterImpl.java
+++ /dev/null
@@ -1,383 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * Declares a filter in the web application application. The filter is mapped to either a servlet or a URL pattern in the filter-mapping element, using the filter-name value to reference. Filters can access the initialization parameters declared in the deployment descriptor at runtime via the FilterConfig interface.
-
- */
-public class FilterImpl extends CompatibilityDescriptionGroupImpl implements Filter {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList initParams = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected JavaClass filterClass = null;
- /**
- * The cached value of the '{@link #getInitParamValues() <em>Init Param Values</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInitParamValues()
- * @generated
- * @ordered
- */
- protected EList initParamValues = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected FilterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getFilter();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The logical name of the filter. This name is used to map the filter.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * getInitParams() is used for J2EE1.3
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getInitParams() {
- if (initParams == null) {
- initParams = new EObjectContainmentEList(InitParam.class, this, WebapplicationPackage.FILTER__INIT_PARAMS);
- }
- return initParams;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The fully qualified classname of the filter.
- */
- public JavaClass getFilterClass() {
- if (filterClass != null && filterClass.eIsProxy()) {
- JavaClass oldFilterClass = filterClass;
- filterClass = (JavaClass)eResolveProxy((InternalEObject)filterClass);
- if (filterClass != oldFilterClass) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER__FILTER_CLASS, oldFilterClass, filterClass));
- }
- }
- return filterClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JavaClass basicGetFilterClass() {
- return filterClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFilterClass(JavaClass newFilterClass) {
- JavaClass oldFilterClass = filterClass;
- filterClass = newFilterClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER__FILTER_CLASS, oldFilterClass, filterClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * getInitParamValues() is used for J2EE1.4
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getInitParamValues() {
- if (initParamValues == null) {
- initParamValues = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.FILTER__INIT_PARAM_VALUES);
- }
- return initParamValues;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.FILTER__ICONS:
- return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.FILTER__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.FILTER__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.FILTER__INIT_PARAMS:
- return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.FILTER__INIT_PARAM_VALUES:
- return ((InternalEList)getInitParamValues()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER__ICONS:
- return getIcons();
- case WebapplicationPackage.FILTER__DISPLAY_NAMES:
- return getDisplayNames();
- case WebapplicationPackage.FILTER__DESCRIPTIONS:
- return getDescriptions();
- case WebapplicationPackage.FILTER__SMALL_ICON:
- return getSmallIcon();
- case WebapplicationPackage.FILTER__LARGE_ICON:
- return getLargeIcon();
- case WebapplicationPackage.FILTER__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.FILTER__DISPLAY_NAME:
- return getDisplayName();
- case WebapplicationPackage.FILTER__NAME:
- return getName();
- case WebapplicationPackage.FILTER__INIT_PARAMS:
- return getInitParams();
- case WebapplicationPackage.FILTER__FILTER_CLASS:
- if (resolve) return getFilterClass();
- return basicGetFilterClass();
- case WebapplicationPackage.FILTER__INIT_PARAM_VALUES:
- return getInitParamValues();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER__ICONS:
- return icons != null && !icons.isEmpty();
- case WebapplicationPackage.FILTER__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- case WebapplicationPackage.FILTER__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- case WebapplicationPackage.FILTER__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case WebapplicationPackage.FILTER__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case WebapplicationPackage.FILTER__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.FILTER__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case WebapplicationPackage.FILTER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WebapplicationPackage.FILTER__INIT_PARAMS:
- return initParams != null && !initParams.isEmpty();
- case WebapplicationPackage.FILTER__FILTER_CLASS:
- return filterClass != null;
- case WebapplicationPackage.FILTER__INIT_PARAM_VALUES:
- return initParamValues != null && !initParamValues.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER__ICONS:
- getIcons().clear();
- getIcons().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.FILTER__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.FILTER__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.FILTER__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case WebapplicationPackage.FILTER__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case WebapplicationPackage.FILTER__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.FILTER__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- case WebapplicationPackage.FILTER__NAME:
- setName((String)newValue);
- return;
- case WebapplicationPackage.FILTER__INIT_PARAMS:
- getInitParams().clear();
- getInitParams().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.FILTER__FILTER_CLASS:
- setFilterClass((JavaClass)newValue);
- return;
- case WebapplicationPackage.FILTER__INIT_PARAM_VALUES:
- getInitParamValues().clear();
- getInitParamValues().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER__ICONS:
- getIcons().clear();
- return;
- case WebapplicationPackage.FILTER__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- case WebapplicationPackage.FILTER__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- case WebapplicationPackage.FILTER__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER__INIT_PARAMS:
- getInitParams().clear();
- return;
- case WebapplicationPackage.FILTER__FILTER_CLASS:
- setFilterClass((JavaClass)null);
- return;
- case WebapplicationPackage.FILTER__INIT_PARAM_VALUES:
- getInitParamValues().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-public JavaClass createClassRef(String targetName) {
- return JavaRefFactory.eINSTANCE.createClassRef(targetName);
-}
-
-
-public String getFilterClassName() {
- getFilterClass();
- return (filterClass == null) ? null : filterClass.getQualifiedName();
-}
-public void setFilterClassName(String filterClassName) {
- eSet(WebapplicationPackage.eINSTANCE.getFilter_FilterClass(), createClassRef(filterClassName));
-}
-} //FilterImpl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java
deleted file mode 100644
index df2cd4751..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FilterMappingImpl.java
+++ /dev/null
@@ -1,341 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-import org.eclipse.jst.j2ee.webapplication.DispatcherType;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * Declaration of the filter mappings in this web application. The container uses the filter-mapping declarations to decide which filters to apply to a request, and in what order. The container matches the request URI to a Servlet in the normal way. To determine which filters to apply it matches filter-mapping declarations either on servlet-name, or on url-pattern for each filter-mapping element, depending on which style is used. The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements.The filter-name value must be the value of the <filtername> sub-elements of one of the <filter> declarations in the deployment descriptor.
- *
- * @invariant The filter-name value must be the value of the Filter::name of one of the Filter declarations in the deployment descriptor.
-
- */
-public class FilterMappingImpl extends EObjectImpl implements FilterMapping, EObject{
-
- /**
- * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUrlPattern()
- * @generated
- * @ordered
- */
- protected static final String URL_PATTERN_EDEFAULT = null;
-
- protected transient String servletName;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String urlPattern = URL_PATTERN_EDEFAULT;
- /**
- * The cached value of the '{@link #getDispatcherType() <em>Dispatcher Type</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDispatcherType()
- * @generated
- * @ordered
- */
- protected EList dispatcherType = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected Filter filter = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected Servlet servlet = null;
- public FilterMappingImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getFilterMapping();
- }
-
-/**
- * Returns the name of the servlet that this mapping applies to.
- */
- public Servlet getServlet(){
- Servlet lservlet = this.getServletGen();
- if (lservlet == null && servletName != null){
- WebApp webapp = (WebApp)eContainer();
- if (webapp != null){
- lservlet=webapp.getServletNamed(servletName);
- if (lservlet != null)
- setServlet(lservlet);
- }
- }
- return lservlet;
-}
-/**
- * Returns the name of the servlet that this mapping applies to.
- */
-public String getServletName(){
- String ret = null;
- if (servletName != null)
- ret = servletName;
-
- Servlet lservlet = getServlet();
- if (lservlet != null)
- ret = lservlet.getServletName();
- return ret;
-}
-/**
- * Sets the name of the servlet that this mapping applies to.
- */
-public void setServletName(String servletName){
- this.servletName = servletName;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The url-pattern element contains the url pattern of the mapping. Must follow
- * the rules specified in Section 10 of the Servlet API Specification.
- */
- public String getUrlPattern() {
- return urlPattern;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setUrlPattern(String newUrlPattern) {
- String oldUrlPattern = urlPattern;
- urlPattern = newUrlPattern;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__URL_PATTERN, oldUrlPattern, urlPattern));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDispatcherType() {
- if (dispatcherType == null) {
- dispatcherType = new EDataTypeUniqueEList(DispatcherType.class, this, WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE);
- }
- return dispatcherType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The filter being mapped
- */
- public Filter getFilter() {
- if (filter != null && filter.eIsProxy()) {
- Filter oldFilter = filter;
- filter = (Filter)eResolveProxy((InternalEObject)filter);
- if (filter != oldFilter) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER_MAPPING__FILTER, oldFilter, filter));
- }
- }
- return filter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Filter basicGetFilter() {
- return filter;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFilter(Filter newFilter) {
- Filter oldFilter = filter;
- filter = newFilter;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__FILTER, oldFilter, filter));
- }
-
- public void setServlet(Servlet l) {
- servletName = null;
- setServletGen(l);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setServletGen(Servlet newServlet) {
- Servlet oldServlet = servlet;
- servlet = newServlet;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FILTER_MAPPING__SERVLET, oldServlet, servlet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN:
- return getUrlPattern();
- case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE:
- return getDispatcherType();
- case WebapplicationPackage.FILTER_MAPPING__FILTER:
- if (resolve) return getFilter();
- return basicGetFilter();
- case WebapplicationPackage.FILTER_MAPPING__SERVLET:
- if (resolve) return getServlet();
- return basicGetServlet();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN:
- return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern);
- case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE:
- return dispatcherType != null && !dispatcherType.isEmpty();
- case WebapplicationPackage.FILTER_MAPPING__FILTER:
- return filter != null;
- case WebapplicationPackage.FILTER_MAPPING__SERVLET:
- return servlet != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * (Removed Generated flag to preserve override This field/method will NOT be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN:
- setUrlPattern((String)newValue);
- return;
- case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE:
- getDispatcherType().clear();
- getDispatcherType().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.FILTER_MAPPING__FILTER:
- setFilter((Filter)newValue);
- return;
- case WebapplicationPackage.FILTER_MAPPING__SERVLET:
- if(newValue instanceof String)
- setServletName((String)newValue);
- else
- setServlet((Servlet)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FILTER_MAPPING__URL_PATTERN:
- setUrlPattern(URL_PATTERN_EDEFAULT);
- return;
- case WebapplicationPackage.FILTER_MAPPING__DISPATCHER_TYPE:
- getDispatcherType().clear();
- return;
- case WebapplicationPackage.FILTER_MAPPING__FILTER:
- setFilter((Filter)null);
- return;
- case WebapplicationPackage.FILTER_MAPPING__SERVLET:
- setServlet((Servlet)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (urlPattern: ");//$NON-NLS-1$
- result.append(urlPattern);
- result.append(", dispatcherType: ");//$NON-NLS-1$
- result.append(dispatcherType);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * An optional servlet that is mapped by a filter mapping. servletName is used to resolve the servlet reference.
- */
- public Servlet getServletGen() {
- if (servlet != null && servlet.eIsProxy()) {
- Servlet oldServlet = servlet;
- servlet = (Servlet)eResolveProxy((InternalEObject)servlet);
- if (servlet != oldServlet) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.FILTER_MAPPING__SERVLET, oldServlet, servlet));
- }
- }
- return servlet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Servlet basicGetServlet() {
- return servlet;
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java
deleted file mode 100644
index e2fe7726c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/FormLoginConfigImpl.java
+++ /dev/null
@@ -1,291 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The form-login-config element specifies the login and error pages that should be used in form based login. If form based authentication is not used, these elements are ignored.
- */
-public class FormLoginConfigImpl extends EObjectImpl implements FormLoginConfig, EObject {
-
- /**
- * The default value of the '{@link #getFormLoginPage() <em>Form Login Page</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFormLoginPage()
- * @generated
- * @ordered
- */
- protected static final String FORM_LOGIN_PAGE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String formLoginPage = FORM_LOGIN_PAGE_EDEFAULT;
- /**
- * The default value of the '{@link #getFormErrorPage() <em>Form Error Page</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getFormErrorPage()
- * @generated
- * @ordered
- */
- protected static final String FORM_ERROR_PAGE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String formErrorPage = FORM_ERROR_PAGE_EDEFAULT;
- public FormLoginConfigImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getFormLoginConfig();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The form-login-page element defines the location in the web app where the page
- * that can be used for login can be found
- */
- public String getFormLoginPage() {
- return formLoginPage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFormLoginPage(String newFormLoginPage) {
- String oldFormLoginPage = formLoginPage;
- formLoginPage = newFormLoginPage;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE, oldFormLoginPage, formLoginPage));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The form-error-page element defines the location in the web app where the error
- * page that is displayed when login is not successful can be found
- */
- public String getFormErrorPage() {
- return formErrorPage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFormErrorPage(String newFormErrorPage) {
- String oldFormErrorPage = formErrorPage;
- formErrorPage = newFormErrorPage;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE, oldFormErrorPage, formErrorPage));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public LoginConfig getLoginConfig() {
- if (eContainerFeatureID != WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG) return null;
- return (LoginConfig)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLoginConfig(LoginConfig newLoginConfig) {
- if (newLoginConfig != eContainer || (eContainerFeatureID != WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG && newLoginConfig != null)) {
- if (EcoreUtil.isAncestor(this, newLoginConfig))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newLoginConfig != null)
- msgs = ((InternalEObject)newLoginConfig).eInverseAdd(this, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, LoginConfig.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newLoginConfig, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, newLoginConfig, newLoginConfig));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- return eBasicSetContainer(null, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- return eContainer.eInverseRemove(this, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, LoginConfig.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE:
- return getFormLoginPage();
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE:
- return getFormErrorPage();
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- return getLoginConfig();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE:
- return FORM_LOGIN_PAGE_EDEFAULT == null ? formLoginPage != null : !FORM_LOGIN_PAGE_EDEFAULT.equals(formLoginPage);
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE:
- return FORM_ERROR_PAGE_EDEFAULT == null ? formErrorPage != null : !FORM_ERROR_PAGE_EDEFAULT.equals(formErrorPage);
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- return getLoginConfig() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE:
- setFormLoginPage((String)newValue);
- return;
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE:
- setFormErrorPage((String)newValue);
- return;
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- setLoginConfig((LoginConfig)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE:
- setFormLoginPage(FORM_LOGIN_PAGE_EDEFAULT);
- return;
- case WebapplicationPackage.FORM_LOGIN_CONFIG__FORM_ERROR_PAGE:
- setFormErrorPage(FORM_ERROR_PAGE_EDEFAULT);
- return;
- case WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG:
- setLoginConfig((LoginConfig)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (formLoginPage: ");
- result.append(formLoginPage);
- result.append(", formErrorPage: ");
- result.append(formErrorPage);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java
deleted file mode 100644
index aa85fce2a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/HTTPMethodTypeImpl.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>HTTP Method Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.HTTPMethodTypeImpl#getHttpMethod <em>Http Method</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class HTTPMethodTypeImpl extends EObjectImpl implements HTTPMethodType {
- /**
- * The default value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHttpMethod()
- * @generated
- * @ordered
- */
- protected static final String HTTP_METHOD_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHttpMethod()
- * @generated
- * @ordered
- */
- protected String httpMethod = HTTP_METHOD_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HTTPMethodTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getHTTPMethodType();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getHttpMethod() {
- return httpMethod;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHttpMethod(String newHttpMethod) {
- String oldHttpMethod = httpMethod;
- httpMethod = newHttpMethod;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD, oldHttpMethod, httpMethod));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD:
- return getHttpMethod();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD:
- setHttpMethod((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD:
- setHttpMethod(HTTP_METHOD_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.HTTP_METHOD_TYPE__HTTP_METHOD:
- return HTTP_METHOD_EDEFAULT == null ? httpMethod != null : !HTTP_METHOD_EDEFAULT.equals(httpMethod);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (httpMethod: ");
- result.append(httpMethod);
- result.append(')');
- return result.toString();
- }
-
-} //HTTPMethodTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java
deleted file mode 100644
index ac412f113..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/InitParamImpl.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The init-param element contains a name//value pair as an initialization param of the servlet
- */
-public class InitParamImpl extends EObjectImpl implements InitParam, EObject {
-
- /**
- * The default value of the '{@link #getParamName() <em>Param Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getParamName()
- * @generated
- * @ordered
- */
- protected static final String PARAM_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String paramName = PARAM_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getParamValue() <em>Param Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getParamValue()
- * @generated
- * @ordered
- */
- protected static final String PARAM_VALUE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String paramValue = PARAM_VALUE_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- public InitParamImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getInitParam();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- *
- *
-
- */
- public String getParamName() {
- return paramName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setParamName(String newParamName) {
- String oldParamName = paramName;
- paramName = newParamName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__PARAM_NAME, oldParamName, paramName));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getParamValue() {
- return paramValue;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setParamValue(String newParamValue) {
- String oldParamValue = paramValue;
- paramValue = newParamValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__PARAM_VALUE, oldParamValue, paramValue));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.INIT_PARAM__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.INIT_PARAM__PARAM_NAME:
- return getParamName();
- case WebapplicationPackage.INIT_PARAM__PARAM_VALUE:
- return getParamValue();
- case WebapplicationPackage.INIT_PARAM__DESCRIPTION:
- return getDescription();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.INIT_PARAM__PARAM_NAME:
- return PARAM_NAME_EDEFAULT == null ? paramName != null : !PARAM_NAME_EDEFAULT.equals(paramName);
- case WebapplicationPackage.INIT_PARAM__PARAM_VALUE:
- return PARAM_VALUE_EDEFAULT == null ? paramValue != null : !PARAM_VALUE_EDEFAULT.equals(paramValue);
- case WebapplicationPackage.INIT_PARAM__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.INIT_PARAM__PARAM_NAME:
- setParamName((String)newValue);
- return;
- case WebapplicationPackage.INIT_PARAM__PARAM_VALUE:
- setParamValue((String)newValue);
- return;
- case WebapplicationPackage.INIT_PARAM__DESCRIPTION:
- setDescription((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.INIT_PARAM__PARAM_NAME:
- setParamName(PARAM_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.INIT_PARAM__PARAM_VALUE:
- setParamValue(PARAM_VALUE_EDEFAULT);
- return;
- case WebapplicationPackage.INIT_PARAM__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (paramName: ");
- result.append(paramName);
- result.append(", paramValue: ");
- result.append(paramValue);
- result.append(", description: ");
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java
deleted file mode 100644
index 281b716f8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/JSPTypeImpl.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * @generated
- */
-public class JSPTypeImpl extends WebTypeImpl implements JSPType {
-
- /**
- * The default value of the '{@link #getJspFile() <em>Jsp File</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getJspFile()
- * @generated
- * @ordered
- */
- protected static final String JSP_FILE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String jspFile = JSP_FILE_EDEFAULT;
- public JSPTypeImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getJSPType();
- }
-
-public boolean isJspType() {
- return true;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The jsp-file element contains the full path to a JSP file within the web
- * application.
-
- */
- public String getJspFile() {
- return jspFile;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setJspFile(String newJspFile) {
- String oldJspFile = jspFile;
- jspFile = newJspFile;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.JSP_TYPE__JSP_FILE, oldJspFile, jspFile));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.JSP_TYPE__JSP_FILE:
- return getJspFile();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.JSP_TYPE__JSP_FILE:
- return JSP_FILE_EDEFAULT == null ? jspFile != null : !JSP_FILE_EDEFAULT.equals(jspFile);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.JSP_TYPE__JSP_FILE:
- setJspFile((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.JSP_TYPE__JSP_FILE:
- setJspFile(JSP_FILE_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (jspFile: ");
- result.append(jspFile);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java
deleted file mode 100644
index bf289919e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingImpl.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Local Encoding Mapping</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl#getLocale <em>Locale</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingImpl#getEncoding <em>Encoding</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LocalEncodingMappingImpl extends EObjectImpl implements LocalEncodingMapping {
- /**
- * The default value of the '{@link #getLocale() <em>Locale</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocale()
- * @generated
- * @ordered
- */
- protected static final String LOCALE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLocale() <em>Locale</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocale()
- * @generated
- * @ordered
- */
- protected String locale = LOCALE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getEncoding() <em>Encoding</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEncoding()
- * @generated
- * @ordered
- */
- protected static final String ENCODING_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getEncoding() <em>Encoding</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEncoding()
- * @generated
- * @ordered
- */
- protected String encoding = ENCODING_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LocalEncodingMappingImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getLocalEncodingMapping();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLocale() {
- return locale;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLocale(String newLocale) {
- String oldLocale = locale;
- locale = newLocale;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE, oldLocale, locale));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getEncoding() {
- return encoding;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setEncoding(String newEncoding) {
- String oldEncoding = encoding;
- encoding = newEncoding;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING, oldEncoding, encoding));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE:
- return getLocale();
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING:
- return getEncoding();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE:
- setLocale((String)newValue);
- return;
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING:
- setEncoding((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE:
- setLocale(LOCALE_EDEFAULT);
- return;
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING:
- setEncoding(ENCODING_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__LOCALE:
- return LOCALE_EDEFAULT == null ? locale != null : !LOCALE_EDEFAULT.equals(locale);
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING__ENCODING:
- return ENCODING_EDEFAULT == null ? encoding != null : !ENCODING_EDEFAULT.equals(encoding);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (locale: ");
- result.append(locale);
- result.append(", encoding: ");
- result.append(encoding);
- result.append(')');
- return result.toString();
- }
-
-} //LocalEncodingMappingImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java
deleted file mode 100644
index 4dd2d725f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LocalEncodingMappingListImpl.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Local Encoding Mapping List</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.webapplication.internal.impl.LocalEncodingMappingListImpl#getLocalEncodingMappings <em>Local Encoding Mappings</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LocalEncodingMappingListImpl extends EObjectImpl implements LocalEncodingMappingList {
- /**
- * The cached value of the '{@link #getLocalEncodingMappings() <em>Local Encoding Mappings</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalEncodingMappings()
- * @generated
- * @ordered
- */
- protected EList localEncodingMappings = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LocalEncodingMappingListImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getLocalEncodingMappingList();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getLocalEncodingMappings() {
- if (localEncodingMappings == null) {
- localEncodingMappings = new EObjectContainmentEList(LocalEncodingMapping.class, this, WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS);
- }
- return localEncodingMappings;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS:
- return ((InternalEList)getLocalEncodingMappings()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS:
- return getLocalEncodingMappings();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS:
- getLocalEncodingMappings().clear();
- getLocalEncodingMappings().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS:
- getLocalEncodingMappings().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS:
- return localEncodingMappings != null && !localEncodingMappings.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
-} //LocalEncodingMappingListImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java
deleted file mode 100644
index a0e0863fe..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/LoginConfigImpl.java
+++ /dev/null
@@ -1,445 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.AuthMethodKind;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The login-config element is used to configure the authentication method that should be used, the realm name that should be used for this application, and the attributes that are needed by the form login
- * mechanism.
- */
-public class LoginConfigImpl extends EObjectImpl implements LoginConfig, EObject {
-
- /**
- * The default value of the '{@link #getAuthMethod() <em>Auth Method</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthMethod()
- * @generated
- * @ordered
- */
- protected static final AuthMethodKind AUTH_METHOD_EDEFAULT = AuthMethodKind.UNSPECIFIED_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected AuthMethodKind authMethod = AUTH_METHOD_EDEFAULT;
- /**
- * This is true if the Auth Method attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean authMethodESet = false;
-
- /**
- * The default value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRealmName()
- * @generated
- * @ordered
- */
- protected static final String REALM_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String realmName = REALM_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getAuthorizationMethod() <em>Authorization Method</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthorizationMethod()
- * @generated
- * @ordered
- */
- protected static final String AUTHORIZATION_METHOD_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAuthorizationMethod() <em>Authorization Method</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthorizationMethod()
- * @generated
- * @ordered
- */
- protected String authorizationMethod = AUTHORIZATION_METHOD_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected FormLoginConfig formLoginConfig = null;
- public LoginConfigImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getLoginConfig();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The auth-method element is used to configure the authentication mechanism for
- * the web application. As a prerequisite to gaining access to any web resources
- * which are protected by an authorization constraint, a user must have
- * authenticated using the configured mechanism. Legal values for this element are
- * "BASIC", "DIGEST", "FORM", or "CLIENT-CERT".
- */
- public AuthMethodKind getAuthMethod() {
- return authMethod;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthMethod(AuthMethodKind newAuthMethod) {
- AuthMethodKind oldAuthMethod = authMethod;
- authMethod = newAuthMethod == null ? AUTH_METHOD_EDEFAULT : newAuthMethod;
- boolean oldAuthMethodESet = authMethodESet;
- authMethodESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD, oldAuthMethod, authMethod, !oldAuthMethodESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetAuthMethod() {
- AuthMethodKind oldAuthMethod = authMethod;
- boolean oldAuthMethodESet = authMethodESet;
- authMethod = AUTH_METHOD_EDEFAULT;
- authMethodESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD, oldAuthMethod, AUTH_METHOD_EDEFAULT, oldAuthMethodESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetAuthMethod() {
- return authMethodESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The realm name element specifies the realm name to use in HTTP Basic
- * authorization
- */
- public String getRealmName() {
- return realmName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRealmName(String newRealmName) {
- String oldRealmName = realmName;
- realmName = newRealmName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__REALM_NAME, oldRealmName, realmName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAuthorizationMethod() {
- return authorizationMethod;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthorizationMethod(String newAuthorizationMethod) {
- String oldAuthorizationMethod = authorizationMethod;
- authorizationMethod = newAuthorizationMethod;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD, oldAuthorizationMethod, authorizationMethod));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.LOGIN_CONFIG__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.LOGIN_CONFIG__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public FormLoginConfig getFormLoginConfig() {
- return formLoginConfig;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetFormLoginConfig(FormLoginConfig newFormLoginConfig, NotificationChain msgs) {
- FormLoginConfig oldFormLoginConfig = formLoginConfig;
- formLoginConfig = newFormLoginConfig;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, oldFormLoginConfig, newFormLoginConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFormLoginConfig(FormLoginConfig newFormLoginConfig) {
- if (newFormLoginConfig != formLoginConfig) {
- NotificationChain msgs = null;
- if (formLoginConfig != null)
- msgs = ((InternalEObject)formLoginConfig).eInverseRemove(this, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, FormLoginConfig.class, msgs);
- if (newFormLoginConfig != null)
- msgs = ((InternalEObject)newFormLoginConfig).eInverseAdd(this, WebapplicationPackage.FORM_LOGIN_CONFIG__LOGIN_CONFIG, FormLoginConfig.class, msgs);
- msgs = basicSetFormLoginConfig(newFormLoginConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, newFormLoginConfig, newFormLoginConfig));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs);
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- if (formLoginConfig != null)
- msgs = ((InternalEObject)formLoginConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG, null, msgs);
- return basicSetFormLoginConfig((FormLoginConfig)otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, msgs);
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- return basicSetFormLoginConfig(null, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD:
- return getAuthMethod();
- case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME:
- return getRealmName();
- case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD:
- return getAuthorizationMethod();
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- return getFormLoginConfig();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD:
- return isSetAuthMethod();
- case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME:
- return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName);
- case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD:
- return AUTHORIZATION_METHOD_EDEFAULT == null ? authorizationMethod != null : !AUTHORIZATION_METHOD_EDEFAULT.equals(authorizationMethod);
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- return formLoginConfig != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD:
- setAuthMethod((AuthMethodKind)newValue);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME:
- setRealmName((String)newValue);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD:
- setAuthorizationMethod((String)newValue);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- setFormLoginConfig((FormLoginConfig)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.LOGIN_CONFIG__AUTH_METHOD:
- unsetAuthMethod();
- return;
- case WebapplicationPackage.LOGIN_CONFIG__REALM_NAME:
- setRealmName(REALM_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__AUTHORIZATION_METHOD:
- setAuthorizationMethod(AUTHORIZATION_METHOD_EDEFAULT);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.LOGIN_CONFIG__FORM_LOGIN_CONFIG:
- setFormLoginConfig((FormLoginConfig)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (authMethod: ");
- if (authMethodESet) result.append(authMethod); else result.append("<unset>");
- result.append(", realmName: ");
- result.append(realmName);
- result.append(", authorizationMethod: ");
- result.append(authorizationMethod);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java
deleted file mode 100644
index ed541a26f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/MimeMappingImpl.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The mime-mapping element defines a mapping between an extension and a mime type.
-
- */
-public class MimeMappingImpl extends EObjectImpl implements MimeMapping, EObject {
-
- /**
- * The default value of the '{@link #getExtension() <em>Extension</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getExtension()
- * @generated
- * @ordered
- */
- protected static final String EXTENSION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String extension = EXTENSION_EDEFAULT;
- /**
- * The default value of the '{@link #getMimeType() <em>Mime Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMimeType()
- * @generated
- * @ordered
- */
- protected static final String MIME_TYPE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String mimeType = MIME_TYPE_EDEFAULT;
- public MimeMappingImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getMimeMapping();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The extension element contains a string describing an extension. example: "txt"
- */
- public String getExtension() {
- return extension;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setExtension(String newExtension) {
- String oldExtension = extension;
- extension = newExtension;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__EXTENSION, oldExtension, extension));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The mime-type element contains a defined mime type. example: "text//plain"
- */
- public String getMimeType() {
- return mimeType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setMimeType(String newMimeType) {
- String oldMimeType = mimeType;
- mimeType = newMimeType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__MIME_TYPE, oldMimeType, mimeType));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.MIME_MAPPING__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.MIME_MAPPING__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.MIME_MAPPING__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.MIME_MAPPING__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.MIME_MAPPING__EXTENSION:
- return getExtension();
- case WebapplicationPackage.MIME_MAPPING__MIME_TYPE:
- return getMimeType();
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- return getWebApp();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.MIME_MAPPING__EXTENSION:
- return EXTENSION_EDEFAULT == null ? extension != null : !EXTENSION_EDEFAULT.equals(extension);
- case WebapplicationPackage.MIME_MAPPING__MIME_TYPE:
- return MIME_TYPE_EDEFAULT == null ? mimeType != null : !MIME_TYPE_EDEFAULT.equals(mimeType);
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- return getWebApp() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.MIME_MAPPING__EXTENSION:
- setExtension((String)newValue);
- return;
- case WebapplicationPackage.MIME_MAPPING__MIME_TYPE:
- setMimeType((String)newValue);
- return;
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.MIME_MAPPING__EXTENSION:
- setExtension(EXTENSION_EDEFAULT);
- return;
- case WebapplicationPackage.MIME_MAPPING__MIME_TYPE:
- setMimeType(MIME_TYPE_EDEFAULT);
- return;
- case WebapplicationPackage.MIME_MAPPING__WEB_APP:
- setWebApp((WebApp)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (extension: ");
- result.append(extension);
- result.append(", mimeType: ");
- result.append(mimeType);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java
deleted file mode 100644
index e054e3be2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/RoleNameTypeImpl.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * @generated
- */
-public class RoleNameTypeImpl extends EObjectImpl implements RoleNameType {
-
- /**
- * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRoleName()
- * @generated
- * @ordered
- */
- protected static final String ROLE_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String roleName = ROLE_NAME_EDEFAULT;
- public RoleNameTypeImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getRoleNameType();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getRoleName() {
- return roleName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRoleName(String newRoleName) {
- String oldRoleName = roleName;
- roleName = newRoleName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME, oldRoleName, roleName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME:
- return getRoleName();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME:
- return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME:
- setRoleName((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.ROLE_NAME_TYPE__ROLE_NAME:
- setRoleName(ROLE_NAME_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (roleName: ");
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java
deleted file mode 100644
index 019332966..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SecurityConstraintImpl.java
+++ /dev/null
@@ -1,449 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * The security-constraint element is used to associate security constraints with one or more web resource collections
- */
-public class SecurityConstraintImpl extends EObjectImpl implements SecurityConstraint, EObject {
-
- /**
- * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected static final String DISPLAY_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected String displayName = DISPLAY_NAME_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList webResourceCollections = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected AuthConstraint authConstraint = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected UserDataConstraint userDataConstraint = 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;
-
- public SecurityConstraintImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getSecurityConstraint();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDisplayName() {
- return displayName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDisplayName(String newDisplayName) {
- String oldDisplayName = displayName;
- displayName = newDisplayName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME, oldDisplayName, displayName));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getWebResourceCollections() {
- if (webResourceCollections == null) {
- webResourceCollections = new EObjectContainmentWithInverseEList(WebResourceCollection.class, this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT);
- }
- return webResourceCollections;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public AuthConstraint getAuthConstraint() {
- return authConstraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetAuthConstraint(AuthConstraint newAuthConstraint, NotificationChain msgs) {
- AuthConstraint oldAuthConstraint = authConstraint;
- authConstraint = newAuthConstraint;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, oldAuthConstraint, newAuthConstraint);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setAuthConstraint(AuthConstraint newAuthConstraint) {
- if (newAuthConstraint != authConstraint) {
- NotificationChain msgs = null;
- if (authConstraint != null)
- msgs = ((InternalEObject)authConstraint).eInverseRemove(this, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, AuthConstraint.class, msgs);
- if (newAuthConstraint != null)
- msgs = ((InternalEObject)newAuthConstraint).eInverseAdd(this, WebapplicationPackage.AUTH_CONSTRAINT__SEC_CONSTRAINT, AuthConstraint.class, msgs);
- msgs = basicSetAuthConstraint(newAuthConstraint, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, newAuthConstraint, newAuthConstraint));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public UserDataConstraint getUserDataConstraint() {
- return userDataConstraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetUserDataConstraint(UserDataConstraint newUserDataConstraint, NotificationChain msgs) {
- UserDataConstraint oldUserDataConstraint = userDataConstraint;
- userDataConstraint = newUserDataConstraint;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, oldUserDataConstraint, newUserDataConstraint);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setUserDataConstraint(UserDataConstraint newUserDataConstraint) {
- if (newUserDataConstraint != userDataConstraint) {
- NotificationChain msgs = null;
- if (userDataConstraint != null)
- msgs = ((InternalEObject)userDataConstraint).eInverseRemove(this, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, UserDataConstraint.class, msgs);
- if (newUserDataConstraint != null)
- msgs = ((InternalEObject)newUserDataConstraint).eInverseAdd(this, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, UserDataConstraint.class, msgs);
- msgs = basicSetUserDataConstraint(newUserDataConstraint, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, newUserDataConstraint, newUserDataConstraint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDisplayNames() {
- if (displayNames == null) {
- displayNames = new EObjectContainmentEList(DisplayName.class, this, WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES);
- }
- return displayNames;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- return ((InternalEList)getWebResourceCollections()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- if (authConstraint != null)
- msgs = ((InternalEObject)authConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT, null, msgs);
- return basicSetAuthConstraint((AuthConstraint)otherEnd, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- if (userDataConstraint != null)
- msgs = ((InternalEObject)userDataConstraint).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, null, msgs);
- return basicSetUserDataConstraint((UserDataConstraint)otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- return ((InternalEList)getWebResourceCollections()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- return basicSetAuthConstraint(null, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- return basicSetUserDataConstraint(null, msgs);
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME:
- return getDisplayName();
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- return getWebResourceCollections();
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- return getAuthConstraint();
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- return getUserDataConstraint();
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES:
- return getDisplayNames();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- return webResourceCollections != null && !webResourceCollections.isEmpty();
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- return authConstraint != null;
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- return userDataConstraint != null;
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (displayName: ");
- result.append(displayName);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- getWebResourceCollections().clear();
- getWebResourceCollections().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- setAuthConstraint((AuthConstraint)newValue);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- setUserDataConstraint((UserDataConstraint)newValue);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS:
- getWebResourceCollections().clear();
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__AUTH_CONSTRAINT:
- setAuthConstraint((AuthConstraint)null);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT:
- setUserDataConstraint((UserDataConstraint)null);
- return;
- case WebapplicationPackage.SECURITY_CONSTRAINT__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java
deleted file mode 100644
index a1ff941b5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletImpl.java
+++ /dev/null
@@ -1,699 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Properties;
-import java.util.Vector;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * The servlet element contains the declarative data of a servlet. If a jsp-file is specified and the load-on-startup element is present, then the JSP should be precompiled and loaded.
- */
-public class ServletImpl extends CompatibilityDescriptionGroupImpl implements Servlet {
-
- /**
- * The default value of the '{@link #getServletName() <em>Servlet Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getServletName()
- * @generated
- * @ordered
- */
- protected static final String SERVLET_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String servletName = SERVLET_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getLoadOnStartup() <em>Load On Startup</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLoadOnStartup()
- * @generated
- * @ordered
- */
- protected static final Integer LOAD_ON_STARTUP_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected Integer loadOnStartup = LOAD_ON_STARTUP_EDEFAULT;
- /**
- * This is true if the Load On Startup attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean loadOnStartupESet = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected WebType webType = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList params = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList securityRoleRefs = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected RunAsSpecifiedIdentity runAs = null;
- /**
- * The cached value of the '{@link #getInitParams() <em>Init Params</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInitParams()
- * @generated
- * @ordered
- */
- protected EList initParams = null;
-
- public ServletImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getServlet();
- }
-
-/**
- * Returns an unmodifiable list of the mappings that this
- * servlet participates in. Since servletMappings is not
- * a bi-directional attribute, if you want to add or delete a
- * mapping, this must be done in the web-app.
- * @return java.util.List
- */
-public List getMappings() {
- WebApp webApp = (WebApp) eContainer();
- if (webApp == null) return new BasicEList(0);
-
- EList allMappings = webApp.getServletMappings();
- Iterator i = allMappings.iterator();
- List mappings = new Vector();
- while (i.hasNext()) {
- ServletMapping mapping = (ServletMapping) i.next();
- if (mapping.getServlet() == this)
- mappings.add(mapping);
- }
- return mappings;
-}
-/**
- * getParamsAsProperties method comment.
- */
-public Properties getParamsAsProperties() {
- Properties props = new Properties();
- List lparams = getParams();
- InitParam param;
- for (int i = 0; i < lparams.size(); i++) {
- param = (InitParam) lparams.get(i);
- props.setProperty(param.getParamName(), param.getParamValue());
- }
- return props;
-}
-/**
- * @see Servlet
- */
-public void reSyncSecurityRoleRef(java.lang.String existingRoleName, java.lang.String newRoleName) {
- List roleRefs = getSecurityRoleRefs();
- for (int i = 0; i < roleRefs.size(); i++) {
- SecurityRoleRef roleRef = (SecurityRoleRef) roleRefs.get(i);
- if (roleRef.getLink() != null && roleRef.getLink().equals(existingRoleName))
- roleRef.setLink(newRoleName);
- }
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The servlet-name element contains the canonical name of the servlet.
- */
- public String getServletName() {
- return servletName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setServletName(String newServletName) {
- String oldServletName = servletName;
- servletName = newServletName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__SERVLET_NAME, oldServletName, servletName));
- }
-
- /**
- *
- */
- public void setDisplayName(String newDisplayName) {
- super.setDisplayName(newDisplayName);
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, the container is free to load it at any time in the startup sequence.
-
- */
- public Integer getLoadOnStartup() {
- return loadOnStartup;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLoadOnStartup(Integer newLoadOnStartup) {
- Integer oldLoadOnStartup = loadOnStartup;
- loadOnStartup = newLoadOnStartup;
- boolean oldLoadOnStartupESet = loadOnStartupESet;
- loadOnStartupESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__LOAD_ON_STARTUP, oldLoadOnStartup, loadOnStartup, !oldLoadOnStartupESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetLoadOnStartup() {
- Integer oldLoadOnStartup = loadOnStartup;
- boolean oldLoadOnStartupESet = loadOnStartupESet;
- loadOnStartup = LOAD_ON_STARTUP_EDEFAULT;
- loadOnStartupESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.SERVLET__LOAD_ON_STARTUP, oldLoadOnStartup, LOAD_ON_STARTUP_EDEFAULT, oldLoadOnStartupESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetLoadOnStartup() {
- return loadOnStartupESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.SERVLET__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SERVLET__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SERVLETS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SERVLET__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebType getWebType() {
- return webType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetWebType(WebType newWebType, NotificationChain msgs) {
- WebType oldWebType = webType;
- webType = newWebType;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_TYPE, oldWebType, newWebType);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebType(WebType newWebType) {
- if (newWebType != webType) {
- NotificationChain msgs = null;
- if (webType != null)
- msgs = ((InternalEObject)webType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__WEB_TYPE, null, msgs);
- if (newWebType != null)
- msgs = ((InternalEObject)newWebType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__WEB_TYPE, null, msgs);
- msgs = basicSetWebType(newWebType, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__WEB_TYPE, newWebType, newWebType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * getParams() is used for J2EE1.4
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getParams() {
- if (params == null) {
- params = new EObjectContainmentEList(InitParam.class, this, WebapplicationPackage.SERVLET__PARAMS);
- }
- return params;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getSecurityRoleRefs() {
- if (securityRoleRefs == null) {
- securityRoleRefs = new EObjectContainmentEList(SecurityRoleRef.class, this, WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS);
- }
- return securityRoleRefs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * If defined for a servlet, overrides the security identity used to call an EJB by that servlet in this web application. The role-name is one of the security roles already defined for this web application.
- */
- public RunAsSpecifiedIdentity getRunAs() {
- return runAs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetRunAs(RunAsSpecifiedIdentity newRunAs, NotificationChain msgs) {
- RunAsSpecifiedIdentity oldRunAs = runAs;
- runAs = newRunAs;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__RUN_AS, oldRunAs, newRunAs);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRunAs(RunAsSpecifiedIdentity newRunAs) {
- if (newRunAs != runAs) {
- NotificationChain msgs = null;
- if (runAs != null)
- msgs = ((InternalEObject)runAs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__RUN_AS, null, msgs);
- if (newRunAs != null)
- msgs = ((InternalEObject)newRunAs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.SERVLET__RUN_AS, null, msgs);
- msgs = basicSetRunAs(newRunAs, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET__RUN_AS, newRunAs, newRunAs));
- }
-
- /**
- * <!-- begin-user-doc -->
- * getInitParams() is used for J2EE1.3
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getInitParams() {
- if (initParams == null) {
- initParams = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.SERVLET__INIT_PARAMS);
- }
- return initParams;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SERVLET__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.SERVLET__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SERVLET__ICONS:
- return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SERVLET__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SERVLET__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SERVLET__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.SERVLET__WEB_APP, msgs);
- case WebapplicationPackage.SERVLET__WEB_TYPE:
- return basicSetWebType(null, msgs);
- case WebapplicationPackage.SERVLET__PARAMS:
- return ((InternalEList)getParams()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS:
- return ((InternalEList)getSecurityRoleRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.SERVLET__RUN_AS:
- return basicSetRunAs(null, msgs);
- case WebapplicationPackage.SERVLET__INIT_PARAMS:
- return ((InternalEList)getInitParams()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.SERVLET__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SERVLETS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET__ICONS:
- return getIcons();
- case WebapplicationPackage.SERVLET__DISPLAY_NAMES:
- return getDisplayNames();
- case WebapplicationPackage.SERVLET__DESCRIPTIONS:
- return getDescriptions();
- case WebapplicationPackage.SERVLET__SMALL_ICON:
- return getSmallIcon();
- case WebapplicationPackage.SERVLET__LARGE_ICON:
- return getLargeIcon();
- case WebapplicationPackage.SERVLET__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.SERVLET__DISPLAY_NAME:
- return getDisplayName();
- case WebapplicationPackage.SERVLET__SERVLET_NAME:
- return getServletName();
- case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP:
- return getLoadOnStartup();
- case WebapplicationPackage.SERVLET__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.SERVLET__WEB_TYPE:
- return getWebType();
- case WebapplicationPackage.SERVLET__PARAMS:
- return getParams();
- case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS:
- return getSecurityRoleRefs();
- case WebapplicationPackage.SERVLET__RUN_AS:
- return getRunAs();
- case WebapplicationPackage.SERVLET__INIT_PARAMS:
- return getInitParams();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET__ICONS:
- return icons != null && !icons.isEmpty();
- case WebapplicationPackage.SERVLET__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- case WebapplicationPackage.SERVLET__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- case WebapplicationPackage.SERVLET__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case WebapplicationPackage.SERVLET__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case WebapplicationPackage.SERVLET__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.SERVLET__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case WebapplicationPackage.SERVLET__SERVLET_NAME:
- return SERVLET_NAME_EDEFAULT == null ? servletName != null : !SERVLET_NAME_EDEFAULT.equals(servletName);
- case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP:
- return isSetLoadOnStartup();
- case WebapplicationPackage.SERVLET__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.SERVLET__WEB_TYPE:
- return webType != null;
- case WebapplicationPackage.SERVLET__PARAMS:
- return params != null && !params.isEmpty();
- case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS:
- return securityRoleRefs != null && !securityRoleRefs.isEmpty();
- case WebapplicationPackage.SERVLET__RUN_AS:
- return runAs != null;
- case WebapplicationPackage.SERVLET__INIT_PARAMS:
- return initParams != null && !initParams.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET__ICONS:
- getIcons().clear();
- getIcons().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SERVLET__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SERVLET__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SERVLET__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case WebapplicationPackage.SERVLET__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case WebapplicationPackage.SERVLET__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.SERVLET__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- case WebapplicationPackage.SERVLET__SERVLET_NAME:
- setServletName((String)newValue);
- return;
- case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP:
- setLoadOnStartup((Integer)newValue);
- return;
- case WebapplicationPackage.SERVLET__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.SERVLET__WEB_TYPE:
- setWebType((WebType)newValue);
- return;
- case WebapplicationPackage.SERVLET__PARAMS:
- getParams().clear();
- getParams().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS:
- getSecurityRoleRefs().clear();
- getSecurityRoleRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.SERVLET__RUN_AS:
- setRunAs((RunAsSpecifiedIdentity)newValue);
- return;
- case WebapplicationPackage.SERVLET__INIT_PARAMS:
- getInitParams().clear();
- getInitParams().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET__ICONS:
- getIcons().clear();
- return;
- case WebapplicationPackage.SERVLET__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- case WebapplicationPackage.SERVLET__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- case WebapplicationPackage.SERVLET__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET__SERVLET_NAME:
- setServletName(SERVLET_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET__LOAD_ON_STARTUP:
- unsetLoadOnStartup();
- return;
- case WebapplicationPackage.SERVLET__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.SERVLET__WEB_TYPE:
- setWebType((WebType)null);
- return;
- case WebapplicationPackage.SERVLET__PARAMS:
- getParams().clear();
- return;
- case WebapplicationPackage.SERVLET__SECURITY_ROLE_REFS:
- getSecurityRoleRefs().clear();
- return;
- case WebapplicationPackage.SERVLET__RUN_AS:
- setRunAs((RunAsSpecifiedIdentity)null);
- return;
- case WebapplicationPackage.SERVLET__INIT_PARAMS:
- getInitParams().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (servletName: ");
- result.append(servletName);
- result.append(", loadOnStartup: ");
- if (loadOnStartupESet) result.append(loadOnStartup); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
- /**
- * return the java servlet class for this servlet
- */
- public JavaClass getServletClass() {
- JavaClass javaClass = null;
- String javaClassName = null;
- // Handle servlet case
- if (getWebType().isServletType())
- javaClassName = ((ServletType)getWebType()).getClassName();
- //Handle the JSP case
- else {
- String relPath = ((JSPType)getWebType()).getJspFile();
- URI webAppURI = getWebApp().eResource().getURI();
- javaClassName = webAppURI.segment(1)+"/"+webAppURI.segment(2)+relPath;//$NON-NLS-1$
- }
- javaClass = (JavaClass) JavaRefFactory.eINSTANCE.reflectType(javaClassName,this);
- return javaClass;
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java
deleted file mode 100644
index 9f4e0fa4f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletMappingImpl.java
+++ /dev/null
@@ -1,349 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The servlet-mapping element defines a mapping between a servlet and a url pattern
- */
-public class ServletMappingImpl extends EObjectImpl implements ServletMapping, EObject {
-
- /**
- * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUrlPattern()
- * @generated
- * @ordered
- */
- protected static final String URL_PATTERN_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String urlPattern = URL_PATTERN_EDEFAULT;
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected Servlet servlet = null;
- public ServletMappingImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getServletMapping();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The url-pattern element contains the url pattern of the mapping. Must follow
- * the rules specified in Section 10 of the Servlet API Specification.
- */
- public String getUrlPattern() {
- return urlPattern;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setUrlPattern(String newUrlPattern) {
- String oldUrlPattern = urlPattern;
- urlPattern = newUrlPattern;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN, oldUrlPattern, urlPattern));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.SERVLET_MAPPING__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SERVLET_MAPPING__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public Servlet getServlet() {
- if (servlet != null && servlet.eIsProxy()) {
- Servlet oldServlet = servlet;
- servlet = (Servlet)eResolveProxy((InternalEObject)servlet);
- if (servlet != oldServlet) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, WebapplicationPackage.SERVLET_MAPPING__SERVLET, oldServlet, servlet));
- }
- }
- return servlet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Servlet basicGetServlet() {
- return servlet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setServlet(Servlet newServlet) {
- Servlet oldServlet = servlet;
- servlet = newServlet;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_MAPPING__SERVLET, oldServlet, servlet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.SERVLET_MAPPING__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN:
- return getUrlPattern();
- case WebapplicationPackage.SERVLET_MAPPING__NAME:
- return getName();
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.SERVLET_MAPPING__SERVLET:
- if (resolve) return getServlet();
- return basicGetServlet();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN:
- return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern);
- case WebapplicationPackage.SERVLET_MAPPING__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.SERVLET_MAPPING__SERVLET:
- return servlet != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN:
- setUrlPattern((String)newValue);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__NAME:
- setName((String)newValue);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__SERVLET:
- setServlet((Servlet)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_MAPPING__URL_PATTERN:
- setUrlPattern(URL_PATTERN_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__NAME:
- setName(NAME_EDEFAULT);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.SERVLET_MAPPING__SERVLET:
- setServlet((Servlet)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (urlPattern: ");
- result.append(urlPattern);
- result.append(", name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java
deleted file mode 100644
index fa31ed292..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/ServletTypeImpl.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * @generated
- */
-public class ServletTypeImpl extends WebTypeImpl implements ServletType {
-
- /**
- * The default value of the '{@link #getClassName() <em>Class Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getClassName()
- * @generated
- * @ordered
- */
- protected static final String CLASS_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String className = CLASS_NAME_EDEFAULT;
- public ServletTypeImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getServletType();
- }
-
-public boolean isServletType() {
- return true;
-}
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getClassName() {
- return className;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setClassName(String newClassName) {
- String oldClassName = className;
- className = newClassName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SERVLET_TYPE__CLASS_NAME, oldClassName, className));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME:
- return getClassName();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME:
- return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className);
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME:
- setClassName((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SERVLET_TYPE__CLASS_NAME:
- setClassName(CLASS_NAME_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (className: ");
- result.append(className);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java
deleted file mode 100644
index 15520c148..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/SessionConfigImpl.java
+++ /dev/null
@@ -1,281 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The session-config element defines the session parameters for this web application.
- */
-public class SessionConfigImpl extends EObjectImpl implements SessionConfig, EObject {
-
- /**
- * The default value of the '{@link #getSessionTimeout() <em>Session Timeout</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSessionTimeout()
- * @generated
- * @ordered
- */
- protected static final int SESSION_TIMEOUT_EDEFAULT = 0;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected int sessionTimeout = SESSION_TIMEOUT_EDEFAULT;
- /**
- * This is true if the Session Timeout attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean sessionTimeoutESet = false;
-
- public SessionConfigImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getSessionConfig();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The session-timeout element defines the default session timeout interval for
- * all sessions created in this web application. The specified timeout must be
- * expressed in a whole number of minutes.
- */
- public int getSessionTimeout() {
- return sessionTimeout;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSessionTimeout(int newSessionTimeout) {
- int oldSessionTimeout = sessionTimeout;
- sessionTimeout = newSessionTimeout;
- boolean oldSessionTimeoutESet = sessionTimeoutESet;
- sessionTimeoutESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT, oldSessionTimeout, sessionTimeout, !oldSessionTimeoutESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetSessionTimeout() {
- int oldSessionTimeout = sessionTimeout;
- boolean oldSessionTimeoutESet = sessionTimeoutESet;
- sessionTimeout = SESSION_TIMEOUT_EDEFAULT;
- sessionTimeoutESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT, oldSessionTimeout, SESSION_TIMEOUT_EDEFAULT, oldSessionTimeoutESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetSessionTimeout() {
- return sessionTimeoutESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.SESSION_CONFIG__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.SESSION_CONFIG__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__SESSION_CONFIG, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.SESSION_CONFIG__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.SESSION_CONFIG__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__SESSION_CONFIG, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT:
- return new Integer(getSessionTimeout());
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- return getWebApp();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT:
- return isSetSessionTimeout();
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- return getWebApp() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT:
- setSessionTimeout(((Integer)newValue).intValue());
- return;
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.SESSION_CONFIG__SESSION_TIMEOUT:
- unsetSessionTimeout();
- return;
- case WebapplicationPackage.SESSION_CONFIG__WEB_APP:
- setWebApp((WebApp)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (sessionTimeout: ");
- if (sessionTimeoutESet) result.append(sessionTimeout); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java
deleted file mode 100644
index b0cec43ed..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/TagLibRefImpl.java
+++ /dev/null
@@ -1,296 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * The taglib element is used to describe a JSP tag library.
- */
-public class TagLibRefImpl extends EObjectImpl implements TagLibRef, EObject{
-
- /**
- * The default value of the '{@link #getTaglibURI() <em>Taglib URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTaglibURI()
- * @generated
- * @ordered
- */
- protected static final String TAGLIB_URI_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String taglibURI = TAGLIB_URI_EDEFAULT;
- /**
- * The default value of the '{@link #getTaglibLocation() <em>Taglib Location</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTaglibLocation()
- * @generated
- * @ordered
- */
- protected static final String TAGLIB_LOCATION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String taglibLocation = TAGLIB_LOCATION_EDEFAULT;
- public TagLibRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getTagLibRef();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The taglib-uri element describes a URI, relative to the location of the web.xml
- * document, identifying a Tag Library used in the Web Application.
- */
- public String getTaglibURI() {
- return taglibURI;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setTaglibURI(String newTaglibURI) {
- String oldTaglibURI = taglibURI;
- taglibURI = newTaglibURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI, oldTaglibURI, taglibURI));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The taglib-location element contains the location (as a resource relative to
- * the root of the web application) where to find the Tag Libary Description file
- * for the tag library.
- */
- public String getTaglibLocation() {
- return taglibLocation;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setTaglibLocation(String newTaglibLocation) {
- String oldTaglibLocation = taglibLocation;
- taglibLocation = newTaglibLocation;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION, oldTaglibLocation, taglibLocation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.TAG_LIB_REF__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.TAG_LIB_REF__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.TAG_LIB_REF__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.TAG_LIB_REF__WEB_APP, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI:
- return getTaglibURI();
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION:
- return getTaglibLocation();
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- return getWebApp();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI:
- return TAGLIB_URI_EDEFAULT == null ? taglibURI != null : !TAGLIB_URI_EDEFAULT.equals(taglibURI);
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION:
- return TAGLIB_LOCATION_EDEFAULT == null ? taglibLocation != null : !TAGLIB_LOCATION_EDEFAULT.equals(taglibLocation);
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- return getWebApp() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI:
- setTaglibURI((String)newValue);
- return;
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION:
- setTaglibLocation((String)newValue);
- return;
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_URI:
- setTaglibURI(TAGLIB_URI_EDEFAULT);
- return;
- case WebapplicationPackage.TAG_LIB_REF__TAGLIB_LOCATION:
- setTaglibLocation(TAGLIB_LOCATION_EDEFAULT);
- return;
- case WebapplicationPackage.TAG_LIB_REF__WEB_APP:
- setWebApp((WebApp)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (taglibURI: ");
- result.append(taglibURI);
- result.append(", taglibLocation: ");
- result.append(taglibLocation);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java
deleted file mode 100644
index a48bdaab6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/URLPatternTypeImpl.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * @generated
- */
-public class URLPatternTypeImpl extends EObjectImpl implements URLPatternType {
-
- /**
- * The default value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUrlPattern()
- * @generated
- * @ordered
- */
- protected static final String URL_PATTERN_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String urlPattern = URL_PATTERN_EDEFAULT;
- public URLPatternTypeImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getURLPatternType();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getUrlPattern() {
- return urlPattern;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setUrlPattern(String newUrlPattern) {
- String oldUrlPattern = urlPattern;
- urlPattern = newUrlPattern;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN, oldUrlPattern, urlPattern));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebResourceCollection getResCollection() {
- if (eContainerFeatureID != WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION) return null;
- return (WebResourceCollection)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setResCollection(WebResourceCollection newResCollection) {
- if (newResCollection != eContainer || (eContainerFeatureID != WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION && newResCollection != null)) {
- if (EcoreUtil.isAncestor(this, newResCollection))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newResCollection != null)
- msgs = ((InternalEObject)newResCollection).eInverseAdd(this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebResourceCollection.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newResCollection, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, newResCollection, newResCollection));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- return eBasicSetContainer(null, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebResourceCollection.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN:
- return getUrlPattern();
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- return getResCollection();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN:
- return URL_PATTERN_EDEFAULT == null ? urlPattern != null : !URL_PATTERN_EDEFAULT.equals(urlPattern);
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- return getResCollection() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN:
- setUrlPattern((String)newValue);
- return;
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- setResCollection((WebResourceCollection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.URL_PATTERN_TYPE__URL_PATTERN:
- setUrlPattern(URL_PATTERN_EDEFAULT);
- return;
- case WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION:
- setResCollection((WebResourceCollection)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (urlPattern: ");
- result.append(urlPattern);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java
deleted file mode 100644
index e3a17cac8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/UserDataConstraintImpl.java
+++ /dev/null
@@ -1,376 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * The user-data-constraint element is used to indicate how data communicated between the client and container should be protected
- */
-public class UserDataConstraintImpl extends EObjectImpl implements UserDataConstraint, EObject {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getTransportGuarantee() <em>Transport Guarantee</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransportGuarantee()
- * @generated
- * @ordered
- */
- protected static final TransportGuaranteeType TRANSPORT_GUARANTEE_EDEFAULT = TransportGuaranteeType.NONE_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected TransportGuaranteeType transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT;
- /**
- * This is true if the Transport Guarantee attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean transportGuaranteeESet = false;
-
- /**
- * 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;
-
- public UserDataConstraintImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getUserDataConstraint();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * A description for the user data constraint.
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The transport-guarantee element specifies that the communication between client
- * and server should be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the
- * application does not require any
- * transport guarantees. A value of INTEGRAL means that the application requires
- * that the data sent between the client and server be sent in such a way that it
- * can't be changed in transit. CONFIDENTIAL means that the application requires
- * that the data be transmitted in a fashion that prevents other entities from
- * observing the contents of the transmission. In most cases, the presence of the
- * INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is required.
- */
- public TransportGuaranteeType getTransportGuarantee() {
- return transportGuarantee;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTransportGuarantee(TransportGuaranteeType newTransportGuarantee) {
- TransportGuaranteeType oldTransportGuarantee = transportGuarantee;
- transportGuarantee = newTransportGuarantee == null ? TRANSPORT_GUARANTEE_EDEFAULT : newTransportGuarantee;
- boolean oldTransportGuaranteeESet = transportGuaranteeESet;
- transportGuaranteeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, transportGuarantee, !oldTransportGuaranteeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetTransportGuarantee() {
- TransportGuaranteeType oldTransportGuarantee = transportGuarantee;
- boolean oldTransportGuaranteeESet = transportGuaranteeESet;
- transportGuarantee = TRANSPORT_GUARANTEE_EDEFAULT;
- transportGuaranteeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE, oldTransportGuarantee, TRANSPORT_GUARANTEE_EDEFAULT, oldTransportGuaranteeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetTransportGuarantee() {
- return transportGuaranteeESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public SecurityConstraint getSecConstraint() {
- if (eContainerFeatureID != WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT) return null;
- return (SecurityConstraint)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSecConstraint(SecurityConstraint newSecConstraint) {
- if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT && newSecConstraint != null)) {
- if (EcoreUtil.isAncestor(this, newSecConstraint))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newSecConstraint != null)
- msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, SecurityConstraint.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, newSecConstraint, newSecConstraint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- return eBasicSetContainer(null, WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT, msgs);
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT, SecurityConstraint.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE:
- return getTransportGuarantee();
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- return getSecConstraint();
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS:
- return getDescriptions();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE:
- return isSetTransportGuarantee();
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- return getSecConstraint() != null;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE:
- setTransportGuarantee((TransportGuaranteeType)newValue);
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)newValue);
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE:
- unsetTransportGuarantee();
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)null);
- return;
- case WebapplicationPackage.USER_DATA_CONSTRAINT__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", transportGuarantee: ");
- if (transportGuaranteeESet) result.append(transportGuarantee); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java
deleted file mode 100644
index c9b9e6be6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppImpl.java
+++ /dev/null
@@ -1,1399 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl;
-import org.eclipse.jst.j2ee.common.internal.util.CommonUtil;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.jst.j2ee.jsp.JSPConfig;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-
-/**
- * The web-app element is the root of the deployment descriptor for
- * a web application.
- */
-public class WebAppImpl extends JNDIEnvRefsGroupImpl implements WebApp {
-
- /**
- * The default value of the '{@link #isDistributable() <em>Distributable</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isDistributable()
- * @generated
- * @ordered
- */
- protected static final boolean DISTRIBUTABLE_EDEFAULT = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected boolean distributable = DISTRIBUTABLE_EDEFAULT;
- /**
- * This is true if the Distributable attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean distributableESet = false;
-
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected String version = VERSION_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList contexts = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList errorPages = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected WelcomeFileList fileList = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList tagLibs = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList constraints = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected LoginConfig loginConfig = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList mimeMappings = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected SessionConfig sessionConfig = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList servletMappings = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList servlets = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList securityRoles = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList filters = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList filterMappings = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList listeners = null;
- /**
- * The cached value of the '{@link #getContextParams() <em>Context Params</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getContextParams()
- * @generated
- * @ordered
- */
- protected EList contextParams = null;
-
- /**
- * The cached value of the '{@link #getJspConfig() <em>Jsp Config</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getJspConfig()
- * @generated
- * @ordered
- */
- protected JSPConfig jspConfig = null;
-
- /**
- * The cached value of the '{@link #getMessageDestinations() <em>Message Destinations</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageDestinations()
- * @generated
- * @ordered
- */
- protected EList messageDestinations = null;
-
- /**
- * The cached value of the '{@link #getLocalEncodingMappingList() <em>Local Encoding Mapping List</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalEncodingMappingList()
- * @generated
- * @ordered
- */
- protected LocalEncodingMappingList localEncodingMappingList = null;
-
- public WebAppImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getWebApp();
- }
-
-/**
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebApp
- */
-public boolean containsSecurityRole(java.lang.String name) {
- return getSecurityRoleNamed(name) != null;
-}
-public ErrorPage getErrorPageByCode(Integer code) {
- List lerrorPages = getErrorPages();
- String codeString = code.toString();
- Iterator ie = lerrorPages.iterator();
- while (ie.hasNext()) {
- ErrorPage ep = (ErrorPage) ie.next();
- if (ep.isErrorCode()) {
- ErrorCodeErrorPage ecep = (ErrorCodeErrorPage) ep;
- if (codeString.equals(ecep.getErrorCode()))
- return ecep;
- }
- }
- return null;
-}
-public ErrorPage getErrorPageByExceptionType(String exceptionType) {
- if (exceptionType != null) {
- List lerrorPages = getErrorPages();
- Iterator ie = lerrorPages.iterator();
- while (ie.hasNext()) {
- ErrorPage ep = (ErrorPage) ie.next();
- if (ep.isExceptionType()) {
- ExceptionTypeErrorPage etep = (ExceptionTypeErrorPage) ep;
- if (exceptionType.equals(etep.getExceptionTypeName()))
- return etep;
- }
- }
- }
- return null;
-}
-/**
- * Finds a filter mapping for a specified filter.
- * @param filter The filter to find the mapping for.
- * @return The first filter mapping found for the specified filter, or null if no
- * mapping exists for the filter.
- */
-public FilterMapping getFilterMapping(
- Filter aFilter) {
- if (aFilter != null) {
- List mappings = getFilterMappings();
- FilterMapping mapping;
- for (int i = 0; i < mappings.size(); i++) {
- mapping = (FilterMapping) mappings.get(i);
- if (aFilter.equals(mapping.getFilter()))
- return mapping;
- }
- }
- return null;
-}
-/**
- * getFilterNamed method comment.
- */
-public Filter getFilterNamed(java.lang.String name) {
- List lfilters = getFilters();
- if (lfilters == null || lfilters.size() == 0) {
- return null;
- }
- Filter next;
- for (int i = 0; i < lfilters.size(); i++) {
- next = (Filter) lfilters.get(i);
- if (next.getName().equals(name)) {
- return next;
- }
- }
- return null;
-}
-public List getFilterNames() {
- List names, lfilters = getFilters();
- names = new ArrayList(lfilters.size());
- Filter next;
- for (int i = 0; i < lfilters.size(); i++) {
- next = (Filter) lfilters.get(i);
- names.add(next.getName());
- }
- return names;
-}
-/**
- * Returns the mime type for the specified extension
- * @param An extension to find the mime type for.
- */
-public java.lang.String getMimeType(java.lang.String extension) {
- if (extension != null) {
- List mappings = getMimeMappings();
- MimeMapping mapping;
- for (int i = 0; i < mappings.size(); i++) {
- mapping = (MimeMapping) mappings.get(i);
- if (extension.equals(mapping.getExtension()))
- return mapping.getMimeType();
- }
- }
- return null;
-}
-public SecurityRole getSecurityRoleNamed(String roleName) {
- java.util.List tempRoles = getSecurityRoles();
- SecurityRole role;
- for (int i = 0; i < tempRoles.size(); i++) {
- role = (SecurityRole) tempRoles.get(i);
- if (role.getRoleName().equals(roleName))
- return role;
- }
- return null;
-}
-/**
- * Finds a servlet mapping for a specified servlet.
- * @param servlet The servlet to find the mappings for.
- * @return The servlet mapping for the specified servlet, or null if no
- * mapping exists for the servlet.
- */
-public ServletMapping getServletMapping(
- Servlet aServlet) {
- if (aServlet != null) {
- List mappings = getServletMappings();
- ServletMapping mapping;
- for (int i = 0; i < mappings.size(); i++) {
- mapping = (ServletMapping) mappings.get(i);
- if (aServlet.equals(mapping.getServlet()))
- return mapping;
- }
- }
- return null;
-}
-/**
- * getServletNamed method comment.
- */
-public Servlet getServletNamed(java.lang.String name) {
- List lservlets = getServlets();
- if (lservlets == null || lservlets.size() == 0) {
- return null;
- }
- Servlet next;
- String nextName;
- for (int i = 0; i < lservlets.size(); i++) {
- next = (Servlet) lservlets.get(i);
- nextName = next.getServletName();
- if (nextName != null && nextName.equals(name)) {
- return next;
- }
- }
- return null;
-}
-public List getServletNames() {
- List names, lservlets = getServlets();
- names = new ArrayList(lservlets.size());
- Servlet next;
- for (int i = 0; i < lservlets.size(); i++) {
- next = (Servlet) lservlets.get(i);
- names.add(next.getServletName());
- }
- return names;
-}
-/**
- * Return boolean indicating if this Web App was populated from an Servlet2.2 compliant descriptor
- * @return boolean
- * @deprecated Use getVersionID() to determine module level
- */
-public boolean isVersion2_2Descriptor() {
- CommonUtil.checkDDObjectForVersion(this);
- String systemId = ((XMLResource)eResource()).getSystemId();
- return systemId == null ? false : systemId.equals(J2EEConstants.WEBAPP_SYSTEMID_2_2);
-}
-/**
- * Return boolean indicating if this Web App was populated from an Servlet2.3 compliant descriptor
- * @return boolean
- * @deprecated Use getVersionID() to determine module level
- */
-public boolean isVersion2_3Descriptor() {
- CommonUtil.checkDDObjectForVersion(this);
- String systemId = ((XMLResource)eResource()).getSystemId();
- return systemId == null ? false : systemId.equals(J2EEConstants.WEBAPP_SYSTEMID_2_3);
-}
-/**
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebApp
- */
-public void renameSecurityRole(java.lang.String existingRoleName, java.lang.String newRoleName) {
- SecurityRole role = getSecurityRoleNamed(existingRoleName);
- if (role != null)
- role.setRoleName(newRoleName);
- List theServlets = getServlets();
- for (int i = 0; i < theServlets.size(); i++){
- Servlet servlet = (Servlet)theServlets.get(i);
- servlet.reSyncSecurityRoleRef(existingRoleName, newRoleName);
- }
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The distributable element, by its presence in a web application deployment
- * descriptor, indicates that this web application is programmed appropriately to
- * be deployed into a distributed servlet container
- */
- public boolean isDistributable() {
- return distributable;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDistributable(boolean newDistributable) {
- boolean oldDistributable = distributable;
- distributable = newDistributable;
- boolean oldDistributableESet = distributableESet;
- distributableESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__DISTRIBUTABLE, oldDistributable, distributable, !oldDistributableESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetDistributable() {
- boolean oldDistributable = distributable;
- boolean oldDistributableESet = distributableESet;
- distributable = DISTRIBUTABLE_EDEFAULT;
- distributableESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, WebapplicationPackage.WEB_APP__DISTRIBUTABLE, oldDistributable, DISTRIBUTABLE_EDEFAULT, oldDistributableESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetDistributable() {
- return distributableESet;
- }
-
- /**
- *
- */
- public void setDisplayName(String newDisplayName) {
- super.setDisplayName(newDisplayName);
- }
-
- /**
- * <!-- 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;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__VERSION, oldVersion, version));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getContexts() {
- if (contexts == null) {
- contexts = new EObjectContainmentWithInverseEList(ContextParam.class, this, WebapplicationPackage.WEB_APP__CONTEXTS, WebapplicationPackage.CONTEXT_PARAM__WEB_APP);
- }
- return contexts;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getErrorPages() {
- if (errorPages == null) {
- errorPages = new EObjectContainmentWithInverseEList(ErrorPage.class, this, WebapplicationPackage.WEB_APP__ERROR_PAGES, WebapplicationPackage.ERROR_PAGE__WEB_APP);
- }
- return errorPages;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WelcomeFileList getFileList() {
- return fileList;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetFileList(WelcomeFileList newFileList, NotificationChain msgs) {
- WelcomeFileList oldFileList = fileList;
- fileList = newFileList;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__FILE_LIST, oldFileList, newFileList);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFileList(WelcomeFileList newFileList) {
- if (newFileList != fileList) {
- NotificationChain msgs = null;
- if (fileList != null)
- msgs = ((InternalEObject)fileList).eInverseRemove(this, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, WelcomeFileList.class, msgs);
- if (newFileList != null)
- msgs = ((InternalEObject)newFileList).eInverseAdd(this, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, WelcomeFileList.class, msgs);
- msgs = basicSetFileList(newFileList, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__FILE_LIST, newFileList, newFileList));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getTagLibs() {
- if (tagLibs == null) {
- tagLibs = new EObjectContainmentWithInverseEList(TagLibRef.class, this, WebapplicationPackage.WEB_APP__TAG_LIBS, WebapplicationPackage.TAG_LIB_REF__WEB_APP);
- }
- return tagLibs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getConstraints() {
- if (constraints == null) {
- constraints = new EObjectContainmentWithInverseEList(SecurityConstraint.class, this, WebapplicationPackage.WEB_APP__CONSTRAINTS, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_APP);
- }
- return constraints;
- }
-
- /**
- * This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
-
- public int getVersionID() throws IllegalStateException {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null) {
- // fix defect 3276, when resource is unloaded
- if (version == null)
- throw new IllegalStateException();
-
- if (version.equals("2.4"))//$NON-NLS-1$
- return J2EEVersionConstants.WEB_2_4_ID;
- if (version.equals("2.3"))//$NON-NLS-1$
- return J2EEVersionConstants.WEB_2_3_ID;
- if (version.equals("2.2"))//$NON-NLS-1$
- return J2EEVersionConstants.WEB_2_2_ID;
-
- }
- return res.getModuleVersionID();
- }
-
- /**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
- public int getJ2EEVersionID() throws IllegalStateException {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null) throw new IllegalStateException();
- return res.getJ2EEVersionID();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public LoginConfig getLoginConfig() {
- return loginConfig;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetLoginConfig(LoginConfig newLoginConfig, NotificationChain msgs) {
- LoginConfig oldLoginConfig = loginConfig;
- loginConfig = newLoginConfig;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, oldLoginConfig, newLoginConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLoginConfig(LoginConfig newLoginConfig) {
- if (newLoginConfig != loginConfig) {
- NotificationChain msgs = null;
- if (loginConfig != null)
- msgs = ((InternalEObject)loginConfig).eInverseRemove(this, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, LoginConfig.class, msgs);
- if (newLoginConfig != null)
- msgs = ((InternalEObject)newLoginConfig).eInverseAdd(this, WebapplicationPackage.LOGIN_CONFIG__WEB_APP, LoginConfig.class, msgs);
- msgs = basicSetLoginConfig(newLoginConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOGIN_CONFIG, newLoginConfig, newLoginConfig));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getMimeMappings() {
- if (mimeMappings == null) {
- mimeMappings = new EObjectContainmentWithInverseEList(MimeMapping.class, this, WebapplicationPackage.WEB_APP__MIME_MAPPINGS, WebapplicationPackage.MIME_MAPPING__WEB_APP);
- }
- return mimeMappings;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public SessionConfig getSessionConfig() {
- return sessionConfig;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetSessionConfig(SessionConfig newSessionConfig, NotificationChain msgs) {
- SessionConfig oldSessionConfig = sessionConfig;
- sessionConfig = newSessionConfig;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__SESSION_CONFIG, oldSessionConfig, newSessionConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSessionConfig(SessionConfig newSessionConfig) {
- if (newSessionConfig != sessionConfig) {
- NotificationChain msgs = null;
- if (sessionConfig != null)
- msgs = ((InternalEObject)sessionConfig).eInverseRemove(this, WebapplicationPackage.SESSION_CONFIG__WEB_APP, SessionConfig.class, msgs);
- if (newSessionConfig != null)
- msgs = ((InternalEObject)newSessionConfig).eInverseAdd(this, WebapplicationPackage.SESSION_CONFIG__WEB_APP, SessionConfig.class, msgs);
- msgs = basicSetSessionConfig(newSessionConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__SESSION_CONFIG, newSessionConfig, newSessionConfig));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getServletMappings() {
- if (servletMappings == null) {
- servletMappings = new EObjectContainmentWithInverseEList(ServletMapping.class, this, WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS, WebapplicationPackage.SERVLET_MAPPING__WEB_APP);
- }
- return servletMappings;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getServlets() {
- if (servlets == null) {
- servlets = new EObjectContainmentWithInverseEList(Servlet.class, this, WebapplicationPackage.WEB_APP__SERVLETS, WebapplicationPackage.SERVLET__WEB_APP);
- }
- return servlets;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getSecurityRoles() {
- if (securityRoles == null) {
- securityRoles = new EObjectContainmentEList(SecurityRole.class, this, WebapplicationPackage.WEB_APP__SECURITY_ROLES);
- }
- return securityRoles;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getFilters() {
- if (filters == null) {
- filters = new EObjectContainmentEList(Filter.class, this, WebapplicationPackage.WEB_APP__FILTERS);
- }
- return filters;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Filter mappings defined for the web app
- */
- public EList getFilterMappings() {
- if (filterMappings == null) {
- filterMappings = new EObjectContainmentEList(FilterMapping.class, this, WebapplicationPackage.WEB_APP__FILTER_MAPPINGS);
- }
- return filterMappings;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The listeners collection contains deployment properties for a web application
- * listener beans in the web app.
- */
- public EList getListeners() {
- if (listeners == null) {
- listeners = new EObjectContainmentEList(Listener.class, this, WebapplicationPackage.WEB_APP__LISTENERS);
- }
- return listeners;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getContextParams() {
- if (contextParams == null) {
- contextParams = new EObjectContainmentEList(ParamValue.class, this, WebapplicationPackage.WEB_APP__CONTEXT_PARAMS);
- }
- return contextParams;
- }
-
- /**
- * @deprecated: Use getEnvironmentProperties()
- */
- public EList getEnvEntries() {
-
- return getEnvironmentProperties();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JSPConfig getJspConfig() {
- return jspConfig;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetJspConfig(JSPConfig newJspConfig, NotificationChain msgs) {
- JSPConfig oldJspConfig = jspConfig;
- jspConfig = newJspConfig;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__JSP_CONFIG, oldJspConfig, newJspConfig);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setJspConfig(JSPConfig newJspConfig) {
- if (newJspConfig != jspConfig) {
- NotificationChain msgs = null;
- if (jspConfig != null)
- msgs = ((InternalEObject)jspConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__JSP_CONFIG, null, msgs);
- if (newJspConfig != null)
- msgs = ((InternalEObject)newJspConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__JSP_CONFIG, null, msgs);
- msgs = basicSetJspConfig(newJspConfig, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__JSP_CONFIG, newJspConfig, newJspConfig));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getMessageDestinations() {
- if (messageDestinations == null) {
- messageDestinations = new EObjectContainmentEList(MessageDestination.class, this, WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS);
- }
- return messageDestinations;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LocalEncodingMappingList getLocalEncodingMappingList() {
- return localEncodingMappingList;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetLocalEncodingMappingList(LocalEncodingMappingList newLocalEncodingMappingList, NotificationChain msgs) {
- LocalEncodingMappingList oldLocalEncodingMappingList = localEncodingMappingList;
- localEncodingMappingList = newLocalEncodingMappingList;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, oldLocalEncodingMappingList, newLocalEncodingMappingList);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLocalEncodingMappingList(LocalEncodingMappingList newLocalEncodingMappingList) {
- if (newLocalEncodingMappingList != localEncodingMappingList) {
- NotificationChain msgs = null;
- if (localEncodingMappingList != null)
- msgs = ((InternalEObject)localEncodingMappingList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, null, msgs);
- if (newLocalEncodingMappingList != null)
- msgs = ((InternalEObject)newLocalEncodingMappingList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, null, msgs);
- msgs = basicSetLocalEncodingMappingList(newLocalEncodingMappingList, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST, newLocalEncodingMappingList, newLocalEncodingMappingList));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- return ((InternalEList)getContexts()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- return ((InternalEList)getErrorPages()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- if (fileList != null)
- msgs = ((InternalEObject)fileList).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__FILE_LIST, null, msgs);
- return basicSetFileList((WelcomeFileList)otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- return ((InternalEList)getTagLibs()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- return ((InternalEList)getConstraints()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- if (loginConfig != null)
- msgs = ((InternalEObject)loginConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__LOGIN_CONFIG, null, msgs);
- return basicSetLoginConfig((LoginConfig)otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- return ((InternalEList)getMimeMappings()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- if (sessionConfig != null)
- msgs = ((InternalEObject)sessionConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WebapplicationPackage.WEB_APP__SESSION_CONFIG, null, msgs);
- return basicSetSessionConfig((SessionConfig)otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- return ((InternalEList)getServletMappings()).basicAdd(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SERVLETS:
- return ((InternalEList)getServlets()).basicAdd(otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WEB_APP__ICONS:
- return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES:
- return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__RESOURCE_REFS:
- return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__EJB_REFS:
- return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS:
- return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS:
- return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
- return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SERVICE_REFS:
- return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- return ((InternalEList)getErrorPages()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- return basicSetFileList(null, msgs);
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- return ((InternalEList)getTagLibs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- return ((InternalEList)getConstraints()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- return basicSetLoginConfig(null, msgs);
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- return ((InternalEList)getMimeMappings()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- return basicSetSessionConfig(null, msgs);
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- return ((InternalEList)getServletMappings()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SERVLETS:
- return ((InternalEList)getServlets()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__SECURITY_ROLES:
- return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__FILTERS:
- return ((InternalEList)getFilters()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS:
- return ((InternalEList)getFilterMappings()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__LISTENERS:
- return ((InternalEList)getListeners()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS:
- return ((InternalEList)getContextParams()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__JSP_CONFIG:
- return basicSetJspConfig(null, msgs);
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS:
- return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST:
- return basicSetLocalEncodingMappingList(null, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_APP__ICONS:
- return getIcons();
- case WebapplicationPackage.WEB_APP__DISPLAY_NAMES:
- return getDisplayNames();
- case WebapplicationPackage.WEB_APP__DESCRIPTIONS:
- return getDescriptions();
- case WebapplicationPackage.WEB_APP__SMALL_ICON:
- return getSmallIcon();
- case WebapplicationPackage.WEB_APP__LARGE_ICON:
- return getLargeIcon();
- case WebapplicationPackage.WEB_APP__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.WEB_APP__DISPLAY_NAME:
- return getDisplayName();
- case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES:
- return getEnvironmentProperties();
- case WebapplicationPackage.WEB_APP__RESOURCE_REFS:
- return getResourceRefs();
- case WebapplicationPackage.WEB_APP__EJB_REFS:
- return getEjbRefs();
- case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS:
- return getResourceEnvRefs();
- case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS:
- return getEjbLocalRefs();
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
- return getMessageDestinationRefs();
- case WebapplicationPackage.WEB_APP__SERVICE_REFS:
- return getServiceRefs();
- case WebapplicationPackage.WEB_APP__DISTRIBUTABLE:
- return isDistributable() ? Boolean.TRUE : Boolean.FALSE;
- case WebapplicationPackage.WEB_APP__VERSION:
- return getVersion();
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- return getContexts();
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- return getErrorPages();
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- return getFileList();
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- return getTagLibs();
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- return getConstraints();
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- return getLoginConfig();
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- return getMimeMappings();
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- return getSessionConfig();
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- return getServletMappings();
- case WebapplicationPackage.WEB_APP__SERVLETS:
- return getServlets();
- case WebapplicationPackage.WEB_APP__SECURITY_ROLES:
- return getSecurityRoles();
- case WebapplicationPackage.WEB_APP__FILTERS:
- return getFilters();
- case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS:
- return getFilterMappings();
- case WebapplicationPackage.WEB_APP__LISTENERS:
- return getListeners();
- case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS:
- return getContextParams();
- case WebapplicationPackage.WEB_APP__JSP_CONFIG:
- return getJspConfig();
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS:
- return getMessageDestinations();
- case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST:
- return getLocalEncodingMappingList();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_APP__ICONS:
- return icons != null && !icons.isEmpty();
- case WebapplicationPackage.WEB_APP__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- case WebapplicationPackage.WEB_APP__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- case WebapplicationPackage.WEB_APP__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case WebapplicationPackage.WEB_APP__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case WebapplicationPackage.WEB_APP__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.WEB_APP__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES:
- return environmentProperties != null && !environmentProperties.isEmpty();
- case WebapplicationPackage.WEB_APP__RESOURCE_REFS:
- return resourceRefs != null && !resourceRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__EJB_REFS:
- return ejbRefs != null && !ejbRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS:
- return resourceEnvRefs != null && !resourceEnvRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS:
- return ejbLocalRefs != null && !ejbLocalRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
- return messageDestinationRefs != null && !messageDestinationRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__SERVICE_REFS:
- return serviceRefs != null && !serviceRefs.isEmpty();
- case WebapplicationPackage.WEB_APP__DISTRIBUTABLE:
- return isSetDistributable();
- case WebapplicationPackage.WEB_APP__VERSION:
- return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- return contexts != null && !contexts.isEmpty();
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- return errorPages != null && !errorPages.isEmpty();
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- return fileList != null;
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- return tagLibs != null && !tagLibs.isEmpty();
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- return constraints != null && !constraints.isEmpty();
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- return loginConfig != null;
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- return mimeMappings != null && !mimeMappings.isEmpty();
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- return sessionConfig != null;
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- return servletMappings != null && !servletMappings.isEmpty();
- case WebapplicationPackage.WEB_APP__SERVLETS:
- return servlets != null && !servlets.isEmpty();
- case WebapplicationPackage.WEB_APP__SECURITY_ROLES:
- return securityRoles != null && !securityRoles.isEmpty();
- case WebapplicationPackage.WEB_APP__FILTERS:
- return filters != null && !filters.isEmpty();
- case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS:
- return filterMappings != null && !filterMappings.isEmpty();
- case WebapplicationPackage.WEB_APP__LISTENERS:
- return listeners != null && !listeners.isEmpty();
- case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS:
- return contextParams != null && !contextParams.isEmpty();
- case WebapplicationPackage.WEB_APP__JSP_CONFIG:
- return jspConfig != null;
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS:
- return messageDestinations != null && !messageDestinations.isEmpty();
- case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST:
- return localEncodingMappingList != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_APP__ICONS:
- getIcons().clear();
- getIcons().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case WebapplicationPackage.WEB_APP__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case WebapplicationPackage.WEB_APP__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.WEB_APP__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES:
- getEnvironmentProperties().clear();
- getEnvironmentProperties().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__RESOURCE_REFS:
- getResourceRefs().clear();
- getResourceRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__EJB_REFS:
- getEjbRefs().clear();
- getEjbRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS:
- getResourceEnvRefs().clear();
- getResourceEnvRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS:
- getEjbLocalRefs().clear();
- getEjbLocalRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
- getMessageDestinationRefs().clear();
- getMessageDestinationRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SERVICE_REFS:
- getServiceRefs().clear();
- getServiceRefs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__DISTRIBUTABLE:
- setDistributable(((Boolean)newValue).booleanValue());
- return;
- case WebapplicationPackage.WEB_APP__VERSION:
- setVersion((String)newValue);
- return;
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- getContexts().clear();
- getContexts().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- getErrorPages().clear();
- getErrorPages().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- setFileList((WelcomeFileList)newValue);
- return;
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- getTagLibs().clear();
- getTagLibs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- getConstraints().clear();
- getConstraints().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- setLoginConfig((LoginConfig)newValue);
- return;
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- getMimeMappings().clear();
- getMimeMappings().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- setSessionConfig((SessionConfig)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- getServletMappings().clear();
- getServletMappings().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SERVLETS:
- getServlets().clear();
- getServlets().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__SECURITY_ROLES:
- getSecurityRoles().clear();
- getSecurityRoles().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__FILTERS:
- getFilters().clear();
- getFilters().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS:
- getFilterMappings().clear();
- getFilterMappings().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__LISTENERS:
- getListeners().clear();
- getListeners().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS:
- getContextParams().clear();
- getContextParams().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__JSP_CONFIG:
- setJspConfig((JSPConfig)newValue);
- return;
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS:
- getMessageDestinations().clear();
- getMessageDestinations().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST:
- setLocalEncodingMappingList((LocalEncodingMappingList)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_APP__ICONS:
- getIcons().clear();
- return;
- case WebapplicationPackage.WEB_APP__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- case WebapplicationPackage.WEB_APP__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- case WebapplicationPackage.WEB_APP__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_APP__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_APP__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_APP__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_APP__ENVIRONMENT_PROPERTIES:
- getEnvironmentProperties().clear();
- return;
- case WebapplicationPackage.WEB_APP__RESOURCE_REFS:
- getResourceRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__EJB_REFS:
- getEjbRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__RESOURCE_ENV_REFS:
- getResourceEnvRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__EJB_LOCAL_REFS:
- getEjbLocalRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
- getMessageDestinationRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__SERVICE_REFS:
- getServiceRefs().clear();
- return;
- case WebapplicationPackage.WEB_APP__DISTRIBUTABLE:
- unsetDistributable();
- return;
- case WebapplicationPackage.WEB_APP__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_APP__CONTEXTS:
- getContexts().clear();
- return;
- case WebapplicationPackage.WEB_APP__ERROR_PAGES:
- getErrorPages().clear();
- return;
- case WebapplicationPackage.WEB_APP__FILE_LIST:
- setFileList((WelcomeFileList)null);
- return;
- case WebapplicationPackage.WEB_APP__TAG_LIBS:
- getTagLibs().clear();
- return;
- case WebapplicationPackage.WEB_APP__CONSTRAINTS:
- getConstraints().clear();
- return;
- case WebapplicationPackage.WEB_APP__LOGIN_CONFIG:
- setLoginConfig((LoginConfig)null);
- return;
- case WebapplicationPackage.WEB_APP__MIME_MAPPINGS:
- getMimeMappings().clear();
- return;
- case WebapplicationPackage.WEB_APP__SESSION_CONFIG:
- setSessionConfig((SessionConfig)null);
- return;
- case WebapplicationPackage.WEB_APP__SERVLET_MAPPINGS:
- getServletMappings().clear();
- return;
- case WebapplicationPackage.WEB_APP__SERVLETS:
- getServlets().clear();
- return;
- case WebapplicationPackage.WEB_APP__SECURITY_ROLES:
- getSecurityRoles().clear();
- return;
- case WebapplicationPackage.WEB_APP__FILTERS:
- getFilters().clear();
- return;
- case WebapplicationPackage.WEB_APP__FILTER_MAPPINGS:
- getFilterMappings().clear();
- return;
- case WebapplicationPackage.WEB_APP__LISTENERS:
- getListeners().clear();
- return;
- case WebapplicationPackage.WEB_APP__CONTEXT_PARAMS:
- getContextParams().clear();
- return;
- case WebapplicationPackage.WEB_APP__JSP_CONFIG:
- setJspConfig((JSPConfig)null);
- return;
- case WebapplicationPackage.WEB_APP__MESSAGE_DESTINATIONS:
- getMessageDestinations().clear();
- return;
- case WebapplicationPackage.WEB_APP__LOCAL_ENCODING_MAPPING_LIST:
- setLocalEncodingMappingList((LocalEncodingMappingList)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (distributable: ");
- if (distributableESet) result.append(distributable); else result.append("<unset>");
- result.append(", version: ");
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java
deleted file mode 100644
index a9d2bf550..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceFactory.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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
- *******************************************************************************/
-/*
- * Created on Mar 18, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory;
-
-
-/**
- * @author schacher
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class WebAppResourceFactory extends TranslatorResourceFactory {
-
- /**
- * Method registerDtds.
- */
- public static void registerDtds() {
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_SYSTEMID_2_2, "web-app_2_2.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_ALT_SYSTEMID_2_2, "web-app_2.2.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEBAPP_SYSTEMID_2_3, "web-app_2_3.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.WEB_APP_SCHEMA_LOC_2_4, "web-app_2_4.xsd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.JSP_SCHEMA_LOC_2_0, "jsp_2_0.xsd"); //$NON-NLS-1$
- }
-
- /**
- * @param aRendererFactory
- */
- public WebAppResourceFactory(RendererFactory aRendererFactory) {
- super(aRendererFactory);
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer)
- */
- protected TranslatorResource createResource(URI uri, Renderer aRenderer) {
- return new WebAppResourceImpl(uri, aRenderer);
- }
-
- /**
- * Register myself with the Resource.Factory.Registry
- */
- public static void registerWith(RendererFactory aRendererFactory) {
- J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(aRendererFactory));
- }
-
- /**
- * register using the default renderer factory.
- * @see #registerWith(RendererFactory)
- */
- public static void register() {
- registerWith(RendererFactory.getDefaultRendererFactory());
- }
-
- /**
- * register using the default renderer factory.
- * @see #registerWith(RendererFactory)
- */
- public static void register(FileNameResourceFactoryRegistry aRegistry) {
- aRegistry.registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(RendererFactory.getDefaultRendererFactory()));
- }
-
- public static Resource.Factory getRegisteredFactory() {
- return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.WEBAPP_DD_URI_OBJ);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java
deleted file mode 100644
index ca1050f36..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebAppResourceImpl.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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
- *******************************************************************************/
-/*
- * Created on Mar 18, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.model.translator.webapplication.WebAppTranslator;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebAppResource;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.Translator;
-
-/**
- * @author schacher
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class WebAppResourceImpl extends XMLResourceImpl implements WebAppResource {
-
-
- public WebAppResourceImpl(URI uri, Renderer aRenderer) {
- super(uri, aRenderer);
- }
-
- public WebAppResourceImpl(Renderer aRenderer) {
- super(aRenderer);
- }
-
-
- public WebApp getWebApp() {
- return (WebApp) getRootObject();
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID()
- */
- public String getJ2EE_1_2_PublicID() {
- return J2EEConstants.WEBAPP_PUBLICID_2_2;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID()
- */
- public String getJ2EE_1_2_SystemID() {
- return J2EEConstants.WEBAPP_SYSTEMID_2_2;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID()
- */
- public String getJ2EE_1_3_PublicID() {
- return J2EEConstants.WEBAPP_PUBLICID_2_3;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID()
- */
- public String getJ2EE_1_3_SystemID() {
- return J2EEConstants.WEBAPP_SYSTEMID_2_3;
- }
-
- /*
- * @see WebAppResource#isWeb2_2()
- * @deprecated - use getModuleVersionID() and J2EEVersionConstants
- */
- public boolean isWeb2_2() {
- return getModuleVersionID() == WEB_2_2_ID;
- }
- /*
- * @see WebAppResource#isWeb2_3()
- * @deprecated - use getModuleVersionID() and J2EEVersionConstants
- */
- public boolean isWeb2_3() {
- return getModuleVersionID() == WEB_2_3_ID;
- }
- /*
- * @see WebAppResource#isWeb2_4()
- * @deprecated - use getModuleVersionID() and J2EEVersionConstants
- */
- public boolean isWeb2_4() {
- return getModuleVersionID() == WEB_2_4_ID;
- }
-
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#getDoctype()
- */
- public String getDoctype() {
- switch (getJ2EEVersionID()) {
- case (J2EE_1_2_ID) :
- case (J2EE_1_3_ID) :
- return J2EEConstants.WEBAPP_DOCTYPE;
- default :
- return null;
- }
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResource#getType()
- */
- public int getType() {
- return WEB_APP_TYPE;
- }
-
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator()
- */
- public Translator getRootTranslator() {
- return WebAppTranslator.INSTANCE;
- }
- /* Return J2EE version based on module version
- */
- public int getJ2EEVersionID() {
- switch (getModuleVersionID()) {
- case J2EEVersionConstants.WEB_2_2_ID :
- return J2EEVersionConstants.J2EE_1_2_ID;
- case J2EEVersionConstants.WEB_2_3_ID :
- return J2EEVersionConstants.J2EE_1_3_ID;
- case J2EEVersionConstants.WEB_2_4_ID :
- return J2EEVersionConstants.J2EE_1_4_ID;
- default :
- return J2EEVersionConstants.J2EE_1_4_ID;
- }
- }
- /*
- * This directly sets the module version id
- */
- public void setModuleVersionID(int id) {
- super.setVersionID(id);
- switch (id) {
- case (WEB_2_4_ID) :
- super.setDoctypeValues(null, null);
- break;
- case (WEB_2_3_ID) :
- super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- break;
- case (WEB_2_2_ID) :
- super.setDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID());
-
- }
- syncVersionOfRootObject();
- }
- /*
- * Based on the J2EE version, this will set the module version
- */
- public void setJ2EEVersionID(int id) {
- switch (id) {
- case (J2EE_1_4_ID) :
- primSetDoctypeValues(null, null);
- primSetVersionID(WEB_2_4_ID);
- break;
- case (J2EE_1_3_ID) :
- primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- primSetVersionID(WEB_2_3_ID);
- break;
- case (J2EE_1_2_ID) :
- primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID());
- primSetVersionID(WEB_2_2_ID);
- }
- syncVersionOfRootObject();
- }
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID()
- */
- protected int getDefaultVersionID() {
- return WEB_2_4_ID;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject()
- */
- protected void syncVersionOfRootObject() {
- WebApp app = getWebApp();
- if (app == null)
- return;
-
- String version = app.getVersion();
- String newVersion = getModuleVersionString();
- if (!newVersion.equals(version))
- app.setVersion(newVersion);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java
deleted file mode 100644
index 727816379..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebResourceCollectionImpl.java
+++ /dev/null
@@ -1,496 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-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.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EDataTypeEList;
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-
-/**
- * The web-resource-collection element is used to identify a subset of the resources and HTTP methods on those resources within a web application to which a security constraint applies. If no HTTP methods are specified, then the security constraint applies to all HTTP methods.
-
- */
-public class WebResourceCollectionImpl extends EObjectImpl implements WebResourceCollection, EObject {
-
- /**
- * The default value of the '{@link #getWebResourceName() <em>Web Resource Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWebResourceName()
- * @generated
- * @ordered
- */
- protected static final String WEB_RESOURCE_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String webResourceName = WEB_RESOURCE_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The cached value of the '{@link #getUrlPattern() <em>Url Pattern</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUrlPattern()
- * @generated
- * @ordered
- */
- protected EList urlPattern = null;
-
- /**
- * The cached value of the '{@link #getHttpMethod() <em>Http Method</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHttpMethod()
- * @generated
- * @ordered
- */
- protected EList httpMethod = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList urLs = null;
- /**
- * 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 #getHTTPs() <em>HTT Ps</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHTTPs()
- * @generated
- * @ordered
- */
- protected EList httPs = null;
-
- public WebResourceCollectionImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getWebResourceCollection();
- }
-
-/**
- * addHTTP method comment.
- */
-public void addHTTP(java.lang.String ahttpMethod) {
- HTTPMethodType http = getFactory().createHTTPMethodType();
- http.setHttpMethod(ahttpMethod);
- getHTTPs().add(http);
-}
-/**
- * addURL method comment.
- */
-public void addURL(java.lang.String aurlPattern) {
- URLPatternType url = getFactory().createURLPatternType();
- url.setUrlPattern(aurlPattern);
- getURLs().add(url);
-}
-public WebapplicationFactory getFactory() {
- return ((WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI)).getWebapplicationFactory();
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The web-resource-name contains the name of this web resource collection
- */
- public String getWebResourceName() {
- return webResourceName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebResourceName(String newWebResourceName) {
- String oldWebResourceName = webResourceName;
- webResourceName = newWebResourceName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME, oldWebResourceName, webResourceName));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getUrlPattern() {
- if (urlPattern == null) {
- urlPattern = new EDataTypeEList(String.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN);
- }
- return urlPattern;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getHttpMethod() {
- if (httpMethod == null) {
- httpMethod = new EDataTypeUniqueEList(HTTPMethodTypeEnum.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD);
- }
- return httpMethod;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public SecurityConstraint getSecConstraint() {
- if (eContainerFeatureID != WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT) return null;
- return (SecurityConstraint)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSecConstraint(SecurityConstraint newSecConstraint) {
- if (newSecConstraint != eContainer || (eContainerFeatureID != WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT && newSecConstraint != null)) {
- if (EcoreUtil.isAncestor(this, newSecConstraint))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newSecConstraint != null)
- msgs = ((InternalEObject)newSecConstraint).eInverseAdd(this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, SecurityConstraint.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newSecConstraint, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, newSecConstraint, newSecConstraint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * @version J2EE1.4 deprecated, use getUrlPattern()
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getURLs() {
- if (urLs == null) {
- urLs = new EObjectContainmentWithInverseEList(URLPatternType.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS, WebapplicationPackage.URL_PATTERN_TYPE__RES_COLLECTION);
- }
- return urLs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * @version J2EE1.4 deprecated, use getHttpMethods()
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getHTTPs() {
- if (httPs == null) {
- httPs = new EObjectContainmentEList(HTTPMethodType.class, this, WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS);
- }
- return httPs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- return ((InternalEList)getURLs()).basicAdd(otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- return eBasicSetContainer(null, WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT, msgs);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- return ((InternalEList)getURLs()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS:
- return ((InternalEList)getHTTPs()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- return eContainer.eInverseRemove(this, WebapplicationPackage.SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS, SecurityConstraint.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME:
- return getWebResourceName();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION:
- return getDescription();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN:
- return getUrlPattern();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD:
- return getHttpMethod();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- return getSecConstraint();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- return getURLs();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS:
- return getDescriptions();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS:
- return getHTTPs();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME:
- return WEB_RESOURCE_NAME_EDEFAULT == null ? webResourceName != null : !WEB_RESOURCE_NAME_EDEFAULT.equals(webResourceName);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN:
- return urlPattern != null && !urlPattern.isEmpty();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD:
- return httpMethod != null && !httpMethod.isEmpty();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- return getSecConstraint() != null;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- return urLs != null && !urLs.isEmpty();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS:
- return httPs != null && !httPs.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME:
- setWebResourceName((String)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN:
- getUrlPattern().clear();
- getUrlPattern().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD:
- getHttpMethod().clear();
- getHttpMethod().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- getURLs().clear();
- getURLs().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS:
- getHTTPs().clear();
- getHTTPs().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME:
- setWebResourceName(WEB_RESOURCE_NAME_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__URL_PATTERN:
- getUrlPattern().clear();
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTTP_METHOD:
- getHttpMethod().clear();
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT:
- setSecConstraint((SecurityConstraint)null);
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__UR_LS:
- getURLs().clear();
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION__HTT_PS:
- getHTTPs().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (webResourceName: ");
- result.append(webResourceName);
- result.append(", description: ");
- result.append(description);
- result.append(", urlPattern: ");
- result.append(urlPattern);
- result.append(", httpMethod: ");
- result.append(httpMethod);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java
deleted file mode 100644
index a4682d8e2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebTypeImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.webapplication.WebType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-
-/**
- * @generated
- */
-public abstract class WebTypeImpl extends EObjectImpl implements WebType {
-
- public WebTypeImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getWebType();
- }
-
-/**
- * isJspType method comment.
- */
-public boolean isJspType() {
- return false;
-}
-/**
- * isServletType method comment.
- */
-public boolean isServletType() {
- return false;
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java
deleted file mode 100644
index c7c39b8ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationFactoryImpl.java
+++ /dev/null
@@ -1,418 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.AuthMethodKind;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.DispatcherType;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.ResAuthServletType;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-/**
- * @generated
- */
-public class WebapplicationFactoryImpl extends EFactoryImpl implements WebapplicationFactory{
-
- public static final String MM_VERSION = "1.1";//$NON-NLS-1$
-
- public WebapplicationFactoryImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case WebapplicationPackage.WEB_APP: return createWebApp();
- case WebapplicationPackage.CONTEXT_PARAM: return createContextParam();
- case WebapplicationPackage.SERVLET: return createServlet();
- case WebapplicationPackage.SERVLET_MAPPING: return createServletMapping();
- case WebapplicationPackage.SESSION_CONFIG: return createSessionConfig();
- case WebapplicationPackage.MIME_MAPPING: return createMimeMapping();
- case WebapplicationPackage.WELCOME_FILE_LIST: return createWelcomeFileList();
- case WebapplicationPackage.ERROR_PAGE: return createErrorPage();
- case WebapplicationPackage.TAG_LIB_REF: return createTagLibRef();
- case WebapplicationPackage.SECURITY_CONSTRAINT: return createSecurityConstraint();
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION: return createWebResourceCollection();
- case WebapplicationPackage.AUTH_CONSTRAINT: return createAuthConstraint();
- case WebapplicationPackage.USER_DATA_CONSTRAINT: return createUserDataConstraint();
- case WebapplicationPackage.LOGIN_CONFIG: return createLoginConfig();
- case WebapplicationPackage.FORM_LOGIN_CONFIG: return createFormLoginConfig();
- case WebapplicationPackage.INIT_PARAM: return createInitParam();
- case WebapplicationPackage.SERVLET_TYPE: return createServletType();
- case WebapplicationPackage.JSP_TYPE: return createJSPType();
- case WebapplicationPackage.URL_PATTERN_TYPE: return createURLPatternType();
- case WebapplicationPackage.ROLE_NAME_TYPE: return createRoleNameType();
- case WebapplicationPackage.WELCOME_FILE: return createWelcomeFile();
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE: return createExceptionTypeErrorPage();
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE: return createErrorCodeErrorPage();
- case WebapplicationPackage.FILTER_MAPPING: return createFilterMapping();
- case WebapplicationPackage.FILTER: return createFilter();
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST: return createLocalEncodingMappingList();
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING: return createLocalEncodingMapping();
- case WebapplicationPackage.HTTP_METHOD_TYPE: return createHTTPMethodType();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case WebapplicationPackage.RES_AUTH_SERVLET_TYPE: {
- ResAuthServletType result = ResAuthServletType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
- case WebapplicationPackage.HTTP_METHOD_TYPE_ENUM: {
- HTTPMethodTypeEnum result = HTTPMethodTypeEnum.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
- case WebapplicationPackage.TRANSPORT_GUARANTEE_TYPE: {
- TransportGuaranteeType result = TransportGuaranteeType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
- case WebapplicationPackage.DISPATCHER_TYPE: {
- DispatcherType result = DispatcherType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
- case WebapplicationPackage.AUTH_METHOD_KIND: {
- AuthMethodKind result = AuthMethodKind.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case WebapplicationPackage.RES_AUTH_SERVLET_TYPE:
- return instanceValue == null ? null : instanceValue.toString();
- case WebapplicationPackage.HTTP_METHOD_TYPE_ENUM:
- return instanceValue == null ? null : instanceValue.toString();
- case WebapplicationPackage.TRANSPORT_GUARANTEE_TYPE:
- return instanceValue == null ? null : instanceValue.toString();
- case WebapplicationPackage.DISPATCHER_TYPE:
- return instanceValue == null ? null : instanceValue.toString();
- case WebapplicationPackage.AUTH_METHOD_KIND:
- return instanceValue == null ? null : instanceValue.toString();
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
-public static WebapplicationFactory getActiveFactory() {
- return (WebapplicationFactory) getPackage().getEFactoryInstance();
-}
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WebApp createWebApp() {
- WebAppImpl webApp = new WebAppImpl();
- return webApp;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ContextParam createContextParam() {
- ContextParamImpl contextParam = new ContextParamImpl();
- return contextParam;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ErrorPage createErrorPage() {
- ErrorPageImpl errorPage = new ErrorPageImpl();
- return errorPage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TagLibRef createTagLibRef() {
- TagLibRefImpl tagLibRef = new TagLibRefImpl();
- return tagLibRef;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ExceptionTypeErrorPage createExceptionTypeErrorPage() {
- ExceptionTypeErrorPageImpl exceptionTypeErrorPage = new ExceptionTypeErrorPageImpl();
- return exceptionTypeErrorPage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ErrorCodeErrorPage createErrorCodeErrorPage() {
- ErrorCodeErrorPageImpl errorCodeErrorPage = new ErrorCodeErrorPageImpl();
- return errorCodeErrorPage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WelcomeFileList createWelcomeFileList() {
- WelcomeFileListImpl welcomeFileList = new WelcomeFileListImpl();
- return welcomeFileList;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WelcomeFile createWelcomeFile() {
- WelcomeFileImpl welcomeFile = new WelcomeFileImpl();
- return welcomeFile;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public SecurityConstraint createSecurityConstraint() {
- SecurityConstraintImpl securityConstraint = new SecurityConstraintImpl();
- return securityConstraint;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WebResourceCollection createWebResourceCollection() {
- WebResourceCollectionImpl webResourceCollection = new WebResourceCollectionImpl();
- return webResourceCollection;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public URLPatternType createURLPatternType() {
- URLPatternTypeImpl urlPatternType = new URLPatternTypeImpl();
- return urlPatternType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public AuthConstraint createAuthConstraint() {
- AuthConstraintImpl authConstraint = new AuthConstraintImpl();
- return authConstraint;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public UserDataConstraint createUserDataConstraint() {
- UserDataConstraintImpl userDataConstraint = new UserDataConstraintImpl();
- return userDataConstraint;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public LoginConfig createLoginConfig() {
- LoginConfigImpl loginConfig = new LoginConfigImpl();
- return loginConfig;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public FormLoginConfig createFormLoginConfig() {
- FormLoginConfigImpl formLoginConfig = new FormLoginConfigImpl();
- return formLoginConfig;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public MimeMapping createMimeMapping() {
- MimeMappingImpl mimeMapping = new MimeMappingImpl();
- return mimeMapping;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public SessionConfig createSessionConfig() {
- SessionConfigImpl sessionConfig = new SessionConfigImpl();
- return sessionConfig;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ServletMapping createServletMapping() {
- ServletMappingImpl servletMapping = new ServletMappingImpl();
- return servletMapping;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Servlet createServlet() {
- ServletImpl servlet = new ServletImpl();
- return servlet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ServletType createServletType() {
- ServletTypeImpl servletType = new ServletTypeImpl();
- return servletType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public JSPType createJSPType() {
- JSPTypeImpl jspType = new JSPTypeImpl();
- return jspType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public InitParam createInitParam() {
- InitParamImpl initParam = new InitParamImpl();
- return initParam;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Filter createFilter() {
- FilterImpl filter = new FilterImpl();
- return filter;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public FilterMapping createFilterMapping() {
- FilterMappingImpl filterMapping = new FilterMappingImpl();
- return filterMapping;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LocalEncodingMappingList createLocalEncodingMappingList() {
- LocalEncodingMappingListImpl localEncodingMappingList = new LocalEncodingMappingListImpl();
- return localEncodingMappingList;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LocalEncodingMapping createLocalEncodingMapping() {
- LocalEncodingMappingImpl localEncodingMapping = new LocalEncodingMappingImpl();
- return localEncodingMapping;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HTTPMethodType createHTTPMethodType() {
- HTTPMethodTypeImpl httpMethodType = new HTTPMethodTypeImpl();
- return httpMethodType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public RoleNameType createRoleNameType() {
- RoleNameTypeImpl roleNameType = new RoleNameTypeImpl();
- return roleNameType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WebapplicationPackage getWebapplicationPackage() {
- return (WebapplicationPackage)getEPackage();
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static WebapplicationPackage getPackage() {
- return WebapplicationPackage.eINSTANCE;
- }
-
-}
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java
deleted file mode 100644
index d07f3c66f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WebapplicationPackageImpl.java
+++ /dev/null
@@ -1,1840 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.emf.ecore.impl.EcorePackageImpl;
-import org.eclipse.jem.java.JavaRefPackage;
-import org.eclipse.jem.java.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.AuthMethodKind;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.DispatcherType;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodTypeEnum;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.ResAuthServletType;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.TransportGuaranteeType;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl;
-
-
-public class WebapplicationPackageImpl extends EPackageImpl implements WebapplicationPackage, EPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass webAppEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass contextParamEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass servletEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass servletMappingEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass sessionConfigEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass mimeMappingEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass welcomeFileListEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass errorPageEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass tagLibRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass securityConstraintEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass webResourceCollectionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass authConstraintEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass userDataConstraintEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass loginConfigEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass formLoginConfigEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass initParamEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass webTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass servletTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass jspTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass urlPatternTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass roleNameTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass welcomeFileEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass exceptionTypeErrorPageEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass errorCodeErrorPageEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass filterMappingEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass filterEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass localEncodingMappingListEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass localEncodingMappingEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass httpMethodTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum resAuthServletTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum httpMethodTypeEnumEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum transportGuaranteeTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum dispatcherTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum authMethodKindEEnum = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- private WebapplicationPackageImpl() {
- super(eNS_URI, WebapplicationFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static WebapplicationPackage init() {
- if (isInited) return (WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI);
-
- // Obtain or create and register package
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WebapplicationPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
-
- // Create package meta-data objects
- theWebapplicationPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theApplicationPackage_1.createPackageContents();
- theCommonPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
-
- // Initialize created meta-data
- theWebapplicationPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theApplicationPackage_1.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theWebapplicationPackage.freeze();
-
- return theWebapplicationPackage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWebApp() {
- return webAppEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getWebApp_Distributable() {
- return (EAttribute)webAppEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getWebApp_Version() {
- return (EAttribute)webAppEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_Contexts() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_ErrorPages() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_FileList() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_TagLibs() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_Constraints() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_LoginConfig() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_MimeMappings() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_SessionConfig() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_ServletMappings() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(10);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_Servlets() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(11);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_SecurityRoles() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(12);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_Filters() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(13);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_FilterMappings() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(14);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebApp_Listeners() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(15);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebApp_ContextParams() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(16);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebApp_JspConfig() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(17);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebApp_MessageDestinations() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(18);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebApp_LocalEncodingMappingList() {
- return (EReference)webAppEClass.getEStructuralFeatures().get(19);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getContextParam() {
- return contextParamEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getContextParam_ParamName() {
- return (EAttribute)contextParamEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getContextParam_ParamValue() {
- return (EAttribute)contextParamEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getContextParam_Description() {
- return (EAttribute)contextParamEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getContextParam_WebApp() {
- return (EReference)contextParamEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getErrorPage() {
- return errorPageEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getErrorPage_Location() {
- return (EAttribute)errorPageEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getErrorPage_WebApp() {
- return (EReference)errorPageEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getExceptionTypeErrorPage() {
- return exceptionTypeErrorPageEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getExceptionTypeErrorPage_ExceptionType() {
- return (EReference)exceptionTypeErrorPageEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getErrorCodeErrorPage() {
- return errorCodeErrorPageEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getErrorCodeErrorPage_ErrorCode() {
- return (EAttribute)errorCodeErrorPageEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWelcomeFileList() {
- return welcomeFileListEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWelcomeFileList_WebApp() {
- return (EReference)welcomeFileListEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWelcomeFileList_File() {
- return (EReference)welcomeFileListEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWelcomeFile() {
- return welcomeFileEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getWelcomeFile_WelcomeFile() {
- return (EAttribute)welcomeFileEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWelcomeFile_FileList() {
- return (EReference)welcomeFileEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getTagLibRef() {
- return tagLibRefEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getTagLibRef_TaglibURI() {
- return (EAttribute)tagLibRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getTagLibRef_TaglibLocation() {
- return (EAttribute)tagLibRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTagLibRef_WebApp() {
- return (EReference)tagLibRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSecurityConstraint() {
- return securityConstraintEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSecurityConstraint_DisplayName() {
- return (EAttribute)securityConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getSecurityConstraint_WebApp() {
- return (EReference)securityConstraintEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getSecurityConstraint_WebResourceCollections() {
- return (EReference)securityConstraintEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getSecurityConstraint_AuthConstraint() {
- return (EReference)securityConstraintEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getSecurityConstraint_UserDataConstraint() {
- return (EReference)securityConstraintEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSecurityConstraint_DisplayNames() {
- return (EReference)securityConstraintEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWebResourceCollection() {
- return webResourceCollectionEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getWebResourceCollection_WebResourceName() {
- return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getWebResourceCollection_Description() {
- return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getWebResourceCollection_UrlPattern() {
- return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getWebResourceCollection_HttpMethod() {
- return (EAttribute)webResourceCollectionEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebResourceCollection_SecConstraint() {
- return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getWebResourceCollection_URLs() {
- return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebResourceCollection_Descriptions() {
- return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWebResourceCollection_HTTPs() {
- return (EReference)webResourceCollectionEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getURLPatternType() {
- return urlPatternTypeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getURLPatternType_UrlPattern() {
- return (EAttribute)urlPatternTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getURLPatternType_ResCollection() {
- return (EReference)urlPatternTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getHTTPMethodType() {
- return httpMethodTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getHTTPMethodType_HttpMethod() {
- return (EAttribute)httpMethodTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getAuthConstraint() {
- return authConstraintEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthConstraint_Description() {
- return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthConstraint_Roles() {
- return (EAttribute)authConstraintEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getAuthConstraint_SecConstraint() {
- return (EReference)authConstraintEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAuthConstraint_Descriptions() {
- return (EReference)authConstraintEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getUserDataConstraint() {
- return userDataConstraintEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getUserDataConstraint_Description() {
- return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getUserDataConstraint_TransportGuarantee() {
- return (EAttribute)userDataConstraintEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getUserDataConstraint_SecConstraint() {
- return (EReference)userDataConstraintEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getUserDataConstraint_Descriptions() {
- return (EReference)userDataConstraintEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getLoginConfig() {
- return loginConfigEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getLoginConfig_AuthMethod() {
- return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getLoginConfig_RealmName() {
- return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLoginConfig_AuthorizationMethod() {
- return (EAttribute)loginConfigEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getLoginConfig_WebApp() {
- return (EReference)loginConfigEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getLoginConfig_FormLoginConfig() {
- return (EReference)loginConfigEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getFormLoginConfig() {
- return formLoginConfigEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getFormLoginConfig_FormLoginPage() {
- return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getFormLoginConfig_FormErrorPage() {
- return (EAttribute)formLoginConfigEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getFormLoginConfig_LoginConfig() {
- return (EReference)formLoginConfigEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getMimeMapping() {
- return mimeMappingEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getMimeMapping_Extension() {
- return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getMimeMapping_MimeType() {
- return (EAttribute)mimeMappingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getMimeMapping_WebApp() {
- return (EReference)mimeMappingEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSessionConfig() {
- return sessionConfigEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSessionConfig_SessionTimeout() {
- return (EAttribute)sessionConfigEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getSessionConfig_WebApp() {
- return (EReference)sessionConfigEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getServletMapping() {
- return servletMappingEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getServletMapping_UrlPattern() {
- return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getServletMapping_Name() {
- return (EAttribute)servletMappingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServletMapping_WebApp() {
- return (EReference)servletMappingEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServletMapping_Servlet() {
- return (EReference)servletMappingEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getServlet() {
- return servletEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getServlet_ServletName() {
- return (EAttribute)servletEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getServlet_LoadOnStartup() {
- return (EAttribute)servletEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServlet_WebApp() {
- return (EReference)servletEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServlet_WebType() {
- return (EReference)servletEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServlet_Params() {
- return (EReference)servletEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServlet_SecurityRoleRefs() {
- return (EReference)servletEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getServlet_RunAs() {
- return (EReference)servletEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getServlet_InitParams() {
- return (EReference)servletEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getWebType() {
- return webTypeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getServletType() {
- return servletTypeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getServletType_ClassName() {
- return (EAttribute)servletTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getJSPType() {
- return jspTypeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getJSPType_JspFile() {
- return (EAttribute)jspTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getInitParam() {
- return initParamEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getInitParam_ParamName() {
- return (EAttribute)initParamEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getInitParam_ParamValue() {
- return (EAttribute)initParamEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getInitParam_Description() {
- return (EAttribute)initParamEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getFilter() {
- return filterEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getFilter_Name() {
- return (EAttribute)filterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getFilter_InitParams() {
- return (EReference)filterEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getFilter_FilterClass() {
- return (EReference)filterEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getFilter_InitParamValues() {
- return (EReference)filterEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getFilterMapping() {
- return filterMappingEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getFilterMapping_UrlPattern() {
- return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getFilterMapping_DispatcherType() {
- return (EAttribute)filterMappingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getFilterMapping_Filter() {
- return (EReference)filterMappingEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getFilterMapping_Servlet() {
- return (EReference)filterMappingEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLocalEncodingMappingList() {
- return localEncodingMappingListEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getLocalEncodingMappingList_LocalEncodingMappings() {
- return (EReference)localEncodingMappingListEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLocalEncodingMapping() {
- return localEncodingMappingEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLocalEncodingMapping_Locale() {
- return (EAttribute)localEncodingMappingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLocalEncodingMapping_Encoding() {
- return (EAttribute)localEncodingMappingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getResAuthServletType() {
- return resAuthServletTypeEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getHTTPMethodTypeEnum() {
- return httpMethodTypeEnumEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getRoleNameType() {
- return roleNameTypeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getRoleNameType_RoleName() {
- return (EAttribute)roleNameTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getTransportGuaranteeType() {
- return transportGuaranteeTypeEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getDispatcherType() {
- return dispatcherTypeEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getAuthMethodKind() {
- return authMethodKindEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public WebapplicationFactory getWebapplicationFactory() {
- return (WebapplicationFactory)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
- webAppEClass = createEClass(WEB_APP);
- createEAttribute(webAppEClass, WEB_APP__DISTRIBUTABLE);
- createEAttribute(webAppEClass, WEB_APP__VERSION);
- createEReference(webAppEClass, WEB_APP__CONTEXTS);
- createEReference(webAppEClass, WEB_APP__ERROR_PAGES);
- createEReference(webAppEClass, WEB_APP__FILE_LIST);
- createEReference(webAppEClass, WEB_APP__TAG_LIBS);
- createEReference(webAppEClass, WEB_APP__CONSTRAINTS);
- createEReference(webAppEClass, WEB_APP__LOGIN_CONFIG);
- createEReference(webAppEClass, WEB_APP__MIME_MAPPINGS);
- createEReference(webAppEClass, WEB_APP__SESSION_CONFIG);
- createEReference(webAppEClass, WEB_APP__SERVLET_MAPPINGS);
- createEReference(webAppEClass, WEB_APP__SERVLETS);
- createEReference(webAppEClass, WEB_APP__SECURITY_ROLES);
- createEReference(webAppEClass, WEB_APP__FILTERS);
- createEReference(webAppEClass, WEB_APP__FILTER_MAPPINGS);
- createEReference(webAppEClass, WEB_APP__LISTENERS);
- createEReference(webAppEClass, WEB_APP__CONTEXT_PARAMS);
- createEReference(webAppEClass, WEB_APP__JSP_CONFIG);
- createEReference(webAppEClass, WEB_APP__MESSAGE_DESTINATIONS);
- createEReference(webAppEClass, WEB_APP__LOCAL_ENCODING_MAPPING_LIST);
-
- contextParamEClass = createEClass(CONTEXT_PARAM);
- createEAttribute(contextParamEClass, CONTEXT_PARAM__PARAM_NAME);
- createEAttribute(contextParamEClass, CONTEXT_PARAM__PARAM_VALUE);
- createEAttribute(contextParamEClass, CONTEXT_PARAM__DESCRIPTION);
- createEReference(contextParamEClass, CONTEXT_PARAM__WEB_APP);
-
- servletEClass = createEClass(SERVLET);
- createEAttribute(servletEClass, SERVLET__SERVLET_NAME);
- createEAttribute(servletEClass, SERVLET__LOAD_ON_STARTUP);
- createEReference(servletEClass, SERVLET__WEB_APP);
- createEReference(servletEClass, SERVLET__WEB_TYPE);
- createEReference(servletEClass, SERVLET__PARAMS);
- createEReference(servletEClass, SERVLET__SECURITY_ROLE_REFS);
- createEReference(servletEClass, SERVLET__RUN_AS);
- createEReference(servletEClass, SERVLET__INIT_PARAMS);
-
- servletMappingEClass = createEClass(SERVLET_MAPPING);
- createEAttribute(servletMappingEClass, SERVLET_MAPPING__URL_PATTERN);
- createEAttribute(servletMappingEClass, SERVLET_MAPPING__NAME);
- createEReference(servletMappingEClass, SERVLET_MAPPING__WEB_APP);
- createEReference(servletMappingEClass, SERVLET_MAPPING__SERVLET);
-
- sessionConfigEClass = createEClass(SESSION_CONFIG);
- createEAttribute(sessionConfigEClass, SESSION_CONFIG__SESSION_TIMEOUT);
- createEReference(sessionConfigEClass, SESSION_CONFIG__WEB_APP);
-
- mimeMappingEClass = createEClass(MIME_MAPPING);
- createEAttribute(mimeMappingEClass, MIME_MAPPING__EXTENSION);
- createEAttribute(mimeMappingEClass, MIME_MAPPING__MIME_TYPE);
- createEReference(mimeMappingEClass, MIME_MAPPING__WEB_APP);
-
- welcomeFileListEClass = createEClass(WELCOME_FILE_LIST);
- createEReference(welcomeFileListEClass, WELCOME_FILE_LIST__WEB_APP);
- createEReference(welcomeFileListEClass, WELCOME_FILE_LIST__FILE);
-
- errorPageEClass = createEClass(ERROR_PAGE);
- createEAttribute(errorPageEClass, ERROR_PAGE__LOCATION);
- createEReference(errorPageEClass, ERROR_PAGE__WEB_APP);
-
- tagLibRefEClass = createEClass(TAG_LIB_REF);
- createEAttribute(tagLibRefEClass, TAG_LIB_REF__TAGLIB_URI);
- createEAttribute(tagLibRefEClass, TAG_LIB_REF__TAGLIB_LOCATION);
- createEReference(tagLibRefEClass, TAG_LIB_REF__WEB_APP);
-
- securityConstraintEClass = createEClass(SECURITY_CONSTRAINT);
- createEAttribute(securityConstraintEClass, SECURITY_CONSTRAINT__DISPLAY_NAME);
- createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__WEB_APP);
- createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__WEB_RESOURCE_COLLECTIONS);
- createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__AUTH_CONSTRAINT);
- createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__USER_DATA_CONSTRAINT);
- createEReference(securityConstraintEClass, SECURITY_CONSTRAINT__DISPLAY_NAMES);
-
- webResourceCollectionEClass = createEClass(WEB_RESOURCE_COLLECTION);
- createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__WEB_RESOURCE_NAME);
- createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__DESCRIPTION);
- createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__URL_PATTERN);
- createEAttribute(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__HTTP_METHOD);
- createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__SEC_CONSTRAINT);
- createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__UR_LS);
- createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__DESCRIPTIONS);
- createEReference(webResourceCollectionEClass, WEB_RESOURCE_COLLECTION__HTT_PS);
-
- authConstraintEClass = createEClass(AUTH_CONSTRAINT);
- createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__DESCRIPTION);
- createEAttribute(authConstraintEClass, AUTH_CONSTRAINT__ROLES);
- createEReference(authConstraintEClass, AUTH_CONSTRAINT__SEC_CONSTRAINT);
- createEReference(authConstraintEClass, AUTH_CONSTRAINT__DESCRIPTIONS);
-
- userDataConstraintEClass = createEClass(USER_DATA_CONSTRAINT);
- createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__DESCRIPTION);
- createEAttribute(userDataConstraintEClass, USER_DATA_CONSTRAINT__TRANSPORT_GUARANTEE);
- createEReference(userDataConstraintEClass, USER_DATA_CONSTRAINT__SEC_CONSTRAINT);
- createEReference(userDataConstraintEClass, USER_DATA_CONSTRAINT__DESCRIPTIONS);
-
- loginConfigEClass = createEClass(LOGIN_CONFIG);
- createEAttribute(loginConfigEClass, LOGIN_CONFIG__AUTH_METHOD);
- createEAttribute(loginConfigEClass, LOGIN_CONFIG__REALM_NAME);
- createEAttribute(loginConfigEClass, LOGIN_CONFIG__AUTHORIZATION_METHOD);
- createEReference(loginConfigEClass, LOGIN_CONFIG__WEB_APP);
- createEReference(loginConfigEClass, LOGIN_CONFIG__FORM_LOGIN_CONFIG);
-
- formLoginConfigEClass = createEClass(FORM_LOGIN_CONFIG);
- createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_LOGIN_PAGE);
- createEAttribute(formLoginConfigEClass, FORM_LOGIN_CONFIG__FORM_ERROR_PAGE);
- createEReference(formLoginConfigEClass, FORM_LOGIN_CONFIG__LOGIN_CONFIG);
-
- initParamEClass = createEClass(INIT_PARAM);
- createEAttribute(initParamEClass, INIT_PARAM__PARAM_NAME);
- createEAttribute(initParamEClass, INIT_PARAM__PARAM_VALUE);
- createEAttribute(initParamEClass, INIT_PARAM__DESCRIPTION);
-
- webTypeEClass = createEClass(WEB_TYPE);
-
- servletTypeEClass = createEClass(SERVLET_TYPE);
- createEAttribute(servletTypeEClass, SERVLET_TYPE__CLASS_NAME);
-
- jspTypeEClass = createEClass(JSP_TYPE);
- createEAttribute(jspTypeEClass, JSP_TYPE__JSP_FILE);
-
- urlPatternTypeEClass = createEClass(URL_PATTERN_TYPE);
- createEAttribute(urlPatternTypeEClass, URL_PATTERN_TYPE__URL_PATTERN);
- createEReference(urlPatternTypeEClass, URL_PATTERN_TYPE__RES_COLLECTION);
-
- roleNameTypeEClass = createEClass(ROLE_NAME_TYPE);
- createEAttribute(roleNameTypeEClass, ROLE_NAME_TYPE__ROLE_NAME);
-
- welcomeFileEClass = createEClass(WELCOME_FILE);
- createEAttribute(welcomeFileEClass, WELCOME_FILE__WELCOME_FILE);
- createEReference(welcomeFileEClass, WELCOME_FILE__FILE_LIST);
-
- exceptionTypeErrorPageEClass = createEClass(EXCEPTION_TYPE_ERROR_PAGE);
- createEReference(exceptionTypeErrorPageEClass, EXCEPTION_TYPE_ERROR_PAGE__EXCEPTION_TYPE);
-
- errorCodeErrorPageEClass = createEClass(ERROR_CODE_ERROR_PAGE);
- createEAttribute(errorCodeErrorPageEClass, ERROR_CODE_ERROR_PAGE__ERROR_CODE);
-
- filterMappingEClass = createEClass(FILTER_MAPPING);
- createEAttribute(filterMappingEClass, FILTER_MAPPING__URL_PATTERN);
- createEAttribute(filterMappingEClass, FILTER_MAPPING__DISPATCHER_TYPE);
- createEReference(filterMappingEClass, FILTER_MAPPING__FILTER);
- createEReference(filterMappingEClass, FILTER_MAPPING__SERVLET);
-
- filterEClass = createEClass(FILTER);
- createEAttribute(filterEClass, FILTER__NAME);
- createEReference(filterEClass, FILTER__INIT_PARAMS);
- createEReference(filterEClass, FILTER__FILTER_CLASS);
- createEReference(filterEClass, FILTER__INIT_PARAM_VALUES);
-
- localEncodingMappingListEClass = createEClass(LOCAL_ENCODING_MAPPING_LIST);
- createEReference(localEncodingMappingListEClass, LOCAL_ENCODING_MAPPING_LIST__LOCAL_ENCODING_MAPPINGS);
-
- localEncodingMappingEClass = createEClass(LOCAL_ENCODING_MAPPING);
- createEAttribute(localEncodingMappingEClass, LOCAL_ENCODING_MAPPING__LOCALE);
- createEAttribute(localEncodingMappingEClass, LOCAL_ENCODING_MAPPING__ENCODING);
-
- httpMethodTypeEClass = createEClass(HTTP_METHOD_TYPE);
- createEAttribute(httpMethodTypeEClass, HTTP_METHOD_TYPE__HTTP_METHOD);
-
- // Create enums
- resAuthServletTypeEEnum = createEEnum(RES_AUTH_SERVLET_TYPE);
- httpMethodTypeEnumEEnum = createEEnum(HTTP_METHOD_TYPE_ENUM);
- transportGuaranteeTypeEEnum = createEEnum(TRANSPORT_GUARANTEE_TYPE);
- dispatcherTypeEEnum = createEEnum(DISPATCHER_TYPE);
- authMethodKindEEnum = createEEnum(AUTH_METHOD_KIND);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
- JspPackageImpl theJspPackage = (JspPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI);
- JavaRefPackageImpl theJavaRefPackage = (JavaRefPackageImpl)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI);
-
- // Add supertypes to classes
- webAppEClass.getESuperTypes().add(theCommonPackage.getJNDIEnvRefsGroup());
- servletEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup());
- servletTypeEClass.getESuperTypes().add(this.getWebType());
- jspTypeEClass.getESuperTypes().add(this.getWebType());
- exceptionTypeErrorPageEClass.getESuperTypes().add(this.getErrorPage());
- errorCodeErrorPageEClass.getESuperTypes().add(this.getErrorPage());
- filterEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup());
-
- // Initialize classes and features; add operations and parameters
- initEClass(webAppEClass, WebApp.class, "WebApp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getWebApp_Distributable(), ecorePackage.getEBoolean(), "distributable", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getWebApp_Version(), ecorePackage.getEString(), "version", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_Contexts(), this.getContextParam(), this.getContextParam_WebApp(), "contexts", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_ErrorPages(), this.getErrorPage(), this.getErrorPage_WebApp(), "errorPages", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_WebApp(), "fileList", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_TagLibs(), this.getTagLibRef(), this.getTagLibRef_WebApp(), "tagLibs", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_Constraints(), this.getSecurityConstraint(), this.getSecurityConstraint_WebApp(), "constraints", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_WebApp(), "loginConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_MimeMappings(), this.getMimeMapping(), this.getMimeMapping_WebApp(), "mimeMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_SessionConfig(), this.getSessionConfig(), this.getSessionConfig_WebApp(), "sessionConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_ServletMappings(), this.getServletMapping(), this.getServletMapping_WebApp(), "servletMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_Servlets(), this.getServlet(), this.getServlet_WebApp(), "servlets", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_Filters(), this.getFilter(), null, "filters", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_FilterMappings(), this.getFilterMapping(), null, "filterMappings", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_Listeners(), theCommonPackage.getListener(), null, "listeners", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_ContextParams(), theCommonPackage.getParamValue(), null, "contextParams", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_JspConfig(), theJspPackage.getJSPConfig(), null, "jspConfig", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebApp_LocalEncodingMappingList(), this.getLocalEncodingMappingList(), null, "localEncodingMappingList", null, 0, 1, WebApp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(contextParamEClass, ContextParam.class, "ContextParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getContextParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContextParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getContextParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, ContextParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getContextParam_WebApp(), this.getWebApp(), this.getWebApp_Contexts(), "webApp", null, 0, 1, ContextParam.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(servletEClass, Servlet.class, "Servlet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getServlet_ServletName(), ecorePackage.getEString(), "servletName", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getServlet_LoadOnStartup(), ecorePackage.getEIntegerObject(), "loadOnStartup", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_WebApp(), this.getWebApp(), this.getWebApp_Servlets(), "webApp", null, 0, 1, Servlet.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_WebType(), this.getWebType(), null, "webType", null, 1, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_Params(), this.getInitParam(), null, "params", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_SecurityRoleRefs(), theCommonPackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_RunAs(), theCommonPackage.getRunAsSpecifiedIdentity(), null, "runAs", null, 0, 1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServlet_InitParams(), theCommonPackage.getParamValue(), null, "initParams", null, 0, -1, Servlet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(servletMappingEClass, ServletMapping.class, "ServletMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getServletMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getServletMapping_Name(), ecorePackage.getEString(), "name", null, 0, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServletMapping_WebApp(), this.getWebApp(), this.getWebApp_ServletMappings(), "webApp", null, 0, 1, ServletMapping.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getServletMapping_Servlet(), this.getServlet(), null, "servlet", null, 1, 1, ServletMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(sessionConfigEClass, SessionConfig.class, "SessionConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSessionConfig_SessionTimeout(), ecorePackage.getEInt(), "sessionTimeout", null, 0, 1, SessionConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSessionConfig_WebApp(), this.getWebApp(), this.getWebApp_SessionConfig(), "webApp", null, 0, 1, SessionConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(mimeMappingEClass, MimeMapping.class, "MimeMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMimeMapping_Extension(), ecorePackage.getEString(), "extension", null, 0, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMimeMapping_MimeType(), ecorePackage.getEString(), "mimeType", null, 0, 1, MimeMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMimeMapping_WebApp(), this.getWebApp(), this.getWebApp_MimeMappings(), "webApp", null, 0, 1, MimeMapping.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(welcomeFileListEClass, WelcomeFileList.class, "WelcomeFileList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getWelcomeFileList_WebApp(), this.getWebApp(), this.getWebApp_FileList(), "webApp", null, 0, 1, WelcomeFileList.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWelcomeFileList_File(), this.getWelcomeFile(), this.getWelcomeFile_FileList(), "file", null, 0, -1, WelcomeFileList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(errorPageEClass, ErrorPage.class, "ErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getErrorPage_Location(), ecorePackage.getEString(), "location", null, 0, 1, ErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getErrorPage_WebApp(), this.getWebApp(), this.getWebApp_ErrorPages(), "webApp", null, 0, 1, ErrorPage.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(tagLibRefEClass, TagLibRef.class, "TagLibRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTagLibRef_TaglibURI(), ecorePackage.getEString(), "taglibURI", null, 0, 1, TagLibRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTagLibRef_TaglibLocation(), ecorePackage.getEString(), "taglibLocation", null, 0, 1, TagLibRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTagLibRef_WebApp(), this.getWebApp(), this.getWebApp_TagLibs(), "webApp", null, 0, 1, TagLibRef.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(securityConstraintEClass, SecurityConstraint.class, "SecurityConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSecurityConstraint_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityConstraint_WebApp(), this.getWebApp(), this.getWebApp_Constraints(), "webApp", null, 0, 1, SecurityConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityConstraint_WebResourceCollections(), this.getWebResourceCollection(), this.getWebResourceCollection_SecConstraint(), "webResourceCollections", null, 1, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityConstraint_AuthConstraint(), this.getAuthConstraint(), this.getAuthConstraint_SecConstraint(), "authConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityConstraint_UserDataConstraint(), this.getUserDataConstraint(), this.getUserDataConstraint_SecConstraint(), "userDataConstraint", null, 0, 1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityConstraint_DisplayNames(), theCommonPackage.getDisplayName(), null, "displayNames", null, 0, -1, SecurityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(webResourceCollectionEClass, WebResourceCollection.class, "WebResourceCollection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getWebResourceCollection_WebResourceName(), ecorePackage.getEString(), "webResourceName", null, 0, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getWebResourceCollection_Description(), ecorePackage.getEString(), "description", null, 0, 1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getWebResourceCollection_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 1, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getWebResourceCollection_HttpMethod(), this.getHTTPMethodTypeEnum(), "httpMethod", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebResourceCollection_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_WebResourceCollections(), "secConstraint", null, 0, 1, WebResourceCollection.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebResourceCollection_URLs(), this.getURLPatternType(), this.getURLPatternType_ResCollection(), "URLs", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebResourceCollection_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWebResourceCollection_HTTPs(), this.getHTTPMethodType(), null, "HTTPs", null, 0, -1, WebResourceCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(authConstraintEClass, AuthConstraint.class, "AuthConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAuthConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAuthConstraint_Roles(), ecorePackage.getEString(), "roles", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAuthConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_AuthConstraint(), "secConstraint", null, 0, 1, AuthConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAuthConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, AuthConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(userDataConstraintEClass, UserDataConstraint.class, "UserDataConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUserDataConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUserDataConstraint_TransportGuarantee(), this.getTransportGuaranteeType(), "transportGuarantee", null, 0, 1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getUserDataConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_UserDataConstraint(), "secConstraint", null, 0, 1, UserDataConstraint.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getUserDataConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, UserDataConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(loginConfigEClass, LoginConfig.class, "LoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLoginConfig_AuthMethod(), this.getAuthMethodKind(), "authMethod", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLoginConfig_RealmName(), ecorePackage.getEString(), "realmName", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLoginConfig_AuthorizationMethod(), ecorePackage.getEString(), "authorizationMethod", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLoginConfig_WebApp(), this.getWebApp(), this.getWebApp_LoginConfig(), "webApp", null, 0, 1, LoginConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLoginConfig_FormLoginConfig(), this.getFormLoginConfig(), this.getFormLoginConfig_LoginConfig(), "formLoginConfig", null, 0, 1, LoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(formLoginConfigEClass, FormLoginConfig.class, "FormLoginConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFormLoginConfig_FormLoginPage(), ecorePackage.getEString(), "formLoginPage", null, 0, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFormLoginConfig_FormErrorPage(), ecorePackage.getEString(), "formErrorPage", null, 0, 1, FormLoginConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFormLoginConfig_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_FormLoginConfig(), "loginConfig", null, 0, 1, FormLoginConfig.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(initParamEClass, InitParam.class, "InitParam", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getInitParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getInitParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getInitParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, InitParam.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(webTypeEClass, WebType.class, "WebType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(servletTypeEClass, ServletType.class, "ServletType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getServletType_ClassName(), ecorePackage.getEString(), "className", null, 0, 1, ServletType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(jspTypeEClass, JSPType.class, "JSPType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getJSPType_JspFile(), ecorePackage.getEString(), "jspFile", null, 0, 1, JSPType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(urlPatternTypeEClass, URLPatternType.class, "URLPatternType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getURLPatternType_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, URLPatternType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getURLPatternType_ResCollection(), this.getWebResourceCollection(), this.getWebResourceCollection_URLs(), "resCollection", null, 0, 1, URLPatternType.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(roleNameTypeEClass, RoleNameType.class, "RoleNameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRoleNameType_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, RoleNameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(welcomeFileEClass, WelcomeFile.class, "WelcomeFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getWelcomeFile_WelcomeFile(), ecorePackage.getEString(), "welcomeFile", null, 0, 1, WelcomeFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getWelcomeFile_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_File(), "fileList", null, 0, 1, WelcomeFile.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(exceptionTypeErrorPageEClass, ExceptionTypeErrorPage.class, "ExceptionTypeErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getExceptionTypeErrorPage_ExceptionType(), theJavaRefPackage.getJavaClass(), null, "exceptionType", null, 1, 1, ExceptionTypeErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(errorCodeErrorPageEClass, ErrorCodeErrorPage.class, "ErrorCodeErrorPage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getErrorCodeErrorPage_ErrorCode(), ecorePackage.getEString(), "errorCode", null, 0, 1, ErrorCodeErrorPage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(filterMappingEClass, FilterMapping.class, "FilterMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFilterMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFilterMapping_DispatcherType(), this.getDispatcherType(), "dispatcherType", null, 0, 4, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFilterMapping_Filter(), this.getFilter(), null, "filter", null, 1, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFilterMapping_Servlet(), this.getServlet(), null, "servlet", null, 0, 1, FilterMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(filterEClass, Filter.class, "Filter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFilter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFilter_InitParams(), this.getInitParam(), null, "initParams", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFilter_FilterClass(), theJavaRefPackage.getJavaClass(), null, "filterClass", null, 1, 1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getFilter_InitParamValues(), theCommonPackage.getParamValue(), null, "initParamValues", null, 0, -1, Filter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(localEncodingMappingListEClass, LocalEncodingMappingList.class, "LocalEncodingMappingList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getLocalEncodingMappingList_LocalEncodingMappings(), this.getLocalEncodingMapping(), null, "localEncodingMappings", null, 1, -1, LocalEncodingMappingList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(localEncodingMappingEClass, LocalEncodingMapping.class, "LocalEncodingMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLocalEncodingMapping_Locale(), ecorePackage.getEString(), "locale", null, 0, 1, LocalEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLocalEncodingMapping_Encoding(), ecorePackage.getEString(), "encoding", null, 0, 1, LocalEncodingMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(httpMethodTypeEClass, HTTPMethodType.class, "HTTPMethodType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getHTTPMethodType_HttpMethod(), ecorePackage.getEString(), "httpMethod", null, 0, 1, HTTPMethodType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(resAuthServletTypeEEnum, ResAuthServletType.class, "ResAuthServletType");
- addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.CONTAINER_LITERAL);
- addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.SERVLET_LITERAL);
-
- initEEnum(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.class, "HTTPMethodTypeEnum");
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.GET_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.POST_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.PUT_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.DELETE_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.HEAD_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.OPTIONS_LITERAL);
- addEEnumLiteral(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.TRACE_LITERAL);
-
- initEEnum(transportGuaranteeTypeEEnum, TransportGuaranteeType.class, "TransportGuaranteeType");
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.NONE_LITERAL);
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.INTEGRAL_LITERAL);
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.CONFIDENTIAL_LITERAL);
-
- initEEnum(dispatcherTypeEEnum, DispatcherType.class, "DispatcherType");
- addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.FORWARD_LITERAL);
- addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.INCLUDE_LITERAL);
- addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.REQUEST_LITERAL);
- addEEnumLiteral(dispatcherTypeEEnum, DispatcherType.ERROR_LITERAL);
-
- initEEnum(authMethodKindEEnum, AuthMethodKind.class, "AuthMethodKind");
- addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.UNSPECIFIED_LITERAL);
- addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.BASIC_LITERAL);
- addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.DIGEST_LITERAL);
- addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.FORM_LITERAL);
- addEEnumLiteral(authMethodKindEEnum, AuthMethodKind.CLIENT_CERT_LITERAL);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //WebapplicationPackageImpl
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java
deleted file mode 100644
index 5aedf2177..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileImpl.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-/**
- * The welcome-file element contains file name to use as a default welcome file, such as index.html
-
- */
-public class WelcomeFileImpl extends EObjectImpl implements WelcomeFile, EObject {
-
- /**
- * The default value of the '{@link #getWelcomeFile() <em>Welcome File</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWelcomeFile()
- * @generated
- * @ordered
- */
- protected static final String WELCOME_FILE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String welcomeFile = WELCOME_FILE_EDEFAULT;
- public WelcomeFileImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getWelcomeFile();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getWelcomeFile() {
- return welcomeFile;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWelcomeFile(String newWelcomeFile) {
- String oldWelcomeFile = welcomeFile;
- welcomeFile = newWelcomeFile;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE__WELCOME_FILE, oldWelcomeFile, welcomeFile));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WelcomeFileList getFileList() {
- if (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE__FILE_LIST) return null;
- return (WelcomeFileList)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setFileList(WelcomeFileList newFileList) {
- if (newFileList != eContainer || (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE__FILE_LIST && newFileList != null)) {
- if (EcoreUtil.isAncestor(this, newFileList))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newFileList != null)
- msgs = ((InternalEObject)newFileList).eInverseAdd(this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WelcomeFileList.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newFileList, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE__FILE_LIST, newFileList, newFileList));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- return eBasicSetContainer(null, WebapplicationPackage.WELCOME_FILE__FILE_LIST, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WelcomeFileList.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE:
- return getWelcomeFile();
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- return getFileList();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE:
- return WELCOME_FILE_EDEFAULT == null ? welcomeFile != null : !WELCOME_FILE_EDEFAULT.equals(welcomeFile);
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- return getFileList() != null;
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE:
- setWelcomeFile((String)newValue);
- return;
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- setFileList((WelcomeFileList)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE__WELCOME_FILE:
- setWelcomeFile(WELCOME_FILE_EDEFAULT);
- return;
- case WebapplicationPackage.WELCOME_FILE__FILE_LIST:
- setFileList((WelcomeFileList)null);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (welcomeFile: ");
- result.append(welcomeFile);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java
deleted file mode 100644
index 76b94af5f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/impl/WelcomeFileListImpl.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.impl;
-
-import java.util.Collection;
-
-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.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-/**
- * The welcome-file-list contains an ordered list of welcome files elements.
- */
-public class WelcomeFileListImpl extends EObjectImpl implements WelcomeFileList, EObject {
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList file = null;
- public WelcomeFileListImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WebapplicationPackage.eINSTANCE.getWelcomeFileList();
- }
-
-/**
- * addFileNamed method comment.
- */
-public void addFileNamed(java.lang.String name) {
- WelcomeFile lfile = ((WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI)).getWebapplicationFactory().createWelcomeFile();
- lfile.setWelcomeFile(name);
- getFile().add(lfile);
-}
- /**
- * @generated This field/method will be replaced during code generation
- */
- public WebApp getWebApp() {
- if (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP) return null;
- return (WebApp)eContainer;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setWebApp(WebApp newWebApp) {
- if (newWebApp != eContainer || (eContainerFeatureID != WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP && newWebApp != null)) {
- if (EcoreUtil.isAncestor(this, newWebApp))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newWebApp != null)
- msgs = ((InternalEObject)newWebApp).eInverseAdd(this, WebapplicationPackage.WEB_APP__FILE_LIST, WebApp.class, msgs);
- msgs = eBasicSetContainer((InternalEObject)newWebApp, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, newWebApp, newWebApp));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getFile() {
- if (file == null) {
- file = new EObjectContainmentWithInverseEList(WelcomeFile.class, this, WebapplicationPackage.WELCOME_FILE_LIST__FILE, WebapplicationPackage.WELCOME_FILE__FILE_LIST);
- }
- return file;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs);
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- return ((InternalEList)getFile()).basicAdd(otherEnd, msgs);
- default:
- return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- return eBasicSetContainer(null, WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP, msgs);
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- return ((InternalEList)getFile()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
- if (eContainerFeatureID >= 0) {
- switch (eContainerFeatureID) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- return eContainer.eInverseRemove(this, WebapplicationPackage.WEB_APP__FILE_LIST, WebApp.class, msgs);
- default:
- return eDynamicBasicRemoveFromContainer(msgs);
- }
- }
- return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- return getWebApp();
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- return getFile();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- return getWebApp() != null;
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- return file != null && !file.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- setWebApp((WebApp)newValue);
- return;
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- getFile().clear();
- getFile().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WebapplicationPackage.WELCOME_FILE_LIST__WEB_APP:
- setWebApp((WebApp)null);
- return;
- case WebapplicationPackage.WELCOME_FILE_LIST__FILE:
- getFile().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java
deleted file mode 100644
index e12043553..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationAdapterFactory.java
+++ /dev/null
@@ -1,692 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.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.emf.ecore.EPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-
-
-public class WebapplicationAdapterFactory extends AdapterFactoryImpl {
- protected static WebapplicationPackage modelPackage;
-
- public WebapplicationAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = (WebapplicationPackage)EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI);
- }
- }
- public boolean isFactoryForType(Object type) {
- if (type == modelPackage) {
- return true;
- }
- if (type instanceof EObject) {
- return ((EObject)type).eClass().eContainer() == modelPackage;
- }
- return false;
- }
-
- protected WebapplicationSwitch sw = new WebapplicationSwitch() {
- public Object caseWebApp(WebApp object) {
- return createWebAppAdapter();
- }
- public Object caseContextParam(ContextParam object) {
- return createContextParamAdapter();
- }
- public Object caseErrorPage(ErrorPage object) {
- return createErrorPageAdapter();
- }
- public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) {
- return createExceptionTypeErrorPageAdapter();
- }
- public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) {
- return createErrorCodeErrorPageAdapter();
- }
- public Object caseWelcomeFileList(WelcomeFileList object) {
- return createWelcomeFileListAdapter();
- }
- public Object caseWelcomeFile(WelcomeFile object) {
- return createWelcomeFileAdapter();
- }
- public Object caseTagLibRef(TagLibRef object) {
- return createTagLibRefAdapter();
- }
- public Object caseSecurityConstraint(SecurityConstraint object) {
- return createSecurityConstraintAdapter();
- }
- public Object caseWebResourceCollection(WebResourceCollection object) {
- return createWebResourceCollectionAdapter();
- }
- public Object caseURLPatternType(URLPatternType object) {
- return createURLPatternTypeAdapter();
- }
- public Object caseHTTPMethodType(HTTPMethodType object) {
- return createHTTPMethodTypeAdapter();
- }
- public Object caseAuthConstraint(AuthConstraint object) {
- return createAuthConstraintAdapter();
- }
- public Object caseUserDataConstraint(UserDataConstraint object) {
- return createUserDataConstraintAdapter();
- }
- public Object caseLoginConfig(LoginConfig object) {
- return createLoginConfigAdapter();
- }
- public Object caseFormLoginConfig(FormLoginConfig object) {
- return createFormLoginConfigAdapter();
- }
- public Object caseMimeMapping(MimeMapping object) {
- return createMimeMappingAdapter();
- }
- public Object caseSessionConfig(SessionConfig object) {
- return createSessionConfigAdapter();
- }
- public Object caseServletMapping(ServletMapping object) {
- return createServletMappingAdapter();
- }
- public Object caseServlet(Servlet object) {
- return createServletAdapter();
- }
- public Object caseWebType(WebType object) {
- return createWebTypeAdapter();
- }
- public Object caseServletType(ServletType object) {
- return createServletTypeAdapter();
- }
- public Object caseJSPType(JSPType object) {
- return createJSPTypeAdapter();
- }
- public Object caseInitParam(InitParam object) {
- return createInitParamAdapter();
- }
- public Object caseFilter(Filter object) {
- return createFilterAdapter();
- }
- public Object caseFilterMapping(FilterMapping object) {
- return createFilterMappingAdapter();
- }
- public Object caseRoleNameType(RoleNameType object) {
- return createRoleNameTypeAdapter();
- }
- public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) {
- return createLocalEncodingMappingListAdapter();
- }
- public Object caseLocalEncodingMapping(LocalEncodingMapping object) {
- return createLocalEncodingMappingAdapter();
- }
- };
-
- public Adapter createAdapter(Notifier target) {
- return (Adapter)sw.doSwitch((EObject)target);
- }
-
- /**
- * By default create methods return null so that we can easily ignore cases.
- * It's useful to ignore a case when inheritance will catch all the cases anyway.
- */
-
- public Adapter createWebAppAdapter() {
- return null;
- }
-
- public Adapter createContextParamAdapter() {
- return null;
- }
-
- public Adapter createErrorPageAdapter() {
- return null;
- }
-
- public Adapter createExceptionTypeErrorPageAdapter() {
- return null;
- }
-
- public Adapter createErrorCodeErrorPageAdapter() {
- return null;
- }
-
- public Adapter createWelcomeFileListAdapter() {
- return null;
- }
-
- public Adapter createWelcomeFileAdapter() {
- return null;
- }
-
- public Adapter createTagLibRefAdapter() {
- return null;
- }
-
- public Adapter createTagLibRefTypeAdapter() {
- return null;
- }
-
- public Adapter createSecurityConstraintAdapter() {
- return null;
- }
-
- public Adapter createWebResourceCollectionAdapter() {
- return null;
- }
-
- public Adapter createURLPatternTypeAdapter() {
- return null;
- }
-
- public Adapter createHTTPMethodTypeAdapter() {
- return null;
- }
-
- public Adapter createAuthConstraintAdapter() {
- return null;
- }
-
- public Adapter createUserDataConstraintAdapter() {
- return null;
- }
-
- public Adapter createLoginConfigAdapter() {
- return null;
- }
-
- public Adapter createFormLoginConfigAdapter() {
- return null;
- }
-
- public Adapter createMimeMappingAdapter() {
- return null;
- }
-
- public Adapter createSessionConfigAdapter() {
- return null;
- }
-
- public Adapter createServletMappingAdapter() {
- return null;
- }
-
- public Adapter createServletAdapter() {
- return null;
- }
-
- public Adapter createWebTypeAdapter() {
- return null;
- }
-
- public Adapter createServletTypeAdapter() {
- return null;
- }
-
- public Adapter createJSPTypeAdapter() {
- return null;
- }
-
- public Adapter createInitParamAdapter() {
- return null;
- }
-
- public Adapter createFilterAdapter() {
- return null;
- }
-
- public Adapter createFilterMappingAdapter() {
- return null;
- }
-
- public Adapter createListenerAdapter() {
- return null;
- }
-
- public Adapter createRoleNameTypeAdapter() {
- return null;
- }
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean isFactoryForTypeGen(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 WebapplicationSwitch modelSwitch =
- new WebapplicationSwitch() {
- public Object caseWebApp(WebApp object) {
- return createWebAppAdapter();
- }
- public Object caseContextParam(ContextParam object) {
- return createContextParamAdapter();
- }
- public Object caseServlet(Servlet object) {
- return createServletAdapter();
- }
- public Object caseServletMapping(ServletMapping object) {
- return createServletMappingAdapter();
- }
- public Object caseSessionConfig(SessionConfig object) {
- return createSessionConfigAdapter();
- }
- public Object caseMimeMapping(MimeMapping object) {
- return createMimeMappingAdapter();
- }
- public Object caseWelcomeFileList(WelcomeFileList object) {
- return createWelcomeFileListAdapter();
- }
- public Object caseErrorPage(ErrorPage object) {
- return createErrorPageAdapter();
- }
- public Object caseTagLibRef(TagLibRef object) {
- return createTagLibRefAdapter();
- }
- public Object caseSecurityConstraint(SecurityConstraint object) {
- return createSecurityConstraintAdapter();
- }
- public Object caseWebResourceCollection(WebResourceCollection object) {
- return createWebResourceCollectionAdapter();
- }
- public Object caseAuthConstraint(AuthConstraint object) {
- return createAuthConstraintAdapter();
- }
- public Object caseUserDataConstraint(UserDataConstraint object) {
- return createUserDataConstraintAdapter();
- }
- public Object caseLoginConfig(LoginConfig object) {
- return createLoginConfigAdapter();
- }
- public Object caseFormLoginConfig(FormLoginConfig object) {
- return createFormLoginConfigAdapter();
- }
- public Object caseInitParam(InitParam object) {
- return createInitParamAdapter();
- }
- public Object caseWebType(WebType object) {
- return createWebTypeAdapter();
- }
- public Object caseServletType(ServletType object) {
- return createServletTypeAdapter();
- }
- public Object caseJSPType(JSPType object) {
- return createJSPTypeAdapter();
- }
- public Object caseURLPatternType(URLPatternType object) {
- return createURLPatternTypeAdapter();
- }
- public Object caseRoleNameType(RoleNameType object) {
- return createRoleNameTypeAdapter();
- }
- public Object caseWelcomeFile(WelcomeFile object) {
- return createWelcomeFileAdapter();
- }
- public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) {
- return createExceptionTypeErrorPageAdapter();
- }
- public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) {
- return createErrorCodeErrorPageAdapter();
- }
- public Object caseFilterMapping(FilterMapping object) {
- return createFilterMappingAdapter();
- }
- public Object caseFilter(Filter object) {
- return createFilterAdapter();
- }
- public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) {
- return createLocalEncodingMappingListAdapter();
- }
- public Object caseLocalEncodingMapping(LocalEncodingMapping object) {
- return createLocalEncodingMappingAdapter();
- }
- public Object caseHTTPMethodType(HTTPMethodType object) {
- return createHTTPMethodTypeAdapter();
- }
- public Object caseDescriptionGroup(DescriptionGroup object) {
- return createDescriptionGroupAdapter();
- }
- public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) {
- return createCompatibilityDescriptionGroupAdapter();
- }
- public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) {
- return createJNDIEnvRefsGroupAdapter();
- }
- public Object defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createAdapterGen(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * By default create methods return null so that we can easily ignore cases.
- * It's useful to ignore a case when inheritance will catch all the cases anyway.
- */
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createWebAppAdapterGen() {
-
- return null;
- }
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createContextParamAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createErrorPageAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createExceptionTypeErrorPageAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createErrorCodeErrorPageAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createWelcomeFileListAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createWelcomeFileAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createTagLibRefAdapterGen() {
- return null;
- }
-
- public Adapter createTagLibRefTypeAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSecurityConstraintAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createWebResourceCollectionAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createURLPatternTypeAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createAuthConstraintAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createUserDataConstraintAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createLoginConfigAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createFormLoginConfigAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createMimeMappingAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSessionConfigAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createServletMappingAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createServletAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createWebTypeAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createServletTypeAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createJSPTypeAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createInitParamAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createFilterAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createFilterMappingAdapterGen() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList <em>Local Encoding Mapping List</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.j2ee.webapplication.LocalEncodingMappingList
- * @generated
- */
- public Adapter createLocalEncodingMappingListAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping <em>Local Encoding Mapping</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.j2ee.webapplication.LocalEncodingMapping
- * @generated
- */
- public Adapter createLocalEncodingMappingAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</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.j2ee.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</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.j2ee.common.CompatibilityDescriptionGroup
- * @generated
- */
- public Adapter createCompatibilityDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</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.j2ee.common.JNDIEnvRefsGroup
- * @generated
- */
- public Adapter createJNDIEnvRefsGroupAdapter() {
- 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;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createRoleNameTypeAdapterGen() {
- return null;
- }
-
-} //WebapplicationAdapterFactory
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java
deleted file mode 100644
index e6531f189..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/internal/util/WebapplicationSwitch.java
+++ /dev/null
@@ -1,811 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.webapplication.internal.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.webapplication.AuthConstraint;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.ErrorCodeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ErrorPage;
-import org.eclipse.jst.j2ee.webapplication.ExceptionTypeErrorPage;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.FilterMapping;
-import org.eclipse.jst.j2ee.webapplication.FormLoginConfig;
-import org.eclipse.jst.j2ee.webapplication.HTTPMethodType;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.JSPType;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMapping;
-import org.eclipse.jst.j2ee.webapplication.LocalEncodingMappingList;
-import org.eclipse.jst.j2ee.webapplication.LoginConfig;
-import org.eclipse.jst.j2ee.webapplication.MimeMapping;
-import org.eclipse.jst.j2ee.webapplication.RoleNameType;
-import org.eclipse.jst.j2ee.webapplication.SecurityConstraint;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.ServletMapping;
-import org.eclipse.jst.j2ee.webapplication.ServletType;
-import org.eclipse.jst.j2ee.webapplication.SessionConfig;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.URLPatternType;
-import org.eclipse.jst.j2ee.webapplication.UserDataConstraint;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-import org.eclipse.jst.j2ee.webapplication.WebResourceCollection;
-import org.eclipse.jst.j2ee.webapplication.WebType;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
-import org.eclipse.jst.j2ee.webapplication.WelcomeFileList;
-
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch 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.j2ee.webapplication.WebapplicationPackage
- * @generated
- */
-public class WebapplicationSwitch {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static WebapplicationPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WebapplicationSwitch() {
- if (modelPackage == null) {
- modelPackage = WebapplicationPackage.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 WebapplicationPackage.WEB_APP: {
- WebApp webApp = (WebApp)theEObject;
- Object result = caseWebApp(webApp);
- if (result == null) result = caseJNDIEnvRefsGroup(webApp);
- if (result == null) result = caseCompatibilityDescriptionGroup(webApp);
- if (result == null) result = caseDescriptionGroup(webApp);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.CONTEXT_PARAM: {
- ContextParam contextParam = (ContextParam)theEObject;
- Object result = caseContextParam(contextParam);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.SERVLET: {
- Servlet servlet = (Servlet)theEObject;
- Object result = caseServlet(servlet);
- if (result == null) result = caseCompatibilityDescriptionGroup(servlet);
- if (result == null) result = caseDescriptionGroup(servlet);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.SERVLET_MAPPING: {
- ServletMapping servletMapping = (ServletMapping)theEObject;
- Object result = caseServletMapping(servletMapping);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.SESSION_CONFIG: {
- SessionConfig sessionConfig = (SessionConfig)theEObject;
- Object result = caseSessionConfig(sessionConfig);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.MIME_MAPPING: {
- MimeMapping mimeMapping = (MimeMapping)theEObject;
- Object result = caseMimeMapping(mimeMapping);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.WELCOME_FILE_LIST: {
- WelcomeFileList welcomeFileList = (WelcomeFileList)theEObject;
- Object result = caseWelcomeFileList(welcomeFileList);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.ERROR_PAGE: {
- ErrorPage errorPage = (ErrorPage)theEObject;
- Object result = caseErrorPage(errorPage);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.TAG_LIB_REF: {
- TagLibRef tagLibRef = (TagLibRef)theEObject;
- Object result = caseTagLibRef(tagLibRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.SECURITY_CONSTRAINT: {
- SecurityConstraint securityConstraint = (SecurityConstraint)theEObject;
- Object result = caseSecurityConstraint(securityConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.WEB_RESOURCE_COLLECTION: {
- WebResourceCollection webResourceCollection = (WebResourceCollection)theEObject;
- Object result = caseWebResourceCollection(webResourceCollection);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.AUTH_CONSTRAINT: {
- AuthConstraint authConstraint = (AuthConstraint)theEObject;
- Object result = caseAuthConstraint(authConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.USER_DATA_CONSTRAINT: {
- UserDataConstraint userDataConstraint = (UserDataConstraint)theEObject;
- Object result = caseUserDataConstraint(userDataConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.LOGIN_CONFIG: {
- LoginConfig loginConfig = (LoginConfig)theEObject;
- Object result = caseLoginConfig(loginConfig);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.FORM_LOGIN_CONFIG: {
- FormLoginConfig formLoginConfig = (FormLoginConfig)theEObject;
- Object result = caseFormLoginConfig(formLoginConfig);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.INIT_PARAM: {
- InitParam initParam = (InitParam)theEObject;
- Object result = caseInitParam(initParam);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.WEB_TYPE: {
- WebType webType = (WebType)theEObject;
- Object result = caseWebType(webType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.SERVLET_TYPE: {
- ServletType servletType = (ServletType)theEObject;
- Object result = caseServletType(servletType);
- if (result == null) result = caseWebType(servletType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.JSP_TYPE: {
- JSPType jspType = (JSPType)theEObject;
- Object result = caseJSPType(jspType);
- if (result == null) result = caseWebType(jspType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.URL_PATTERN_TYPE: {
- URLPatternType urlPatternType = (URLPatternType)theEObject;
- Object result = caseURLPatternType(urlPatternType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.ROLE_NAME_TYPE: {
- RoleNameType roleNameType = (RoleNameType)theEObject;
- Object result = caseRoleNameType(roleNameType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.WELCOME_FILE: {
- WelcomeFile welcomeFile = (WelcomeFile)theEObject;
- Object result = caseWelcomeFile(welcomeFile);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.EXCEPTION_TYPE_ERROR_PAGE: {
- ExceptionTypeErrorPage exceptionTypeErrorPage = (ExceptionTypeErrorPage)theEObject;
- Object result = caseExceptionTypeErrorPage(exceptionTypeErrorPage);
- if (result == null) result = caseErrorPage(exceptionTypeErrorPage);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.ERROR_CODE_ERROR_PAGE: {
- ErrorCodeErrorPage errorCodeErrorPage = (ErrorCodeErrorPage)theEObject;
- Object result = caseErrorCodeErrorPage(errorCodeErrorPage);
- if (result == null) result = caseErrorPage(errorCodeErrorPage);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.FILTER_MAPPING: {
- FilterMapping filterMapping = (FilterMapping)theEObject;
- Object result = caseFilterMapping(filterMapping);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.FILTER: {
- Filter filter = (Filter)theEObject;
- Object result = caseFilter(filter);
- if (result == null) result = caseCompatibilityDescriptionGroup(filter);
- if (result == null) result = caseDescriptionGroup(filter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING_LIST: {
- LocalEncodingMappingList localEncodingMappingList = (LocalEncodingMappingList)theEObject;
- Object result = caseLocalEncodingMappingList(localEncodingMappingList);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.LOCAL_ENCODING_MAPPING: {
- LocalEncodingMapping localEncodingMapping = (LocalEncodingMapping)theEObject;
- Object result = caseLocalEncodingMapping(localEncodingMapping);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case WebapplicationPackage.HTTP_METHOD_TYPE: {
- HTTPMethodType httpMethodType = (HTTPMethodType)theEObject;
- Object result = caseHTTPMethodType(httpMethodType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Web App</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 App</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseWebApp(WebApp object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Context Param</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>Context Param</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseContextParam(ContextParam object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Servlet</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>Servlet</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseServlet(Servlet object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Servlet Mapping</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>Servlet Mapping</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseServletMapping(ServletMapping object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Session Config</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>Session Config</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSessionConfig(SessionConfig object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Mime Mapping</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>Mime Mapping</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseMimeMapping(MimeMapping object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Welcome File List</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>Welcome File List</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseWelcomeFileList(WelcomeFileList object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Error Page</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>Error Page</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseErrorPage(ErrorPage object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Tag Lib Ref</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>Tag Lib Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseTagLibRef(TagLibRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Security Constraint</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>Security Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSecurityConstraint(SecurityConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Web Resource Collection</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 Resource Collection</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseWebResourceCollection(WebResourceCollection object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Auth Constraint</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>Auth Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseAuthConstraint(AuthConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>User Data Constraint</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>User Data Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseUserDataConstraint(UserDataConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Login Config</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>Login Config</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseLoginConfig(LoginConfig object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Form Login Config</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>Form Login Config</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseFormLoginConfig(FormLoginConfig object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Init Param</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>Init Param</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseInitParam(InitParam object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Web Type</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 Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseWebType(WebType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Servlet Type</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>Servlet Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseServletType(ServletType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>JSP Type</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>JSP Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseJSPType(JSPType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>URL Pattern Type</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>URL Pattern Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseURLPatternType(URLPatternType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Role Name Type</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>Role Name Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseRoleNameType(RoleNameType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Welcome File</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>Welcome File</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseWelcomeFile(WelcomeFile object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Exception Type Error Page</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>Exception Type Error Page</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseExceptionTypeErrorPage(ExceptionTypeErrorPage object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Error Code Error Page</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>Error Code Error Page</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseErrorCodeErrorPage(ErrorCodeErrorPage object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Filter Mapping</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>Filter Mapping</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseFilterMapping(FilterMapping object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Filter</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>Filter</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseFilter(Filter object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Local Encoding Mapping List</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>Local Encoding Mapping List</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseLocalEncodingMappingList(LocalEncodingMappingList object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Local Encoding Mapping</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>Local Encoding Mapping</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseLocalEncodingMapping(LocalEncodingMapping object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>HTTP Method Type</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>HTTP Method Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseHTTPMethodType(HTTPMethodType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Description Group</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>Description Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseDescriptionGroup(DescriptionGroup object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</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>Compatibility Description Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</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>JNDI Env Refs Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup 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;
- }
-
-} //WebapplicationSwitch

Back to the top