geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r233044 [24/33] - in /geronimo/trunk/sandbox/eclipse-plugin: ./ org.apache.geronimo.core/ org.apache.geronimo.core/META-INF/ org.apache.geronimo.core/serverdef/ org.apache.geronimo.core/src/ org.apache.geronimo.core/src/org/ org.apache.gero...
Date Tue, 16 Aug 2005 19:47:05 GMT
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceRefTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceRefTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceRefTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceRefTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,664 @@
+/**
+ * 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.naming.impl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.ResourceRefType;
+
+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>Resource Ref Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getRefName <em>Ref Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getDomain <em>Domain</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getServer <em>Server</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getApplication <em>Application</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getModule <em>Module</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getResourceLink <em>Resource Link</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getTargetName <em>Target Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl#getUrl <em>Url</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ResourceRefTypeImpl extends EObjectImpl implements ResourceRefType {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * The default value of the '{@link #getRefName() <em>Ref Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRefName()
+     * @generated
+     * @ordered
+     */
+    protected static final String REF_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getRefName() <em>Ref Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRefName()
+     * @generated
+     * @ordered
+     */
+    protected String refName = REF_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDomain()
+     * @generated
+     * @ordered
+     */
+    protected static final String DOMAIN_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDomain()
+     * @generated
+     * @ordered
+     */
+    protected String domain = DOMAIN_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getServer() <em>Server</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServer()
+     * @generated
+     * @ordered
+     */
+    protected static final String SERVER_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getServer() <em>Server</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServer()
+     * @generated
+     * @ordered
+     */
+    protected String server = SERVER_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getApplication() <em>Application</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getApplication()
+     * @generated
+     * @ordered
+     */
+    protected static final String APPLICATION_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getApplication() <em>Application</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getApplication()
+     * @generated
+     * @ordered
+     */
+    protected String application = APPLICATION_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getModule() <em>Module</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getModule()
+     * @generated
+     * @ordered
+     */
+    protected static final String MODULE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getModule() <em>Module</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getModule()
+     * @generated
+     * @ordered
+     */
+    protected String module = MODULE_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getType()
+     * @generated
+     * @ordered
+     */
+    protected static final String TYPE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getType()
+     * @generated
+     * @ordered
+     */
+    protected String type = TYPE_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected static final String NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected String name = NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getResourceLink() <em>Resource Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResourceLink()
+     * @generated
+     * @ordered
+     */
+    protected static final String RESOURCE_LINK_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getResourceLink() <em>Resource Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResourceLink()
+     * @generated
+     * @ordered
+     */
+    protected String resourceLink = RESOURCE_LINK_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTargetName()
+     * @generated
+     * @ordered
+     */
+    protected static final String TARGET_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTargetName()
+     * @generated
+     * @ordered
+     */
+    protected String targetName = TARGET_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getUrl() <em>Url</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getUrl()
+     * @generated
+     * @ordered
+     */
+    protected static final String URL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getUrl()
+     * @generated
+     * @ordered
+     */
+    protected String url = URL_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ResourceRefTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return NamingPackage.eINSTANCE.getResourceRefType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getRefName() {
+        return refName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRefName(String newRefName) {
+        String oldRefName = refName;
+        refName = newRefName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__REF_NAME, oldRefName, refName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getDomain() {
+        return domain;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDomain(String newDomain) {
+        String oldDomain = domain;
+        domain = newDomain;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__DOMAIN, oldDomain, domain));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getServer() {
+        return server;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setServer(String newServer) {
+        String oldServer = server;
+        server = newServer;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__SERVER, oldServer, server));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getApplication() {
+        return application;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setApplication(String newApplication) {
+        String oldApplication = application;
+        application = newApplication;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__APPLICATION, oldApplication, application));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getModule() {
+        return module;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setModule(String newModule) {
+        String oldModule = module;
+        module = newModule;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__MODULE, oldModule, module));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setType(String newType) {
+        String oldType = type;
+        type = newType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__TYPE, oldType, type));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setName(String newName) {
+        String oldName = name;
+        name = newName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__NAME, oldName, name));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getResourceLink() {
+        return resourceLink;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setResourceLink(String newResourceLink) {
+        String oldResourceLink = resourceLink;
+        resourceLink = newResourceLink;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__RESOURCE_LINK, oldResourceLink, resourceLink));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getTargetName() {
+        return targetName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setTargetName(String newTargetName) {
+        String oldTargetName = targetName;
+        targetName = newTargetName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__TARGET_NAME, oldTargetName, targetName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getUrl() {
+        return url;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setUrl(String newUrl) {
+        String oldUrl = url;
+        url = newUrl;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_REF_TYPE__URL, oldUrl, url));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.RESOURCE_REF_TYPE__REF_NAME:
+                return getRefName();
+            case NamingPackage.RESOURCE_REF_TYPE__DOMAIN:
+                return getDomain();
+            case NamingPackage.RESOURCE_REF_TYPE__SERVER:
+                return getServer();
+            case NamingPackage.RESOURCE_REF_TYPE__APPLICATION:
+                return getApplication();
+            case NamingPackage.RESOURCE_REF_TYPE__MODULE:
+                return getModule();
+            case NamingPackage.RESOURCE_REF_TYPE__TYPE:
+                return getType();
+            case NamingPackage.RESOURCE_REF_TYPE__NAME:
+                return getName();
+            case NamingPackage.RESOURCE_REF_TYPE__RESOURCE_LINK:
+                return getResourceLink();
+            case NamingPackage.RESOURCE_REF_TYPE__TARGET_NAME:
+                return getTargetName();
+            case NamingPackage.RESOURCE_REF_TYPE__URL:
+                return getUrl();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.RESOURCE_REF_TYPE__REF_NAME:
+                setRefName((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__DOMAIN:
+                setDomain((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__SERVER:
+                setServer((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__APPLICATION:
+                setApplication((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__MODULE:
+                setModule((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__TYPE:
+                setType((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__NAME:
+                setName((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__RESOURCE_LINK:
+                setResourceLink((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__TARGET_NAME:
+                setTargetName((String)newValue);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__URL:
+                setUrl((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.RESOURCE_REF_TYPE__REF_NAME:
+                setRefName(REF_NAME_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__DOMAIN:
+                setDomain(DOMAIN_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__SERVER:
+                setServer(SERVER_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__APPLICATION:
+                setApplication(APPLICATION_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__MODULE:
+                setModule(MODULE_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__TYPE:
+                setType(TYPE_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__RESOURCE_LINK:
+                setResourceLink(RESOURCE_LINK_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__TARGET_NAME:
+                setTargetName(TARGET_NAME_EDEFAULT);
+                return;
+            case NamingPackage.RESOURCE_REF_TYPE__URL:
+                setUrl(URL_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.RESOURCE_REF_TYPE__REF_NAME:
+                return REF_NAME_EDEFAULT == null ? refName != null : !REF_NAME_EDEFAULT.equals(refName);
+            case NamingPackage.RESOURCE_REF_TYPE__DOMAIN:
+                return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
+            case NamingPackage.RESOURCE_REF_TYPE__SERVER:
+                return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server);
+            case NamingPackage.RESOURCE_REF_TYPE__APPLICATION:
+                return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application);
+            case NamingPackage.RESOURCE_REF_TYPE__MODULE:
+                return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module);
+            case NamingPackage.RESOURCE_REF_TYPE__TYPE:
+                return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+            case NamingPackage.RESOURCE_REF_TYPE__NAME:
+                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+            case NamingPackage.RESOURCE_REF_TYPE__RESOURCE_LINK:
+                return RESOURCE_LINK_EDEFAULT == null ? resourceLink != null : !RESOURCE_LINK_EDEFAULT.equals(resourceLink);
+            case NamingPackage.RESOURCE_REF_TYPE__TARGET_NAME:
+                return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName);
+            case NamingPackage.RESOURCE_REF_TYPE__URL:
+                return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+        }
+        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(" (refName: ");
+        result.append(refName);
+        result.append(", domain: ");
+        result.append(domain);
+        result.append(", server: ");
+        result.append(server);
+        result.append(", application: ");
+        result.append(application);
+        result.append(", module: ");
+        result.append(module);
+        result.append(", type: ");
+        result.append(type);
+        result.append(", name: ");
+        result.append(name);
+        result.append(", resourceLink: ");
+        result.append(resourceLink);
+        result.append(", targetName: ");
+        result.append(targetName);
+        result.append(", url: ");
+        result.append(url);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ResourceRefTypeImpl

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceCompletionTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceCompletionTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceCompletionTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceCompletionTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,239 @@
+/**
+ * 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.naming.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.PortCompletionType;
+import org.apache.geronimo.xml.ns.naming.ServiceCompletionType;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Service Completion Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ServiceCompletionTypeImpl#getServiceName <em>Service Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ServiceCompletionTypeImpl#getPort <em>Port</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ServiceCompletionTypeImpl extends EObjectImpl implements ServiceCompletionType {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * The default value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceName()
+     * @generated
+     * @ordered
+     */
+    protected static final String SERVICE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceName()
+     * @generated
+     * @ordered
+     */
+    protected String serviceName = SERVICE_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getPort() <em>Port</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPort()
+     * @generated
+     * @ordered
+     */
+    protected EList port = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ServiceCompletionTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return NamingPackage.eINSTANCE.getServiceCompletionType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getServiceName() {
+        return serviceName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setServiceName(String newServiceName) {
+        String oldServiceName = serviceName;
+        serviceName = newServiceName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.SERVICE_COMPLETION_TYPE__SERVICE_NAME, oldServiceName, serviceName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getPort() {
+        if (port == null) {
+            port = new EObjectContainmentEList(PortCompletionType.class, this, NamingPackage.SERVICE_COMPLETION_TYPE__PORT);
+        }
+        return port;
+    }
+
+    /**
+     * <!-- 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 NamingPackage.SERVICE_COMPLETION_TYPE__PORT:
+                    return ((InternalEList)getPort()).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 NamingPackage.SERVICE_COMPLETION_TYPE__SERVICE_NAME:
+                return getServiceName();
+            case NamingPackage.SERVICE_COMPLETION_TYPE__PORT:
+                return getPort();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_COMPLETION_TYPE__SERVICE_NAME:
+                setServiceName((String)newValue);
+                return;
+            case NamingPackage.SERVICE_COMPLETION_TYPE__PORT:
+                getPort().clear();
+                getPort().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_COMPLETION_TYPE__SERVICE_NAME:
+                setServiceName(SERVICE_NAME_EDEFAULT);
+                return;
+            case NamingPackage.SERVICE_COMPLETION_TYPE__PORT:
+                getPort().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_COMPLETION_TYPE__SERVICE_NAME:
+                return SERVICE_NAME_EDEFAULT == null ? serviceName != null : !SERVICE_NAME_EDEFAULT.equals(serviceName);
+            case NamingPackage.SERVICE_COMPLETION_TYPE__PORT:
+                return port != null && !port.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(" (serviceName: ");
+        result.append(serviceName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ServiceCompletionTypeImpl

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceRefTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceRefTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceRefTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ServiceRefTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,306 @@
+/**
+ * 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.naming.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.PortType;
+import org.apache.geronimo.xml.ns.naming.ServiceCompletionType;
+import org.apache.geronimo.xml.ns.naming.ServiceRefType;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Service Ref Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ServiceRefTypeImpl#getServiceRefName <em>Service Ref Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ServiceRefTypeImpl#getServiceCompletion <em>Service Completion</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.ServiceRefTypeImpl#getPort <em>Port</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ServiceRefTypeImpl extends EObjectImpl implements ServiceRefType {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * The default value of the '{@link #getServiceRefName() <em>Service Ref Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceRefName()
+     * @generated
+     * @ordered
+     */
+    protected static final String SERVICE_REF_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getServiceRefName() <em>Service Ref Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceRefName()
+     * @generated
+     * @ordered
+     */
+    protected String serviceRefName = SERVICE_REF_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getServiceCompletion() <em>Service Completion</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceCompletion()
+     * @generated
+     * @ordered
+     */
+    protected ServiceCompletionType serviceCompletion = null;
+
+    /**
+     * The cached value of the '{@link #getPort() <em>Port</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPort()
+     * @generated
+     * @ordered
+     */
+    protected EList port = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ServiceRefTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return NamingPackage.eINSTANCE.getServiceRefType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getServiceRefName() {
+        return serviceRefName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setServiceRefName(String newServiceRefName) {
+        String oldServiceRefName = serviceRefName;
+        serviceRefName = newServiceRefName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.SERVICE_REF_TYPE__SERVICE_REF_NAME, oldServiceRefName, serviceRefName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ServiceCompletionType getServiceCompletion() {
+        return serviceCompletion;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetServiceCompletion(ServiceCompletionType newServiceCompletion, NotificationChain msgs) {
+        ServiceCompletionType oldServiceCompletion = serviceCompletion;
+        serviceCompletion = newServiceCompletion;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION, oldServiceCompletion, newServiceCompletion);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setServiceCompletion(ServiceCompletionType newServiceCompletion) {
+        if (newServiceCompletion != serviceCompletion) {
+            NotificationChain msgs = null;
+            if (serviceCompletion != null)
+                msgs = ((InternalEObject)serviceCompletion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION, null, msgs);
+            if (newServiceCompletion != null)
+                msgs = ((InternalEObject)newServiceCompletion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION, null, msgs);
+            msgs = basicSetServiceCompletion(newServiceCompletion, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION, newServiceCompletion, newServiceCompletion));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getPort() {
+        if (port == null) {
+            port = new EObjectContainmentEList(PortType.class, this, NamingPackage.SERVICE_REF_TYPE__PORT);
+        }
+        return port;
+    }
+
+    /**
+     * <!-- 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 NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION:
+                    return basicSetServiceCompletion(null, msgs);
+                case NamingPackage.SERVICE_REF_TYPE__PORT:
+                    return ((InternalEList)getPort()).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 NamingPackage.SERVICE_REF_TYPE__SERVICE_REF_NAME:
+                return getServiceRefName();
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION:
+                return getServiceCompletion();
+            case NamingPackage.SERVICE_REF_TYPE__PORT:
+                return getPort();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_REF_NAME:
+                setServiceRefName((String)newValue);
+                return;
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION:
+                setServiceCompletion((ServiceCompletionType)newValue);
+                return;
+            case NamingPackage.SERVICE_REF_TYPE__PORT:
+                getPort().clear();
+                getPort().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_REF_NAME:
+                setServiceRefName(SERVICE_REF_NAME_EDEFAULT);
+                return;
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION:
+                setServiceCompletion((ServiceCompletionType)null);
+                return;
+            case NamingPackage.SERVICE_REF_TYPE__PORT:
+                getPort().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_REF_NAME:
+                return SERVICE_REF_NAME_EDEFAULT == null ? serviceRefName != null : !SERVICE_REF_NAME_EDEFAULT.equals(serviceRefName);
+            case NamingPackage.SERVICE_REF_TYPE__SERVICE_COMPLETION:
+                return serviceCompletion != null;
+            case NamingPackage.SERVICE_REF_TYPE__PORT:
+                return port != null && !port.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(" (serviceRefName: ");
+        result.append(serviceRefName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ServiceRefTypeImpl

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingAdapterFactory.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingAdapterFactory.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingAdapterFactory.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,340 @@
+/**
+ * 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.naming.util;
+
+import org.apache.geronimo.xml.ns.naming.*;
+
+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.naming.NamingPackage
+ * @generated
+ */
+public class NamingAdapterFactory extends AdapterFactoryImpl {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static NamingPackage modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NamingAdapterFactory() {
+        if (modelPackage == null) {
+            modelPackage = NamingPackage.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 NamingSwitch modelSwitch =
+        new NamingSwitch() {
+            public Object caseCssType(CssType object) {
+                return createCssTypeAdapter();
+            }
+            public Object caseDocumentRoot(DocumentRoot object) {
+                return createDocumentRootAdapter();
+            }
+            public Object caseEjbLocalRefType(EjbLocalRefType object) {
+                return createEjbLocalRefTypeAdapter();
+            }
+            public Object caseEjbRefType(EjbRefType object) {
+                return createEjbRefTypeAdapter();
+            }
+            public Object caseGbeanLocatorType(GbeanLocatorType object) {
+                return createGbeanLocatorTypeAdapter();
+            }
+            public Object caseGbeanRefType(GbeanRefType object) {
+                return createGbeanRefTypeAdapter();
+            }
+            public Object casePortCompletionType(PortCompletionType object) {
+                return createPortCompletionTypeAdapter();
+            }
+            public Object casePortType(PortType object) {
+                return createPortTypeAdapter();
+            }
+            public Object caseResourceEnvRefType(ResourceEnvRefType object) {
+                return createResourceEnvRefTypeAdapter();
+            }
+            public Object caseResourceLocatorType(ResourceLocatorType object) {
+                return createResourceLocatorTypeAdapter();
+            }
+            public Object caseResourceRefType(ResourceRefType object) {
+                return createResourceRefTypeAdapter();
+            }
+            public Object caseServiceCompletionType(ServiceCompletionType object) {
+                return createServiceCompletionTypeAdapter();
+            }
+            public Object caseServiceRefType(ServiceRefType object) {
+                return createServiceRefTypeAdapter();
+            }
+            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.naming.CssType <em>Css 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.naming.CssType
+     * @generated
+     */
+    public Adapter createCssTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.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.naming.DocumentRoot
+     * @generated
+     */
+    public Adapter createDocumentRootAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.EjbLocalRefType <em>Ejb Local Ref 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.naming.EjbLocalRefType
+     * @generated
+     */
+    public Adapter createEjbLocalRefTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.EjbRefType <em>Ejb Ref 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.naming.EjbRefType
+     * @generated
+     */
+    public Adapter createEjbRefTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.GbeanLocatorType <em>Gbean Locator 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.naming.GbeanLocatorType
+     * @generated
+     */
+    public Adapter createGbeanLocatorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.GbeanRefType <em>Gbean Ref 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.naming.GbeanRefType
+     * @generated
+     */
+    public Adapter createGbeanRefTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.PortCompletionType <em>Port Completion 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.naming.PortCompletionType
+     * @generated
+     */
+    public Adapter createPortCompletionTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.PortType <em>Port 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.naming.PortType
+     * @generated
+     */
+    public Adapter createPortTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.ResourceEnvRefType <em>Resource Env Ref 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.naming.ResourceEnvRefType
+     * @generated
+     */
+    public Adapter createResourceEnvRefTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.ResourceLocatorType <em>Resource Locator 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.naming.ResourceLocatorType
+     * @generated
+     */
+    public Adapter createResourceLocatorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.ResourceRefType <em>Resource Ref 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.naming.ResourceRefType
+     * @generated
+     */
+    public Adapter createResourceRefTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.ServiceCompletionType <em>Service Completion 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.naming.ServiceCompletionType
+     * @generated
+     */
+    public Adapter createServiceCompletionTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.naming.ServiceRefType <em>Service Ref 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.naming.ServiceRefType
+     * @generated
+     */
+    public Adapter createServiceRefTypeAdapter() {
+        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;
+    }
+
+} //NamingAdapterFactory

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceFactoryImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceFactoryImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceFactoryImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,69 @@
+/**
+ * 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.naming.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.naming.util.NamingResourceImpl
+ * @generated
+ */
+public class NamingResourceFactoryImpl extends ResourceFactoryImpl {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NamingResourceFactoryImpl() {
+        super();
+    }
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Resource createResource(URI uri) {
+        XMLResource result = new NamingResourceImpl(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;
+    }
+
+} //NamingResourceFactoryImpl

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingResourceImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,48 @@
+/**
+ * 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.naming.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.naming.util.NamingResourceFactoryImpl
+ * @generated
+ */
+public class NamingResourceImpl extends XMLResourceImpl {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+    public NamingResourceImpl(URI uri) {
+        super(uri);
+    }
+
+} //NamingResourceImpl

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

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingSwitch.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingSwitch.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingSwitch.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/util/NamingSwitch.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,399 @@
+/**
+ * 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.naming.util;
+
+import java.util.List;
+
+import org.apache.geronimo.xml.ns.naming.*;
+
+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.naming.NamingPackage
+ * @generated
+ */
+public class NamingSwitch {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static NamingPackage modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NamingSwitch() {
+        if (modelPackage == null) {
+            modelPackage = NamingPackage.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 NamingPackage.CSS_TYPE: {
+                CssType cssType = (CssType)theEObject;
+                Object result = caseCssType(cssType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.DOCUMENT_ROOT: {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                Object result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.EJB_LOCAL_REF_TYPE: {
+                EjbLocalRefType ejbLocalRefType = (EjbLocalRefType)theEObject;
+                Object result = caseEjbLocalRefType(ejbLocalRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.EJB_REF_TYPE: {
+                EjbRefType ejbRefType = (EjbRefType)theEObject;
+                Object result = caseEjbRefType(ejbRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.GBEAN_LOCATOR_TYPE: {
+                GbeanLocatorType gbeanLocatorType = (GbeanLocatorType)theEObject;
+                Object result = caseGbeanLocatorType(gbeanLocatorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.GBEAN_REF_TYPE: {
+                GbeanRefType gbeanRefType = (GbeanRefType)theEObject;
+                Object result = caseGbeanRefType(gbeanRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.PORT_COMPLETION_TYPE: {
+                PortCompletionType portCompletionType = (PortCompletionType)theEObject;
+                Object result = casePortCompletionType(portCompletionType);
+                if (result == null) result = casePortType(portCompletionType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.PORT_TYPE: {
+                PortType portType = (PortType)theEObject;
+                Object result = casePortType(portType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.RESOURCE_ENV_REF_TYPE: {
+                ResourceEnvRefType resourceEnvRefType = (ResourceEnvRefType)theEObject;
+                Object result = caseResourceEnvRefType(resourceEnvRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.RESOURCE_LOCATOR_TYPE: {
+                ResourceLocatorType resourceLocatorType = (ResourceLocatorType)theEObject;
+                Object result = caseResourceLocatorType(resourceLocatorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.RESOURCE_REF_TYPE: {
+                ResourceRefType resourceRefType = (ResourceRefType)theEObject;
+                Object result = caseResourceRefType(resourceRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.SERVICE_COMPLETION_TYPE: {
+                ServiceCompletionType serviceCompletionType = (ServiceCompletionType)theEObject;
+                Object result = caseServiceCompletionType(serviceCompletionType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case NamingPackage.SERVICE_REF_TYPE: {
+                ServiceRefType serviceRefType = (ServiceRefType)theEObject;
+                Object result = caseServiceRefType(serviceRefType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Css 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>Css Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseCssType(CssType 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>Ejb Local Ref 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>Ejb Local Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseEjbLocalRefType(EjbLocalRefType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Ejb Ref 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>Ejb Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseEjbRefType(EjbRefType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Gbean Locator 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>Gbean Locator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseGbeanLocatorType(GbeanLocatorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Gbean Ref 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>Gbean Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseGbeanRefType(GbeanRefType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Port Completion 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>Port Completion Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object casePortCompletionType(PortCompletionType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Port 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>Port Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object casePortType(PortType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Resource Env Ref 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>Resource Env Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseResourceEnvRefType(ResourceEnvRefType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Resource Locator 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>Resource Locator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseResourceLocatorType(ResourceLocatorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Resource Ref 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>Resource Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseResourceRefType(ResourceRefType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Service Completion 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>Service Completion Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseServiceCompletionType(ServiceCompletionType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Service Ref 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>Service Ref Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseServiceRefType(ServiceRefType 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;
+    }
+
+} //NamingSwitch

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



Mime
View raw message