blob: a119b217f81450c7a6302c4a9353e04186d3c7cc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.javaee.web.internal.impl;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.jst.javaee.web.WebApp;
import org.eclipse.jst.javaee.web.WebAppVersionType;
import org.eclipse.jst.javaee.web.internal.metadata.WebPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>App</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getGroup <em>Group</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDescriptions <em>Descriptions</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDisplayNames <em>Display Names</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getIcons <em>Icons</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getDistributables <em>Distributables</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getContextParams <em>Context Params</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getFilters <em>Filters</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getFilterMappings <em>Filter Mappings</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getListeners <em>Listeners</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServlets <em>Servlets</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServletMappings <em>Servlet Mappings</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSessionConfigs <em>Session Configs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMimeMappings <em>Mime Mappings</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getWelcomeFileLists <em>Welcome File Lists</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getErrorPages <em>Error Pages</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getJspConfigs <em>Jsp Configs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSecurityConstraints <em>Security Constraints</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getLoginConfigs <em>Login Configs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getSecurityRoles <em>Security Roles</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEnvEntries <em>Env Entries</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEjbRefs <em>Ejb Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getEjbLocalRefs <em>Ejb Local Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getServiceRefs <em>Service Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getResourceRefs <em>Resource Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getResourceEnvRefs <em>Resource Env Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMessageDestinationRefs <em>Message Destination Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPersistenceContextRefs <em>Persistence Context Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPersistenceUnitRefs <em>Persistence Unit Refs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPostConstructs <em>Post Constructs</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getPreDestroys <em>Pre Destroys</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getMessageDestinations <em>Message Destinations</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getLocalEncodingMappingsLists <em>Local Encoding Mappings Lists</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getId <em>Id</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#isMetadataComplete <em>Metadata Complete</em>}</li>
* <li>{@link org.eclipse.jst.javaee.web.internal.impl.WebAppImpl#getVersion <em>Version</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class WebAppImpl extends EObjectImpl implements WebApp {
/**
* The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getGroup()
* @generated
* @ordered
*/
protected FeatureMap group = null;
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected String id = ID_EDEFAULT;
/**
* The default value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isMetadataComplete()
* @generated
* @ordered
*/
protected static final boolean METADATA_COMPLETE_EDEFAULT = false;
/**
* The cached value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isMetadataComplete()
* @generated
* @ordered
*/
protected boolean metadataComplete = METADATA_COMPLETE_EDEFAULT;
/**
* This is true if the Metadata Complete attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean metadataCompleteESet = 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 WebAppVersionType VERSION_EDEFAULT = WebAppVersionType._25_LITERAL;
/**
* The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVersion()
* @generated
* @ordered
*/
protected WebAppVersionType version = VERSION_EDEFAULT;
/**
* This is true if the Version attribute has been set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
protected boolean versionESet = false;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WebAppImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return WebPackage.Literals.WEB_APP;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FeatureMap getGroup() {
if (group == null) {
group = new BasicFeatureMap(this, WebPackage.WEB_APP__GROUP);
}
return group;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getDescriptions() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DESCRIPTIONS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getDisplayNames() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DISPLAY_NAMES);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getIcons() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ICONS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getDistributables() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__DISTRIBUTABLES);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getContextParams() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__CONTEXT_PARAMS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getFilters() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__FILTERS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getFilterMappings() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__FILTER_MAPPINGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getListeners() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LISTENERS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getServlets() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVLETS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getServletMappings() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVLET_MAPPINGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getSessionConfigs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SESSION_CONFIGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getMimeMappings() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MIME_MAPPINGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getWelcomeFileLists() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__WELCOME_FILE_LISTS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getErrorPages() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ERROR_PAGES);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getJspConfigs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__JSP_CONFIGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getSecurityConstraints() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SECURITY_CONSTRAINTS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getLoginConfigs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LOGIN_CONFIGS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getSecurityRoles() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SECURITY_ROLES);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getEnvEntries() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__ENV_ENTRIES);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getEjbRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__EJB_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getEjbLocalRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__EJB_LOCAL_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getServiceRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__SERVICE_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getResourceRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__RESOURCE_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getResourceEnvRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__RESOURCE_ENV_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getMessageDestinationRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MESSAGE_DESTINATION_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getPersistenceContextRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PERSISTENCE_CONTEXT_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getPersistenceUnitRefs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PERSISTENCE_UNIT_REFS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getPostConstructs() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__POST_CONSTRUCTS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getPreDestroys() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__PRE_DESTROYS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getMessageDestinations() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__MESSAGE_DESTINATIONS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public List getLocalEncodingMappingsLists() {
return ((FeatureMap)getGroup()).list(WebPackage.Literals.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getId() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isMetadataComplete() {
return metadataComplete;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMetadataComplete(boolean newMetadataComplete) {
boolean oldMetadataComplete = metadataComplete;
metadataComplete = newMetadataComplete;
boolean oldMetadataCompleteESet = metadataCompleteESet;
metadataCompleteESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__METADATA_COMPLETE, oldMetadataComplete, metadataComplete, !oldMetadataCompleteESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetMetadataComplete() {
boolean oldMetadataComplete = metadataComplete;
boolean oldMetadataCompleteESet = metadataCompleteESet;
metadataComplete = METADATA_COMPLETE_EDEFAULT;
metadataCompleteESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.WEB_APP__METADATA_COMPLETE, oldMetadataComplete, METADATA_COMPLETE_EDEFAULT, oldMetadataCompleteESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetMetadataComplete() {
return metadataCompleteESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public WebAppVersionType getVersion() {
return version;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setVersion(WebAppVersionType newVersion) {
WebAppVersionType oldVersion = version;
version = newVersion == null ? VERSION_EDEFAULT : newVersion;
boolean oldVersionESet = versionESet;
versionESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP__VERSION, oldVersion, version, !oldVersionESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetVersion() {
WebAppVersionType oldVersion = version;
boolean oldVersionESet = versionESet;
version = VERSION_EDEFAULT;
versionESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.WEB_APP__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetVersion() {
return versionESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case WebPackage.WEB_APP__GROUP:
return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__DESCRIPTIONS:
return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__DISPLAY_NAMES:
return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__ICONS:
return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__DISTRIBUTABLES:
return ((InternalEList)getDistributables()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__CONTEXT_PARAMS:
return ((InternalEList)getContextParams()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__FILTERS:
return ((InternalEList)getFilters()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__FILTER_MAPPINGS:
return ((InternalEList)getFilterMappings()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__LISTENERS:
return ((InternalEList)getListeners()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SERVLETS:
return ((InternalEList)getServlets()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SERVLET_MAPPINGS:
return ((InternalEList)getServletMappings()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SESSION_CONFIGS:
return ((InternalEList)getSessionConfigs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__MIME_MAPPINGS:
return ((InternalEList)getMimeMappings()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__WELCOME_FILE_LISTS:
return ((InternalEList)getWelcomeFileLists()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__ERROR_PAGES:
return ((InternalEList)getErrorPages()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__JSP_CONFIGS:
return ((InternalEList)getJspConfigs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SECURITY_CONSTRAINTS:
return ((InternalEList)getSecurityConstraints()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__LOGIN_CONFIGS:
return ((InternalEList)getLoginConfigs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SECURITY_ROLES:
return ((InternalEList)getSecurityRoles()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__ENV_ENTRIES:
return ((InternalEList)getEnvEntries()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__EJB_REFS:
return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__EJB_LOCAL_REFS:
return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__SERVICE_REFS:
return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__RESOURCE_REFS:
return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__RESOURCE_ENV_REFS:
return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS:
return ((InternalEList)getPersistenceContextRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS:
return ((InternalEList)getPersistenceUnitRefs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__POST_CONSTRUCTS:
return ((InternalEList)getPostConstructs()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__PRE_DESTROYS:
return ((InternalEList)getPreDestroys()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__MESSAGE_DESTINATIONS:
return ((InternalEList)getMessageDestinations()).basicRemove(otherEnd, msgs);
case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS:
return ((InternalEList)getLocalEncodingMappingsLists()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case WebPackage.WEB_APP__GROUP:
if (coreType) return getGroup();
return ((FeatureMap.Internal)getGroup()).getWrapper();
case WebPackage.WEB_APP__DESCRIPTIONS:
return getDescriptions();
case WebPackage.WEB_APP__DISPLAY_NAMES:
return getDisplayNames();
case WebPackage.WEB_APP__ICONS:
return getIcons();
case WebPackage.WEB_APP__DISTRIBUTABLES:
return getDistributables();
case WebPackage.WEB_APP__CONTEXT_PARAMS:
return getContextParams();
case WebPackage.WEB_APP__FILTERS:
return getFilters();
case WebPackage.WEB_APP__FILTER_MAPPINGS:
return getFilterMappings();
case WebPackage.WEB_APP__LISTENERS:
return getListeners();
case WebPackage.WEB_APP__SERVLETS:
return getServlets();
case WebPackage.WEB_APP__SERVLET_MAPPINGS:
return getServletMappings();
case WebPackage.WEB_APP__SESSION_CONFIGS:
return getSessionConfigs();
case WebPackage.WEB_APP__MIME_MAPPINGS:
return getMimeMappings();
case WebPackage.WEB_APP__WELCOME_FILE_LISTS:
return getWelcomeFileLists();
case WebPackage.WEB_APP__ERROR_PAGES:
return getErrorPages();
case WebPackage.WEB_APP__JSP_CONFIGS:
return getJspConfigs();
case WebPackage.WEB_APP__SECURITY_CONSTRAINTS:
return getSecurityConstraints();
case WebPackage.WEB_APP__LOGIN_CONFIGS:
return getLoginConfigs();
case WebPackage.WEB_APP__SECURITY_ROLES:
return getSecurityRoles();
case WebPackage.WEB_APP__ENV_ENTRIES:
return getEnvEntries();
case WebPackage.WEB_APP__EJB_REFS:
return getEjbRefs();
case WebPackage.WEB_APP__EJB_LOCAL_REFS:
return getEjbLocalRefs();
case WebPackage.WEB_APP__SERVICE_REFS:
return getServiceRefs();
case WebPackage.WEB_APP__RESOURCE_REFS:
return getResourceRefs();
case WebPackage.WEB_APP__RESOURCE_ENV_REFS:
return getResourceEnvRefs();
case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
return getMessageDestinationRefs();
case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS:
return getPersistenceContextRefs();
case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS:
return getPersistenceUnitRefs();
case WebPackage.WEB_APP__POST_CONSTRUCTS:
return getPostConstructs();
case WebPackage.WEB_APP__PRE_DESTROYS:
return getPreDestroys();
case WebPackage.WEB_APP__MESSAGE_DESTINATIONS:
return getMessageDestinations();
case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS:
return getLocalEncodingMappingsLists();
case WebPackage.WEB_APP__ID:
return getId();
case WebPackage.WEB_APP__METADATA_COMPLETE:
return isMetadataComplete() ? Boolean.TRUE : Boolean.FALSE;
case WebPackage.WEB_APP__VERSION:
return getVersion();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case WebPackage.WEB_APP__GROUP:
((FeatureMap.Internal)getGroup()).set(newValue);
return;
case WebPackage.WEB_APP__DESCRIPTIONS:
getDescriptions().clear();
getDescriptions().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__DISPLAY_NAMES:
getDisplayNames().clear();
getDisplayNames().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__ICONS:
getIcons().clear();
getIcons().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__DISTRIBUTABLES:
getDistributables().clear();
getDistributables().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__CONTEXT_PARAMS:
getContextParams().clear();
getContextParams().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__FILTERS:
getFilters().clear();
getFilters().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__FILTER_MAPPINGS:
getFilterMappings().clear();
getFilterMappings().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__LISTENERS:
getListeners().clear();
getListeners().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SERVLETS:
getServlets().clear();
getServlets().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SERVLET_MAPPINGS:
getServletMappings().clear();
getServletMappings().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SESSION_CONFIGS:
getSessionConfigs().clear();
getSessionConfigs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__MIME_MAPPINGS:
getMimeMappings().clear();
getMimeMappings().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__WELCOME_FILE_LISTS:
getWelcomeFileLists().clear();
getWelcomeFileLists().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__ERROR_PAGES:
getErrorPages().clear();
getErrorPages().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__JSP_CONFIGS:
getJspConfigs().clear();
getJspConfigs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SECURITY_CONSTRAINTS:
getSecurityConstraints().clear();
getSecurityConstraints().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__LOGIN_CONFIGS:
getLoginConfigs().clear();
getLoginConfigs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SECURITY_ROLES:
getSecurityRoles().clear();
getSecurityRoles().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__ENV_ENTRIES:
getEnvEntries().clear();
getEnvEntries().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__EJB_REFS:
getEjbRefs().clear();
getEjbRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__EJB_LOCAL_REFS:
getEjbLocalRefs().clear();
getEjbLocalRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__SERVICE_REFS:
getServiceRefs().clear();
getServiceRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__RESOURCE_REFS:
getResourceRefs().clear();
getResourceRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__RESOURCE_ENV_REFS:
getResourceEnvRefs().clear();
getResourceEnvRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
getMessageDestinationRefs().clear();
getMessageDestinationRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS:
getPersistenceContextRefs().clear();
getPersistenceContextRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS:
getPersistenceUnitRefs().clear();
getPersistenceUnitRefs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__POST_CONSTRUCTS:
getPostConstructs().clear();
getPostConstructs().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__PRE_DESTROYS:
getPreDestroys().clear();
getPreDestroys().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__MESSAGE_DESTINATIONS:
getMessageDestinations().clear();
getMessageDestinations().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS:
getLocalEncodingMappingsLists().clear();
getLocalEncodingMappingsLists().addAll((Collection)newValue);
return;
case WebPackage.WEB_APP__ID:
setId((String)newValue);
return;
case WebPackage.WEB_APP__METADATA_COMPLETE:
setMetadataComplete(((Boolean)newValue).booleanValue());
return;
case WebPackage.WEB_APP__VERSION:
setVersion((WebAppVersionType)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case WebPackage.WEB_APP__GROUP:
getGroup().clear();
return;
case WebPackage.WEB_APP__DESCRIPTIONS:
getDescriptions().clear();
return;
case WebPackage.WEB_APP__DISPLAY_NAMES:
getDisplayNames().clear();
return;
case WebPackage.WEB_APP__ICONS:
getIcons().clear();
return;
case WebPackage.WEB_APP__DISTRIBUTABLES:
getDistributables().clear();
return;
case WebPackage.WEB_APP__CONTEXT_PARAMS:
getContextParams().clear();
return;
case WebPackage.WEB_APP__FILTERS:
getFilters().clear();
return;
case WebPackage.WEB_APP__FILTER_MAPPINGS:
getFilterMappings().clear();
return;
case WebPackage.WEB_APP__LISTENERS:
getListeners().clear();
return;
case WebPackage.WEB_APP__SERVLETS:
getServlets().clear();
return;
case WebPackage.WEB_APP__SERVLET_MAPPINGS:
getServletMappings().clear();
return;
case WebPackage.WEB_APP__SESSION_CONFIGS:
getSessionConfigs().clear();
return;
case WebPackage.WEB_APP__MIME_MAPPINGS:
getMimeMappings().clear();
return;
case WebPackage.WEB_APP__WELCOME_FILE_LISTS:
getWelcomeFileLists().clear();
return;
case WebPackage.WEB_APP__ERROR_PAGES:
getErrorPages().clear();
return;
case WebPackage.WEB_APP__JSP_CONFIGS:
getJspConfigs().clear();
return;
case WebPackage.WEB_APP__SECURITY_CONSTRAINTS:
getSecurityConstraints().clear();
return;
case WebPackage.WEB_APP__LOGIN_CONFIGS:
getLoginConfigs().clear();
return;
case WebPackage.WEB_APP__SECURITY_ROLES:
getSecurityRoles().clear();
return;
case WebPackage.WEB_APP__ENV_ENTRIES:
getEnvEntries().clear();
return;
case WebPackage.WEB_APP__EJB_REFS:
getEjbRefs().clear();
return;
case WebPackage.WEB_APP__EJB_LOCAL_REFS:
getEjbLocalRefs().clear();
return;
case WebPackage.WEB_APP__SERVICE_REFS:
getServiceRefs().clear();
return;
case WebPackage.WEB_APP__RESOURCE_REFS:
getResourceRefs().clear();
return;
case WebPackage.WEB_APP__RESOURCE_ENV_REFS:
getResourceEnvRefs().clear();
return;
case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
getMessageDestinationRefs().clear();
return;
case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS:
getPersistenceContextRefs().clear();
return;
case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS:
getPersistenceUnitRefs().clear();
return;
case WebPackage.WEB_APP__POST_CONSTRUCTS:
getPostConstructs().clear();
return;
case WebPackage.WEB_APP__PRE_DESTROYS:
getPreDestroys().clear();
return;
case WebPackage.WEB_APP__MESSAGE_DESTINATIONS:
getMessageDestinations().clear();
return;
case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS:
getLocalEncodingMappingsLists().clear();
return;
case WebPackage.WEB_APP__ID:
setId(ID_EDEFAULT);
return;
case WebPackage.WEB_APP__METADATA_COMPLETE:
unsetMetadataComplete();
return;
case WebPackage.WEB_APP__VERSION:
unsetVersion();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case WebPackage.WEB_APP__GROUP:
return group != null && !group.isEmpty();
case WebPackage.WEB_APP__DESCRIPTIONS:
return !getDescriptions().isEmpty();
case WebPackage.WEB_APP__DISPLAY_NAMES:
return !getDisplayNames().isEmpty();
case WebPackage.WEB_APP__ICONS:
return !getIcons().isEmpty();
case WebPackage.WEB_APP__DISTRIBUTABLES:
return !getDistributables().isEmpty();
case WebPackage.WEB_APP__CONTEXT_PARAMS:
return !getContextParams().isEmpty();
case WebPackage.WEB_APP__FILTERS:
return !getFilters().isEmpty();
case WebPackage.WEB_APP__FILTER_MAPPINGS:
return !getFilterMappings().isEmpty();
case WebPackage.WEB_APP__LISTENERS:
return !getListeners().isEmpty();
case WebPackage.WEB_APP__SERVLETS:
return !getServlets().isEmpty();
case WebPackage.WEB_APP__SERVLET_MAPPINGS:
return !getServletMappings().isEmpty();
case WebPackage.WEB_APP__SESSION_CONFIGS:
return !getSessionConfigs().isEmpty();
case WebPackage.WEB_APP__MIME_MAPPINGS:
return !getMimeMappings().isEmpty();
case WebPackage.WEB_APP__WELCOME_FILE_LISTS:
return !getWelcomeFileLists().isEmpty();
case WebPackage.WEB_APP__ERROR_PAGES:
return !getErrorPages().isEmpty();
case WebPackage.WEB_APP__JSP_CONFIGS:
return !getJspConfigs().isEmpty();
case WebPackage.WEB_APP__SECURITY_CONSTRAINTS:
return !getSecurityConstraints().isEmpty();
case WebPackage.WEB_APP__LOGIN_CONFIGS:
return !getLoginConfigs().isEmpty();
case WebPackage.WEB_APP__SECURITY_ROLES:
return !getSecurityRoles().isEmpty();
case WebPackage.WEB_APP__ENV_ENTRIES:
return !getEnvEntries().isEmpty();
case WebPackage.WEB_APP__EJB_REFS:
return !getEjbRefs().isEmpty();
case WebPackage.WEB_APP__EJB_LOCAL_REFS:
return !getEjbLocalRefs().isEmpty();
case WebPackage.WEB_APP__SERVICE_REFS:
return !getServiceRefs().isEmpty();
case WebPackage.WEB_APP__RESOURCE_REFS:
return !getResourceRefs().isEmpty();
case WebPackage.WEB_APP__RESOURCE_ENV_REFS:
return !getResourceEnvRefs().isEmpty();
case WebPackage.WEB_APP__MESSAGE_DESTINATION_REFS:
return !getMessageDestinationRefs().isEmpty();
case WebPackage.WEB_APP__PERSISTENCE_CONTEXT_REFS:
return !getPersistenceContextRefs().isEmpty();
case WebPackage.WEB_APP__PERSISTENCE_UNIT_REFS:
return !getPersistenceUnitRefs().isEmpty();
case WebPackage.WEB_APP__POST_CONSTRUCTS:
return !getPostConstructs().isEmpty();
case WebPackage.WEB_APP__PRE_DESTROYS:
return !getPreDestroys().isEmpty();
case WebPackage.WEB_APP__MESSAGE_DESTINATIONS:
return !getMessageDestinations().isEmpty();
case WebPackage.WEB_APP__LOCAL_ENCODING_MAPPINGS_LISTS:
return !getLocalEncodingMappingsLists().isEmpty();
case WebPackage.WEB_APP__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case WebPackage.WEB_APP__METADATA_COMPLETE:
return isSetMetadataComplete();
case WebPackage.WEB_APP__VERSION:
return isSetVersion();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (group: "); //$NON-NLS-1$
result.append(group);
result.append(", id: "); //$NON-NLS-1$
result.append(id);
result.append(", metadataComplete: "); //$NON-NLS-1$
if (metadataCompleteESet) result.append(metadataComplete); else result.append("<unset>"); //$NON-NLS-1$
result.append(", version: "); //$NON-NLS-1$
if (versionESet) result.append(version); else result.append("<unset>"); //$NON-NLS-1$
result.append(')');
return result.toString();
}
} //WebAppImpl