diff options
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java')
-rw-r--r-- | plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java | 286 |
1 files changed, 0 insertions, 286 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java b/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java deleted file mode 100644 index eb25c40c6..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/jee-models/org/eclipse/jst/javaee/application/internal/impl/ApplicationDeploymentDescriptorImpl.java +++ /dev/null @@ -1,286 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.javaee.application.internal.impl; - -import java.util.Map; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; - -import org.eclipse.emf.ecore.util.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.jst.javaee.application.Application; -import org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor; - -import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Deployment Descriptor</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getMixed <em>Mixed</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> - * <li>{@link org.eclipse.jst.javaee.application.internal.impl.ApplicationDeploymentDescriptorImpl#getApplication <em>Application</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ApplicationDeploymentDescriptorImpl extends EObjectImpl implements ApplicationDeploymentDescriptor { - /** - * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMixed() - * @generated - * @ordered - */ - protected FeatureMap mixed = null; - - /** - * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXMLNSPrefixMap() - * @generated - * @ordered - */ - protected EMap xMLNSPrefixMap = null; - - /** - * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getXSISchemaLocation() - * @generated - * @ordered - */ - protected EMap xSISchemaLocation = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationDeploymentDescriptorImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FeatureMap getMixed() { - if (mixed == null) { - mixed = new BasicFeatureMap(this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED); - } - return mixed; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXMLNSPrefixMap() { - if (xMLNSPrefixMap == null) { - xMLNSPrefixMap = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); - } - return xMLNSPrefixMap.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Map getXSISchemaLocation() { - if (xSISchemaLocation == null) { - xSISchemaLocation = new EcoreEMap(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); - } - return xSISchemaLocation.map(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Application getApplication() { - return (Application)getMixed().get(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, true); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetApplication(Application newApplication, NotificationChain msgs) { - return ((FeatureMap.Internal)getMixed()).basicAdd(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, newApplication, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setApplication(Application newApplication) { - ((FeatureMap.Internal)getMixed()).set(ApplicationPackage.Literals.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION, newApplication); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return ((InternalEList)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return ((InternalEList)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return basicSetApplication(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - if (coreType) return getMixed(); - return ((FeatureMap.Internal)getMixed()).getWrapper(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - if (coreType) return ((EMap.InternalMapView)getXMLNSPrefixMap()).eMap(); - else return getXMLNSPrefixMap(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - if (coreType) return ((EMap.InternalMapView)getXSISchemaLocation()).eMap(); - else return getXSISchemaLocation(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return getApplication(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - ((FeatureMap.Internal)getMixed()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXMLNSPrefixMap()).eMap()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - ((EStructuralFeature.Setting)((EMap.InternalMapView)getXSISchemaLocation()).eMap()).set(newValue); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - setApplication((Application)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - getMixed().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - getXMLNSPrefixMap().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - getXSISchemaLocation().clear(); - return; - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - setApplication((Application)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED: - return mixed != null && !mixed.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP: - return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION: - return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); - case ApplicationPackage.APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION: - return getApplication() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (mixed: "); //$NON-NLS-1$ - result.append(mixed); - result.append(')'); - return result.toString(); - } - -} //ApplicationDeploymentDescriptorImpl
\ No newline at end of file |