/** | |
* Copyright (c) 2010 Mia-Software. | |
* 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: | |
* | |
* Nicolas Guyomar (Mia-Software) - initial API and implementation | |
*/ | |
package org.eclipse.modisco.jee.webapp.webapp25.impl; | |
import java.lang.String; | |
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.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.modisco.jee.webapp.webapp25.DescriptionType; | |
import org.eclipse.modisco.jee.webapp.webapp25.DisplayNameType; | |
import org.eclipse.modisco.jee.webapp.webapp25.EjbLocalRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.EjbRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.EmptyType; | |
import org.eclipse.modisco.jee.webapp.webapp25.EnvEntryType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ErrorPageType; | |
import org.eclipse.modisco.jee.webapp.webapp25.FilterMappingType; | |
import org.eclipse.modisco.jee.webapp.webapp25.FilterType; | |
import org.eclipse.modisco.jee.webapp.webapp25.IconType; | |
import org.eclipse.modisco.jee.webapp.webapp25.JspConfigType; | |
import org.eclipse.modisco.jee.webapp.webapp25.LifecycleCallbackType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ListenerType; | |
import org.eclipse.modisco.jee.webapp.webapp25.LocaleEncodingMappingListType; | |
import org.eclipse.modisco.jee.webapp.webapp25.LoginConfigType; | |
import org.eclipse.modisco.jee.webapp.webapp25.MessageDestinationRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.MessageDestinationType; | |
import org.eclipse.modisco.jee.webapp.webapp25.MimeMappingType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ParamValueType; | |
import org.eclipse.modisco.jee.webapp.webapp25.PersistenceContextRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.PersistenceUnitRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ResourceEnvRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ResourceRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.SecurityConstraintType; | |
import org.eclipse.modisco.jee.webapp.webapp25.SecurityRoleType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ServiceRefType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ServletMappingType; | |
import org.eclipse.modisco.jee.webapp.webapp25.ServletType; | |
import org.eclipse.modisco.jee.webapp.webapp25.SessionConfigType; | |
import org.eclipse.modisco.jee.webapp.webapp25.WebAppType; | |
import org.eclipse.modisco.jee.webapp.webapp25.WebAppVersionType; | |
import org.eclipse.modisco.jee.webapp.webapp25.Webapp25Package; | |
import org.eclipse.modisco.jee.webapp.webapp25.WelcomeFileListType; | |
/** | |
* <!-- begin-user-doc --> | |
* An implementation of the model object '<em><b>Web App Type</b></em>'. | |
* <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getGroup <em>Group</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getDescription <em>Description</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getDisplayName <em>Display Name</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getIcon <em>Icon</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getDistributable <em>Distributable</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getContextParam <em>Context Param</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getFilter <em>Filter</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getFilterMapping <em>Filter Mapping</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getListener <em>Listener</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getServlet <em>Servlet</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getServletMapping <em>Servlet Mapping</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getSessionConfig <em>Session Config</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getMimeMapping <em>Mime Mapping</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getWelcomeFileList <em>Welcome File List</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getErrorPage <em>Error Page</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getJspConfig <em>Jsp Config</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getSecurityConstraint <em>Security Constraint</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getLoginConfig <em>Login Config</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getSecurityRole <em>Security Role</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getEnvEntry <em>Env Entry</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getEjbRef <em>Ejb Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getEjbLocalRef <em>Ejb Local Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getServiceRef <em>Service Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getResourceRef <em>Resource Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getResourceEnvRef <em>Resource Env Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getMessageDestinationRef <em>Message Destination Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getPersistenceContextRef <em>Persistence Context Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getPersistenceUnitRef <em>Persistence Unit Ref</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getPostConstruct <em>Post Construct</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getPreDestroy <em>Pre Destroy</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getMessageDestination <em>Message Destination</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getLocaleEncodingMappingList <em>Locale Encoding Mapping List</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getId <em>Id</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#isMetadataComplete <em>Metadata Complete</em>}</li> | |
* <li>{@link org.eclipse.modisco.jee.webapp.webapp25.impl.WebAppTypeImpl#getVersion <em>Version</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public class WebAppTypeImpl extends EObjectImpl implements WebAppType { | |
/** | |
* 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; | |
/** | |
* 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; | |
/** | |
* 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; | |
/** | |
* 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; | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected WebAppTypeImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return Webapp25Package.Literals.WEB_APP_TYPE; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public FeatureMap getGroup() { | |
if (group == null) { | |
group = new BasicFeatureMap(this, Webapp25Package.WEB_APP_TYPE__GROUP); | |
} | |
return group; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<DescriptionType> getDescription() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__DESCRIPTION); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<DisplayNameType> getDisplayName() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__DISPLAY_NAME); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<IconType> getIcon() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__ICON); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<EmptyType> getDistributable() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__DISTRIBUTABLE); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ParamValueType> getContextParam() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__CONTEXT_PARAM); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<FilterType> getFilter() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__FILTER); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<FilterMappingType> getFilterMapping() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__FILTER_MAPPING); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ListenerType> getListener() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__LISTENER); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ServletType> getServlet() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SERVLET); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ServletMappingType> getServletMapping() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SERVLET_MAPPING); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<SessionConfigType> getSessionConfig() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SESSION_CONFIG); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<MimeMappingType> getMimeMapping() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__MIME_MAPPING); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<WelcomeFileListType> getWelcomeFileList() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__WELCOME_FILE_LIST); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ErrorPageType> getErrorPage() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__ERROR_PAGE); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<JspConfigType> getJspConfig() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__JSP_CONFIG); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<SecurityConstraintType> getSecurityConstraint() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SECURITY_CONSTRAINT); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<LoginConfigType> getLoginConfig() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__LOGIN_CONFIG); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<SecurityRoleType> getSecurityRole() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SECURITY_ROLE); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<EnvEntryType> getEnvEntry() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__ENV_ENTRY); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<EjbRefType> getEjbRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__EJB_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<EjbLocalRefType> getEjbLocalRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__EJB_LOCAL_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ServiceRefType> getServiceRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__SERVICE_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ResourceRefType> getResourceRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__RESOURCE_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<ResourceEnvRefType> getResourceEnvRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__RESOURCE_ENV_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<MessageDestinationRefType> getMessageDestinationRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__MESSAGE_DESTINATION_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<PersistenceContextRefType> getPersistenceContextRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<PersistenceUnitRefType> getPersistenceUnitRef() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__PERSISTENCE_UNIT_REF); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<LifecycleCallbackType> getPostConstruct() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__POST_CONSTRUCT); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<LifecycleCallbackType> getPreDestroy() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__PRE_DESTROY); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<MessageDestinationType> getMessageDestination() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__MESSAGE_DESTINATION); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public EList<LocaleEncodingMappingListType> getLocaleEncodingMappingList() { | |
return getGroup().list(Webapp25Package.Literals.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST); | |
} | |
/** | |
* <!-- 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, Webapp25Package.WEB_APP_TYPE__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, Webapp25Package.WEB_APP_TYPE__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, Webapp25Package.WEB_APP_TYPE__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, Webapp25Package.WEB_APP_TYPE__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, Webapp25Package.WEB_APP_TYPE__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public boolean isSetVersion() { | |
return versionESet; | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | |
switch (featureID) { | |
case Webapp25Package.WEB_APP_TYPE__GROUP: | |
return ((InternalEList<?>)getGroup()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__DESCRIPTION: | |
return ((InternalEList<?>)getDescription()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__DISPLAY_NAME: | |
return ((InternalEList<?>)getDisplayName()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__ICON: | |
return ((InternalEList<?>)getIcon()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__DISTRIBUTABLE: | |
return ((InternalEList<?>)getDistributable()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__CONTEXT_PARAM: | |
return ((InternalEList<?>)getContextParam()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__FILTER: | |
return ((InternalEList<?>)getFilter()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__FILTER_MAPPING: | |
return ((InternalEList<?>)getFilterMapping()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__LISTENER: | |
return ((InternalEList<?>)getListener()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET: | |
return ((InternalEList<?>)getServlet()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET_MAPPING: | |
return ((InternalEList<?>)getServletMapping()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SESSION_CONFIG: | |
return ((InternalEList<?>)getSessionConfig()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__MIME_MAPPING: | |
return ((InternalEList<?>)getMimeMapping()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__WELCOME_FILE_LIST: | |
return ((InternalEList<?>)getWelcomeFileList()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__ERROR_PAGE: | |
return ((InternalEList<?>)getErrorPage()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__JSP_CONFIG: | |
return ((InternalEList<?>)getJspConfig()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_CONSTRAINT: | |
return ((InternalEList<?>)getSecurityConstraint()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__LOGIN_CONFIG: | |
return ((InternalEList<?>)getLoginConfig()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_ROLE: | |
return ((InternalEList<?>)getSecurityRole()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__ENV_ENTRY: | |
return ((InternalEList<?>)getEnvEntry()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__EJB_REF: | |
return ((InternalEList<?>)getEjbRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__EJB_LOCAL_REF: | |
return ((InternalEList<?>)getEjbLocalRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__SERVICE_REF: | |
return ((InternalEList<?>)getServiceRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_REF: | |
return ((InternalEList<?>)getResourceRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_ENV_REF: | |
return ((InternalEList<?>)getResourceEnvRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION_REF: | |
return ((InternalEList<?>)getMessageDestinationRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF: | |
return ((InternalEList<?>)getPersistenceContextRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_UNIT_REF: | |
return ((InternalEList<?>)getPersistenceUnitRef()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__POST_CONSTRUCT: | |
return ((InternalEList<?>)getPostConstruct()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__PRE_DESTROY: | |
return ((InternalEList<?>)getPreDestroy()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION: | |
return ((InternalEList<?>)getMessageDestination()).basicRemove(otherEnd, msgs); | |
case Webapp25Package.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST: | |
return ((InternalEList<?>)getLocaleEncodingMappingList()).basicRemove(otherEnd, msgs); | |
} | |
return super.eInverseRemove(otherEnd, featureID, msgs); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public Object eGet(int featureID, boolean resolve, boolean coreType) { | |
switch (featureID) { | |
case Webapp25Package.WEB_APP_TYPE__GROUP: | |
if (coreType) return getGroup(); | |
return ((FeatureMap.Internal)getGroup()).getWrapper(); | |
case Webapp25Package.WEB_APP_TYPE__DESCRIPTION: | |
return getDescription(); | |
case Webapp25Package.WEB_APP_TYPE__DISPLAY_NAME: | |
return getDisplayName(); | |
case Webapp25Package.WEB_APP_TYPE__ICON: | |
return getIcon(); | |
case Webapp25Package.WEB_APP_TYPE__DISTRIBUTABLE: | |
return getDistributable(); | |
case Webapp25Package.WEB_APP_TYPE__CONTEXT_PARAM: | |
return getContextParam(); | |
case Webapp25Package.WEB_APP_TYPE__FILTER: | |
return getFilter(); | |
case Webapp25Package.WEB_APP_TYPE__FILTER_MAPPING: | |
return getFilterMapping(); | |
case Webapp25Package.WEB_APP_TYPE__LISTENER: | |
return getListener(); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET: | |
return getServlet(); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET_MAPPING: | |
return getServletMapping(); | |
case Webapp25Package.WEB_APP_TYPE__SESSION_CONFIG: | |
return getSessionConfig(); | |
case Webapp25Package.WEB_APP_TYPE__MIME_MAPPING: | |
return getMimeMapping(); | |
case Webapp25Package.WEB_APP_TYPE__WELCOME_FILE_LIST: | |
return getWelcomeFileList(); | |
case Webapp25Package.WEB_APP_TYPE__ERROR_PAGE: | |
return getErrorPage(); | |
case Webapp25Package.WEB_APP_TYPE__JSP_CONFIG: | |
return getJspConfig(); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_CONSTRAINT: | |
return getSecurityConstraint(); | |
case Webapp25Package.WEB_APP_TYPE__LOGIN_CONFIG: | |
return getLoginConfig(); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_ROLE: | |
return getSecurityRole(); | |
case Webapp25Package.WEB_APP_TYPE__ENV_ENTRY: | |
return getEnvEntry(); | |
case Webapp25Package.WEB_APP_TYPE__EJB_REF: | |
return getEjbRef(); | |
case Webapp25Package.WEB_APP_TYPE__EJB_LOCAL_REF: | |
return getEjbLocalRef(); | |
case Webapp25Package.WEB_APP_TYPE__SERVICE_REF: | |
return getServiceRef(); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_REF: | |
return getResourceRef(); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_ENV_REF: | |
return getResourceEnvRef(); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION_REF: | |
return getMessageDestinationRef(); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF: | |
return getPersistenceContextRef(); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_UNIT_REF: | |
return getPersistenceUnitRef(); | |
case Webapp25Package.WEB_APP_TYPE__POST_CONSTRUCT: | |
return getPostConstruct(); | |
case Webapp25Package.WEB_APP_TYPE__PRE_DESTROY: | |
return getPreDestroy(); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION: | |
return getMessageDestination(); | |
case Webapp25Package.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST: | |
return getLocaleEncodingMappingList(); | |
case Webapp25Package.WEB_APP_TYPE__ID: | |
return getId(); | |
case Webapp25Package.WEB_APP_TYPE__METADATA_COMPLETE: | |
return isMetadataComplete(); | |
case Webapp25Package.WEB_APP_TYPE__VERSION: | |
return getVersion(); | |
} | |
return super.eGet(featureID, resolve, coreType); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@SuppressWarnings("unchecked") | |
@Override | |
public void eSet(int featureID, Object newValue) { | |
switch (featureID) { | |
case Webapp25Package.WEB_APP_TYPE__GROUP: | |
((FeatureMap.Internal)getGroup()).set(newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DESCRIPTION: | |
getDescription().clear(); | |
getDescription().addAll((Collection<? extends DescriptionType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DISPLAY_NAME: | |
getDisplayName().clear(); | |
getDisplayName().addAll((Collection<? extends DisplayNameType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ICON: | |
getIcon().clear(); | |
getIcon().addAll((Collection<? extends IconType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DISTRIBUTABLE: | |
getDistributable().clear(); | |
getDistributable().addAll((Collection<? extends EmptyType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__CONTEXT_PARAM: | |
getContextParam().clear(); | |
getContextParam().addAll((Collection<? extends ParamValueType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__FILTER: | |
getFilter().clear(); | |
getFilter().addAll((Collection<? extends FilterType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__FILTER_MAPPING: | |
getFilterMapping().clear(); | |
getFilterMapping().addAll((Collection<? extends FilterMappingType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LISTENER: | |
getListener().clear(); | |
getListener().addAll((Collection<? extends ListenerType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVLET: | |
getServlet().clear(); | |
getServlet().addAll((Collection<? extends ServletType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVLET_MAPPING: | |
getServletMapping().clear(); | |
getServletMapping().addAll((Collection<? extends ServletMappingType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SESSION_CONFIG: | |
getSessionConfig().clear(); | |
getSessionConfig().addAll((Collection<? extends SessionConfigType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MIME_MAPPING: | |
getMimeMapping().clear(); | |
getMimeMapping().addAll((Collection<? extends MimeMappingType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__WELCOME_FILE_LIST: | |
getWelcomeFileList().clear(); | |
getWelcomeFileList().addAll((Collection<? extends WelcomeFileListType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ERROR_PAGE: | |
getErrorPage().clear(); | |
getErrorPage().addAll((Collection<? extends ErrorPageType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__JSP_CONFIG: | |
getJspConfig().clear(); | |
getJspConfig().addAll((Collection<? extends JspConfigType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_CONSTRAINT: | |
getSecurityConstraint().clear(); | |
getSecurityConstraint().addAll((Collection<? extends SecurityConstraintType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LOGIN_CONFIG: | |
getLoginConfig().clear(); | |
getLoginConfig().addAll((Collection<? extends LoginConfigType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_ROLE: | |
getSecurityRole().clear(); | |
getSecurityRole().addAll((Collection<? extends SecurityRoleType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ENV_ENTRY: | |
getEnvEntry().clear(); | |
getEnvEntry().addAll((Collection<? extends EnvEntryType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__EJB_REF: | |
getEjbRef().clear(); | |
getEjbRef().addAll((Collection<? extends EjbRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__EJB_LOCAL_REF: | |
getEjbLocalRef().clear(); | |
getEjbLocalRef().addAll((Collection<? extends EjbLocalRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVICE_REF: | |
getServiceRef().clear(); | |
getServiceRef().addAll((Collection<? extends ServiceRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_REF: | |
getResourceRef().clear(); | |
getResourceRef().addAll((Collection<? extends ResourceRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_ENV_REF: | |
getResourceEnvRef().clear(); | |
getResourceEnvRef().addAll((Collection<? extends ResourceEnvRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION_REF: | |
getMessageDestinationRef().clear(); | |
getMessageDestinationRef().addAll((Collection<? extends MessageDestinationRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF: | |
getPersistenceContextRef().clear(); | |
getPersistenceContextRef().addAll((Collection<? extends PersistenceContextRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_UNIT_REF: | |
getPersistenceUnitRef().clear(); | |
getPersistenceUnitRef().addAll((Collection<? extends PersistenceUnitRefType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__POST_CONSTRUCT: | |
getPostConstruct().clear(); | |
getPostConstruct().addAll((Collection<? extends LifecycleCallbackType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PRE_DESTROY: | |
getPreDestroy().clear(); | |
getPreDestroy().addAll((Collection<? extends LifecycleCallbackType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION: | |
getMessageDestination().clear(); | |
getMessageDestination().addAll((Collection<? extends MessageDestinationType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST: | |
getLocaleEncodingMappingList().clear(); | |
getLocaleEncodingMappingList().addAll((Collection<? extends LocaleEncodingMappingListType>)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ID: | |
setId((String)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__METADATA_COMPLETE: | |
setMetadataComplete((Boolean)newValue); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__VERSION: | |
setVersion((WebAppVersionType)newValue); | |
return; | |
} | |
super.eSet(featureID, newValue); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eUnset(int featureID) { | |
switch (featureID) { | |
case Webapp25Package.WEB_APP_TYPE__GROUP: | |
getGroup().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DESCRIPTION: | |
getDescription().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DISPLAY_NAME: | |
getDisplayName().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ICON: | |
getIcon().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__DISTRIBUTABLE: | |
getDistributable().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__CONTEXT_PARAM: | |
getContextParam().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__FILTER: | |
getFilter().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__FILTER_MAPPING: | |
getFilterMapping().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LISTENER: | |
getListener().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVLET: | |
getServlet().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVLET_MAPPING: | |
getServletMapping().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SESSION_CONFIG: | |
getSessionConfig().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MIME_MAPPING: | |
getMimeMapping().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__WELCOME_FILE_LIST: | |
getWelcomeFileList().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ERROR_PAGE: | |
getErrorPage().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__JSP_CONFIG: | |
getJspConfig().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_CONSTRAINT: | |
getSecurityConstraint().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LOGIN_CONFIG: | |
getLoginConfig().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_ROLE: | |
getSecurityRole().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ENV_ENTRY: | |
getEnvEntry().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__EJB_REF: | |
getEjbRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__EJB_LOCAL_REF: | |
getEjbLocalRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__SERVICE_REF: | |
getServiceRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_REF: | |
getResourceRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_ENV_REF: | |
getResourceEnvRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION_REF: | |
getMessageDestinationRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF: | |
getPersistenceContextRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_UNIT_REF: | |
getPersistenceUnitRef().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__POST_CONSTRUCT: | |
getPostConstruct().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__PRE_DESTROY: | |
getPreDestroy().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION: | |
getMessageDestination().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST: | |
getLocaleEncodingMappingList().clear(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__ID: | |
setId(ID_EDEFAULT); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__METADATA_COMPLETE: | |
unsetMetadataComplete(); | |
return; | |
case Webapp25Package.WEB_APP_TYPE__VERSION: | |
unsetVersion(); | |
return; | |
} | |
super.eUnset(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public boolean eIsSet(int featureID) { | |
switch (featureID) { | |
case Webapp25Package.WEB_APP_TYPE__GROUP: | |
return group != null && !group.isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__DESCRIPTION: | |
return !getDescription().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__DISPLAY_NAME: | |
return !getDisplayName().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__ICON: | |
return !getIcon().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__DISTRIBUTABLE: | |
return !getDistributable().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__CONTEXT_PARAM: | |
return !getContextParam().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__FILTER: | |
return !getFilter().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__FILTER_MAPPING: | |
return !getFilterMapping().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__LISTENER: | |
return !getListener().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET: | |
return !getServlet().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SERVLET_MAPPING: | |
return !getServletMapping().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SESSION_CONFIG: | |
return !getSessionConfig().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__MIME_MAPPING: | |
return !getMimeMapping().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__WELCOME_FILE_LIST: | |
return !getWelcomeFileList().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__ERROR_PAGE: | |
return !getErrorPage().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__JSP_CONFIG: | |
return !getJspConfig().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_CONSTRAINT: | |
return !getSecurityConstraint().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__LOGIN_CONFIG: | |
return !getLoginConfig().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SECURITY_ROLE: | |
return !getSecurityRole().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__ENV_ENTRY: | |
return !getEnvEntry().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__EJB_REF: | |
return !getEjbRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__EJB_LOCAL_REF: | |
return !getEjbLocalRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__SERVICE_REF: | |
return !getServiceRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_REF: | |
return !getResourceRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__RESOURCE_ENV_REF: | |
return !getResourceEnvRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION_REF: | |
return !getMessageDestinationRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_CONTEXT_REF: | |
return !getPersistenceContextRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__PERSISTENCE_UNIT_REF: | |
return !getPersistenceUnitRef().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__POST_CONSTRUCT: | |
return !getPostConstruct().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__PRE_DESTROY: | |
return !getPreDestroy().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__MESSAGE_DESTINATION: | |
return !getMessageDestination().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__LOCALE_ENCODING_MAPPING_LIST: | |
return !getLocaleEncodingMappingList().isEmpty(); | |
case Webapp25Package.WEB_APP_TYPE__ID: | |
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); | |
case Webapp25Package.WEB_APP_TYPE__METADATA_COMPLETE: | |
return isSetMetadataComplete(); | |
case Webapp25Package.WEB_APP_TYPE__VERSION: | |
return isSetVersion(); | |
} | |
return super.eIsSet(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
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(); | |
} | |
} //WebAppTypeImpl |