You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by da...@apache.org on 2005/08/17 00:40:54 UTC

svn commit: r233071 [6/22] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/ org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.deployment.model/META-INF/ org.apache.geronimo.deployment.model/emf/ o...

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,551 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+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.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Ext Module Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getConnector <em>Connector</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getEjb <em>Ejb</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getJava <em>Java</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getWeb <em>Web</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getInternalPath <em>Internal Path</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getExternalPath <em>External Path</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getAny <em>Any</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ExtModuleTypeImpl extends EObjectImpl implements ExtModuleType {
+    /**
+     * The cached value of the '{@link #getConnector() <em>Connector</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getConnector()
+     * @generated
+     * @ordered
+     */
+    protected PathType connector = null;
+
+    /**
+     * The cached value of the '{@link #getEjb() <em>Ejb</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjb()
+     * @generated
+     * @ordered
+     */
+    protected PathType ejb = null;
+
+    /**
+     * The cached value of the '{@link #getJava() <em>Java</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getJava()
+     * @generated
+     * @ordered
+     */
+    protected PathType java = null;
+
+    /**
+     * The cached value of the '{@link #getWeb() <em>Web</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getWeb()
+     * @generated
+     * @ordered
+     */
+    protected PathType web = null;
+
+    /**
+     * The default value of the '{@link #getInternalPath() <em>Internal Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getInternalPath()
+     * @generated
+     * @ordered
+     */
+    protected static final String INTERNAL_PATH_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getInternalPath() <em>Internal Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getInternalPath()
+     * @generated
+     * @ordered
+     */
+    protected String internalPath = INTERNAL_PATH_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getExternalPath() <em>External Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getExternalPath()
+     * @generated
+     * @ordered
+     */
+    protected static final String EXTERNAL_PATH_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getExternalPath() <em>External Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getExternalPath()
+     * @generated
+     * @ordered
+     */
+    protected String externalPath = EXTERNAL_PATH_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getAny()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap any = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ExtModuleTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return ApplicationPackage.eINSTANCE.getExtModuleType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getConnector() {
+        return connector;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetConnector(PathType newConnector, NotificationChain msgs) {
+        PathType oldConnector = connector;
+        connector = newConnector;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, oldConnector, newConnector);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setConnector(PathType newConnector) {
+        if (newConnector != connector) {
+            NotificationChain msgs = null;
+            if (connector != null)
+                msgs = ((InternalEObject)connector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, null, msgs);
+            if (newConnector != null)
+                msgs = ((InternalEObject)newConnector).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, null, msgs);
+            msgs = basicSetConnector(newConnector, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, newConnector, newConnector));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getEjb() {
+        return ejb;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEjb(PathType newEjb, NotificationChain msgs) {
+        PathType oldEjb = ejb;
+        ejb = newEjb;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EJB, oldEjb, newEjb);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjb(PathType newEjb) {
+        if (newEjb != ejb) {
+            NotificationChain msgs = null;
+            if (ejb != null)
+                msgs = ((InternalEObject)ejb).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__EJB, null, msgs);
+            if (newEjb != null)
+                msgs = ((InternalEObject)newEjb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__EJB, null, msgs);
+            msgs = basicSetEjb(newEjb, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EJB, newEjb, newEjb));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getJava() {
+        return java;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetJava(PathType newJava, NotificationChain msgs) {
+        PathType oldJava = java;
+        java = newJava;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__JAVA, oldJava, newJava);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setJava(PathType newJava) {
+        if (newJava != java) {
+            NotificationChain msgs = null;
+            if (java != null)
+                msgs = ((InternalEObject)java).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__JAVA, null, msgs);
+            if (newJava != null)
+                msgs = ((InternalEObject)newJava).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__JAVA, null, msgs);
+            msgs = basicSetJava(newJava, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__JAVA, newJava, newJava));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getWeb() {
+        return web;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetWeb(PathType newWeb, NotificationChain msgs) {
+        PathType oldWeb = web;
+        web = newWeb;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__WEB, oldWeb, newWeb);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setWeb(PathType newWeb) {
+        if (newWeb != web) {
+            NotificationChain msgs = null;
+            if (web != null)
+                msgs = ((InternalEObject)web).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__WEB, null, msgs);
+            if (newWeb != null)
+                msgs = ((InternalEObject)newWeb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__WEB, null, msgs);
+            msgs = basicSetWeb(newWeb, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__WEB, newWeb, newWeb));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getInternalPath() {
+        return internalPath;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setInternalPath(String newInternalPath) {
+        String oldInternalPath = internalPath;
+        internalPath = newInternalPath;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH, oldInternalPath, internalPath));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getExternalPath() {
+        return externalPath;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setExternalPath(String newExternalPath) {
+        String oldExternalPath = externalPath;
+        externalPath = newExternalPath;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH, oldExternalPath, externalPath));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getAny() {
+        if (any == null) {
+            any = new BasicFeatureMap(this, ApplicationPackage.EXT_MODULE_TYPE__ANY);
+        }
+        return any;
+    }
+
+    /**
+     * <!-- 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 ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+                    return basicSetConnector(null, msgs);
+                case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+                    return basicSetEjb(null, msgs);
+                case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+                    return basicSetJava(null, msgs);
+                case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+                    return basicSetWeb(null, msgs);
+                case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+                    return ((InternalEList)getAny()).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 ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+                return getConnector();
+            case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+                return getEjb();
+            case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+                return getJava();
+            case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+                return getWeb();
+            case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+                return getInternalPath();
+            case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+                return getExternalPath();
+            case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+                return getAny();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+                setConnector((PathType)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+                setEjb((PathType)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+                setJava((PathType)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+                setWeb((PathType)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+                setInternalPath((String)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+                setExternalPath((String)newValue);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+                getAny().clear();
+                getAny().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+                setConnector((PathType)null);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+                setEjb((PathType)null);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+                setJava((PathType)null);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+                setWeb((PathType)null);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+                setInternalPath(INTERNAL_PATH_EDEFAULT);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+                setExternalPath(EXTERNAL_PATH_EDEFAULT);
+                return;
+            case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+                getAny().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+                return connector != null;
+            case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+                return ejb != null;
+            case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+                return java != null;
+            case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+                return web != null;
+            case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+                return INTERNAL_PATH_EDEFAULT == null ? internalPath != null : !INTERNAL_PATH_EDEFAULT.equals(internalPath);
+            case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+                return EXTERNAL_PATH_EDEFAULT == null ? externalPath != null : !EXTERNAL_PATH_EDEFAULT.equals(externalPath);
+            case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+                return any != null && !any.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(" (internalPath: ");
+        result.append(internalPath);
+        result.append(", externalPath: ");
+        result.append(externalPath);
+        result.append(", any: ");
+        result.append(any);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ExtModuleTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ModuleTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ModuleTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ModuleTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ModuleTypeImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,509 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+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.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Module Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getConnector <em>Connector</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getEjb <em>Ejb</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getJava <em>Java</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getWeb <em>Web</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getAltDd <em>Alt Dd</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ModuleTypeImpl#getAny <em>Any</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ModuleTypeImpl extends EObjectImpl implements ModuleType {
+    /**
+     * The cached value of the '{@link #getConnector() <em>Connector</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getConnector()
+     * @generated
+     * @ordered
+     */
+    protected PathType connector = null;
+
+    /**
+     * The cached value of the '{@link #getEjb() <em>Ejb</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjb()
+     * @generated
+     * @ordered
+     */
+    protected PathType ejb = null;
+
+    /**
+     * The cached value of the '{@link #getJava() <em>Java</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getJava()
+     * @generated
+     * @ordered
+     */
+    protected PathType java = null;
+
+    /**
+     * The cached value of the '{@link #getWeb() <em>Web</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getWeb()
+     * @generated
+     * @ordered
+     */
+    protected PathType web = null;
+
+    /**
+     * The cached value of the '{@link #getAltDd() <em>Alt Dd</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getAltDd()
+     * @generated
+     * @ordered
+     */
+    protected PathType altDd = null;
+
+    /**
+     * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getAny()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap any = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ModuleTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return ApplicationPackage.eINSTANCE.getModuleType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getConnector() {
+        return connector;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetConnector(PathType newConnector, NotificationChain msgs) {
+        PathType oldConnector = connector;
+        connector = newConnector;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__CONNECTOR, oldConnector, newConnector);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setConnector(PathType newConnector) {
+        if (newConnector != connector) {
+            NotificationChain msgs = null;
+            if (connector != null)
+                msgs = ((InternalEObject)connector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__CONNECTOR, null, msgs);
+            if (newConnector != null)
+                msgs = ((InternalEObject)newConnector).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__CONNECTOR, null, msgs);
+            msgs = basicSetConnector(newConnector, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__CONNECTOR, newConnector, newConnector));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getEjb() {
+        return ejb;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEjb(PathType newEjb, NotificationChain msgs) {
+        PathType oldEjb = ejb;
+        ejb = newEjb;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__EJB, oldEjb, newEjb);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjb(PathType newEjb) {
+        if (newEjb != ejb) {
+            NotificationChain msgs = null;
+            if (ejb != null)
+                msgs = ((InternalEObject)ejb).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__EJB, null, msgs);
+            if (newEjb != null)
+                msgs = ((InternalEObject)newEjb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__EJB, null, msgs);
+            msgs = basicSetEjb(newEjb, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__EJB, newEjb, newEjb));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getJava() {
+        return java;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetJava(PathType newJava, NotificationChain msgs) {
+        PathType oldJava = java;
+        java = newJava;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__JAVA, oldJava, newJava);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setJava(PathType newJava) {
+        if (newJava != java) {
+            NotificationChain msgs = null;
+            if (java != null)
+                msgs = ((InternalEObject)java).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__JAVA, null, msgs);
+            if (newJava != null)
+                msgs = ((InternalEObject)newJava).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__JAVA, null, msgs);
+            msgs = basicSetJava(newJava, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__JAVA, newJava, newJava));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getWeb() {
+        return web;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetWeb(PathType newWeb, NotificationChain msgs) {
+        PathType oldWeb = web;
+        web = newWeb;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__WEB, oldWeb, newWeb);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setWeb(PathType newWeb) {
+        if (newWeb != web) {
+            NotificationChain msgs = null;
+            if (web != null)
+                msgs = ((InternalEObject)web).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__WEB, null, msgs);
+            if (newWeb != null)
+                msgs = ((InternalEObject)newWeb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__WEB, null, msgs);
+            msgs = basicSetWeb(newWeb, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__WEB, newWeb, newWeb));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PathType getAltDd() {
+        return altDd;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetAltDd(PathType newAltDd, NotificationChain msgs) {
+        PathType oldAltDd = altDd;
+        altDd = newAltDd;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__ALT_DD, oldAltDd, newAltDd);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setAltDd(PathType newAltDd) {
+        if (newAltDd != altDd) {
+            NotificationChain msgs = null;
+            if (altDd != null)
+                msgs = ((InternalEObject)altDd).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__ALT_DD, null, msgs);
+            if (newAltDd != null)
+                msgs = ((InternalEObject)newAltDd).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.MODULE_TYPE__ALT_DD, null, msgs);
+            msgs = basicSetAltDd(newAltDd, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.MODULE_TYPE__ALT_DD, newAltDd, newAltDd));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getAny() {
+        if (any == null) {
+            any = new BasicFeatureMap(this, ApplicationPackage.MODULE_TYPE__ANY);
+        }
+        return any;
+    }
+
+    /**
+     * <!-- 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 ApplicationPackage.MODULE_TYPE__CONNECTOR:
+                    return basicSetConnector(null, msgs);
+                case ApplicationPackage.MODULE_TYPE__EJB:
+                    return basicSetEjb(null, msgs);
+                case ApplicationPackage.MODULE_TYPE__JAVA:
+                    return basicSetJava(null, msgs);
+                case ApplicationPackage.MODULE_TYPE__WEB:
+                    return basicSetWeb(null, msgs);
+                case ApplicationPackage.MODULE_TYPE__ALT_DD:
+                    return basicSetAltDd(null, msgs);
+                case ApplicationPackage.MODULE_TYPE__ANY:
+                    return ((InternalEList)getAny()).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 ApplicationPackage.MODULE_TYPE__CONNECTOR:
+                return getConnector();
+            case ApplicationPackage.MODULE_TYPE__EJB:
+                return getEjb();
+            case ApplicationPackage.MODULE_TYPE__JAVA:
+                return getJava();
+            case ApplicationPackage.MODULE_TYPE__WEB:
+                return getWeb();
+            case ApplicationPackage.MODULE_TYPE__ALT_DD:
+                return getAltDd();
+            case ApplicationPackage.MODULE_TYPE__ANY:
+                return getAny();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.MODULE_TYPE__CONNECTOR:
+                setConnector((PathType)newValue);
+                return;
+            case ApplicationPackage.MODULE_TYPE__EJB:
+                setEjb((PathType)newValue);
+                return;
+            case ApplicationPackage.MODULE_TYPE__JAVA:
+                setJava((PathType)newValue);
+                return;
+            case ApplicationPackage.MODULE_TYPE__WEB:
+                setWeb((PathType)newValue);
+                return;
+            case ApplicationPackage.MODULE_TYPE__ALT_DD:
+                setAltDd((PathType)newValue);
+                return;
+            case ApplicationPackage.MODULE_TYPE__ANY:
+                getAny().clear();
+                getAny().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.MODULE_TYPE__CONNECTOR:
+                setConnector((PathType)null);
+                return;
+            case ApplicationPackage.MODULE_TYPE__EJB:
+                setEjb((PathType)null);
+                return;
+            case ApplicationPackage.MODULE_TYPE__JAVA:
+                setJava((PathType)null);
+                return;
+            case ApplicationPackage.MODULE_TYPE__WEB:
+                setWeb((PathType)null);
+                return;
+            case ApplicationPackage.MODULE_TYPE__ALT_DD:
+                setAltDd((PathType)null);
+                return;
+            case ApplicationPackage.MODULE_TYPE__ANY:
+                getAny().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.MODULE_TYPE__CONNECTOR:
+                return connector != null;
+            case ApplicationPackage.MODULE_TYPE__EJB:
+                return ejb != null;
+            case ApplicationPackage.MODULE_TYPE__JAVA:
+                return java != null;
+            case ApplicationPackage.MODULE_TYPE__WEB:
+                return web != null;
+            case ApplicationPackage.MODULE_TYPE__ALT_DD:
+                return altDd != null;
+            case ApplicationPackage.MODULE_TYPE__ANY:
+                return any != null && !any.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(" (any: ");
+        result.append(any);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ModuleTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ModuleTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/PathTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/PathTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/PathTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/PathTypeImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,116 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.impl;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Path Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class PathTypeImpl extends StringImpl implements PathType {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PathTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return ApplicationPackage.eINSTANCE.getPathType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.PATH_TYPE__VALUE:
+                return getValue();
+            case ApplicationPackage.PATH_TYPE__ID:
+                return getId();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.PATH_TYPE__VALUE:
+                setValue((String)newValue);
+                return;
+            case ApplicationPackage.PATH_TYPE__ID:
+                setId((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.PATH_TYPE__VALUE:
+                setValue(VALUE_EDEFAULT);
+                return;
+            case ApplicationPackage.PATH_TYPE__ID:
+                setId(ID_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.PATH_TYPE__VALUE:
+                return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+            case ApplicationPackage.PATH_TYPE__ID:
+                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+} //PathTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/PathTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/StringImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/StringImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/StringImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/StringImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,224 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.impl;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>String</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.StringImpl#getValue <em>Value</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.StringImpl#getId <em>Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class StringImpl extends EObjectImpl implements org.apache.geronimo.xml.ns.j2ee.application.String {
+    /**
+     * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getValue()
+     * @generated
+     * @ordered
+     */
+    protected static final String VALUE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getValue()
+     * @generated
+     * @ordered
+     */
+    protected String value = VALUE_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected static final String ID_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected String id = ID_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected StringImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return ApplicationPackage.eINSTANCE.getString();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setValue(String newValue) {
+        String oldValue = value;
+        value = newValue;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.STRING__VALUE, oldValue, value));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setId(String newId) {
+        String oldId = id;
+        id = newId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.STRING__ID, oldId, id));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.STRING__VALUE:
+                return getValue();
+            case ApplicationPackage.STRING__ID:
+                return getId();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.STRING__VALUE:
+                setValue((String)newValue);
+                return;
+            case ApplicationPackage.STRING__ID:
+                setId((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.STRING__VALUE:
+                setValue(VALUE_EDEFAULT);
+                return;
+            case ApplicationPackage.STRING__ID:
+                setId(ID_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case ApplicationPackage.STRING__VALUE:
+                return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+            case ApplicationPackage.STRING__ID:
+                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+        }
+        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(" (value: ");
+        result.append(value);
+        result.append(", id: ");
+        result.append(id);
+        result.append(')');
+        return result.toString();
+    }
+
+} //StringImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/StringImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationAdapterFactory.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationAdapterFactory.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationAdapterFactory.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,219 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.util;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
+import org.apache.geronimo.xml.ns.j2ee.application.DocumentRoot;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.ModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage
+ * @generated
+ */
+public class ApplicationAdapterFactory extends AdapterFactoryImpl {
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ApplicationPackage modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ApplicationAdapterFactory() {
+        if (modelPackage == null) {
+            modelPackage = ApplicationPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+     * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+     * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+    public boolean isFactoryForType(Object object) {
+        if (object == modelPackage) {
+            return true;
+        }
+        if (object instanceof EObject) {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+    /**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ApplicationSwitch modelSwitch =
+        new ApplicationSwitch() {
+            public Object caseApplicationType(ApplicationType object) {
+                return createApplicationTypeAdapter();
+            }
+            public Object caseDocumentRoot(DocumentRoot object) {
+                return createDocumentRootAdapter();
+            }
+            public Object caseExtModuleType(ExtModuleType object) {
+                return createExtModuleTypeAdapter();
+            }
+            public Object caseModuleType(ModuleType object) {
+                return createModuleTypeAdapter();
+            }
+            public Object casePathType(PathType object) {
+                return createPathTypeAdapter();
+            }
+            public Object caseString(org.apache.geronimo.xml.ns.j2ee.application.String object) {
+                return createStringAdapter();
+            }
+            public Object defaultCase(EObject object) {
+                return createEObjectAdapter();
+            }
+        };
+
+    /**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+    public Adapter createAdapter(Notifier target) {
+        return (Adapter)modelSwitch.doSwitch((EObject)target);
+    }
+
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.ApplicationType <em>Type</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.apache.geronimo.xml.ns.j2ee.application.ApplicationType
+     * @generated
+     */
+    public Adapter createApplicationTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.DocumentRoot <em>Document Root</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.apache.geronimo.xml.ns.j2ee.application.DocumentRoot
+     * @generated
+     */
+    public Adapter createDocumentRootAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType <em>Ext Module Type</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.apache.geronimo.xml.ns.j2ee.application.ExtModuleType
+     * @generated
+     */
+    public Adapter createExtModuleTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.ModuleType <em>Module Type</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.apache.geronimo.xml.ns.j2ee.application.ModuleType
+     * @generated
+     */
+    public Adapter createModuleTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.PathType <em>Path Type</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.apache.geronimo.xml.ns.j2ee.application.PathType
+     * @generated
+     */
+    public Adapter createPathTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.j2ee.application.String <em>String</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.apache.geronimo.xml.ns.j2ee.application.String
+     * @generated
+     */
+    public Adapter createStringAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+    public Adapter createEObjectAdapter() {
+        return null;
+    }
+
+} //ApplicationAdapterFactory

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationAdapterFactory.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceFactoryImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceFactoryImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceFactoryImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,62 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.j2ee.application.util.ApplicationResourceImpl
+ * @generated
+ */
+public class ApplicationResourceFactoryImpl extends ResourceFactoryImpl {
+    /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ApplicationResourceFactoryImpl() {
+        super();
+    }
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Resource createResource(URI uri) {
+        XMLResource result = new ApplicationResourceImpl(uri);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+        return result;
+    }
+
+} //ApplicationResourceFactoryImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceFactoryImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,41 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.j2ee.application.util.ApplicationResourceFactoryImpl
+ * @generated
+ */
+public class ApplicationResourceImpl extends XMLResourceImpl {
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+    public ApplicationResourceImpl(URI uri) {
+        super(uri);
+    }
+
+} //ApplicationResourceImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationResourceImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationSwitch.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationSwitch.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationSwitch.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationSwitch.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,250 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.j2ee.application.util;
+
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
+import org.apache.geronimo.xml.ns.j2ee.application.DocumentRoot;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.ModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage
+ * @generated
+ */
+public class ApplicationSwitch {
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ApplicationPackage modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ApplicationSwitch() {
+        if (modelPackage == null) {
+            modelPackage = ApplicationPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    public Object doSwitch(EObject theEObject) {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(EClass theEClass, EObject theEObject) {
+        if (theEClass.eContainer() == modelPackage) {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else {
+            List eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch((EClass)eSuperTypes.get(0), theEObject);
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(int classifierID, EObject theEObject) {
+        switch (classifierID) {
+            case ApplicationPackage.APPLICATION_TYPE: {
+                ApplicationType applicationType = (ApplicationType)theEObject;
+                Object result = caseApplicationType(applicationType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ApplicationPackage.DOCUMENT_ROOT: {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                Object result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ApplicationPackage.EXT_MODULE_TYPE: {
+                ExtModuleType extModuleType = (ExtModuleType)theEObject;
+                Object result = caseExtModuleType(extModuleType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ApplicationPackage.MODULE_TYPE: {
+                ModuleType moduleType = (ModuleType)theEObject;
+                Object result = caseModuleType(moduleType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ApplicationPackage.PATH_TYPE: {
+                PathType pathType = (PathType)theEObject;
+                Object result = casePathType(pathType);
+                if (result == null) result = caseString(pathType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ApplicationPackage.STRING: {
+                org.apache.geronimo.xml.ns.j2ee.application.String string = (org.apache.geronimo.xml.ns.j2ee.application.String)theEObject;
+                Object result = caseString(string);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>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>Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseApplicationType(ApplicationType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Document Root</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>Document Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseDocumentRoot(DocumentRoot object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Ext Module 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>Ext Module Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseExtModuleType(ExtModuleType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Module 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>Module Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseModuleType(ModuleType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Path 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>Path Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object casePathType(PathType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>String</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>String</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseString(org.apache.geronimo.xml.ns.j2ee.application.String object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch, but this is the last case anyway.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public Object defaultCase(EObject object) {
+        return null;
+    }
+
+} //ApplicationSwitch

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/util/ApplicationSwitch.java
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/CssType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/CssType.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/CssType.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/CssType.java Tue Aug 16 15:39:15 2005
@@ -38,14 +38,7 @@
  * @model extendedMetaData="name='cssType' kind='elementOnly'"
  * @generated
  */
-public interface CssType extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface CssType extends EObject{
     /**
      * Returns the value of the '<em><b>Domain</b></em>' attribute.
      * <!-- begin-user-doc -->

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/DocumentRoot.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/DocumentRoot.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/DocumentRoot.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/DocumentRoot.java Tue Aug 16 15:39:15 2005
@@ -47,14 +47,7 @@
  * @model extendedMetaData="name='' kind='mixed'"
  * @generated
  */
-public interface DocumentRoot extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface DocumentRoot extends EObject{
     /**
      * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
      * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbLocalRefType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbLocalRefType.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbLocalRefType.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbLocalRefType.java Tue Aug 16 15:39:15 2005
@@ -41,14 +41,7 @@
  * @model extendedMetaData="name='ejb-local-refType' kind='elementOnly'"
  * @generated
  */
-public interface EjbLocalRefType extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface EjbLocalRefType extends EObject{
     /**
      * Returns the value of the '<em><b>Ref Name</b></em>' attribute.
      * <!-- begin-user-doc -->

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbRefType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbRefType.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbRefType.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/EjbRefType.java Tue Aug 16 15:39:15 2005
@@ -46,14 +46,7 @@
  * @model extendedMetaData="name='ejb-refType' kind='elementOnly'"
  * @generated
  */
-public interface EjbRefType extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface EjbRefType extends EObject{
     /**
      * Returns the value of the '<em><b>Ref Name</b></em>' attribute.
      * <!-- begin-user-doc -->

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanLocatorType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanLocatorType.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanLocatorType.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanLocatorType.java Tue Aug 16 15:39:15 2005
@@ -40,14 +40,7 @@
  * @model extendedMetaData="name='gbean-locatorType' kind='elementOnly'"
  * @generated
  */
-public interface GbeanLocatorType extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface GbeanLocatorType extends EObject{
     /**
      * Returns the value of the '<em><b>Domain</b></em>' attribute.
      * <!-- begin-user-doc -->

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanRefType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanRefType.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanRefType.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/GbeanRefType.java Tue Aug 16 15:39:15 2005
@@ -47,14 +47,7 @@
  * @model extendedMetaData="name='gbean-refType' kind='elementOnly'"
  * @generated
  */
-public interface GbeanRefType extends EObject {
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
-
+public interface GbeanRefType extends EObject{
     /**
      * Returns the value of the '<em><b>Ref Name</b></em>' attribute.
      * <!-- begin-user-doc -->