geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r239937 [25/73] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.core/src/org/apache/geronimo/core/operations/ org.apache.geronimo.deployment.model/src/org/apac...
Date Wed, 24 Aug 2005 21:36:53 GMT
Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/EjbRefTypeImpl.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/EjbRefTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/EjbRefTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/EjbRefTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,903 +1,903 @@
-/**
- * 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.CssType;
-import org.apache.geronimo.xml.ns.naming.EjbRefType;
-import org.apache.geronimo.xml.ns.naming.NamingPackage;
-
-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;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Ejb Ref Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getRefName <em>Ref Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getDomain <em>Domain</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getServer <em>Server</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getApplication <em>Application</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getModule <em>Module</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getType <em>Type</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getName <em>Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getNsCorbaloc <em>Ns Corbaloc</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getName1 <em>Name1</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCss <em>Css</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCssLink <em>Css Link</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCssName <em>Css Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getEjbLink <em>Ejb Link</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getTargetName <em>Target Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class EjbRefTypeImpl extends EObjectImpl implements EjbRefType {
-    /**
-     * 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 #getNsCorbaloc() <em>Ns Corbaloc</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getNsCorbaloc()
-     * @generated
-     * @ordered
-     */
-    protected static final String NS_CORBALOC_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getNsCorbaloc() <em>Ns Corbaloc</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getNsCorbaloc()
-     * @generated
-     * @ordered
-     */
-    protected String nsCorbaloc = NS_CORBALOC_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getName1() <em>Name1</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName1()
-     * @generated
-     * @ordered
-     */
-    protected static final String NAME1_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getName1() <em>Name1</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName1()
-     * @generated
-     * @ordered
-     */
-    protected String name1 = NAME1_EDEFAULT;
-
-    /**
-     * The cached value of the '{@link #getCss() <em>Css</em>}' containment reference.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCss()
-     * @generated
-     * @ordered
-     */
-    protected CssType css = null;
-
-    /**
-     * The default value of the '{@link #getCssLink() <em>Css Link</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCssLink()
-     * @generated
-     * @ordered
-     */
-    protected static final String CSS_LINK_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getCssLink() <em>Css Link</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCssLink()
-     * @generated
-     * @ordered
-     */
-    protected String cssLink = CSS_LINK_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getCssName() <em>Css Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCssName()
-     * @generated
-     * @ordered
-     */
-    protected static final String CSS_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getCssName() <em>Css Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCssName()
-     * @generated
-     * @ordered
-     */
-    protected String cssName = CSS_NAME_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbLink()
-     * @generated
-     * @ordered
-     */
-    protected static final String EJB_LINK_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbLink()
-     * @generated
-     * @ordered
-     */
-    protected String ejbLink = EJB_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;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EjbRefTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return NamingPackage.eINSTANCE.getEjbRefType();
-    }
-
-    /**
-     * <!-- 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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_REF_TYPE__NAME, oldName, name));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getNsCorbaloc() {
-        return nsCorbaloc;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setNsCorbaloc(String newNsCorbaloc) {
-        String oldNsCorbaloc = nsCorbaloc;
-        nsCorbaloc = newNsCorbaloc;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__NS_CORBALOC, oldNsCorbaloc, nsCorbaloc));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getName1() {
-        return name1;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setName1(String newName1) {
-        String oldName1 = name1;
-        name1 = newName1;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__NAME1, oldName1, name1));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public CssType getCss() {
-        return css;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetCss(CssType newCss, NotificationChain msgs) {
-        CssType oldCss = css;
-        css = newCss;
-        if (eNotificationRequired()) {
-            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS, oldCss, newCss);
-            if (msgs == null) msgs = notification; else msgs.add(notification);
-        }
-        return msgs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setCss(CssType newCss) {
-        if (newCss != css) {
-            NotificationChain msgs = null;
-            if (css != null)
-                msgs = ((InternalEObject)css).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NamingPackage.EJB_REF_TYPE__CSS, null, msgs);
-            if (newCss != null)
-                msgs = ((InternalEObject)newCss).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NamingPackage.EJB_REF_TYPE__CSS, null, msgs);
-            msgs = basicSetCss(newCss, msgs);
-            if (msgs != null) msgs.dispatch();
-        }
-        else if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS, newCss, newCss));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getCssLink() {
-        return cssLink;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setCssLink(String newCssLink) {
-        String oldCssLink = cssLink;
-        cssLink = newCssLink;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS_LINK, oldCssLink, cssLink));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getCssName() {
-        return cssName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setCssName(String newCssName) {
-        String oldCssName = cssName;
-        cssName = newCssName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS_NAME, oldCssName, cssName));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getEjbLink() {
-        return ejbLink;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setEjbLink(String newEjbLink) {
-        String oldEjbLink = ejbLink;
-        ejbLink = newEjbLink;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__EJB_LINK, oldEjbLink, ejbLink));
-    }
-
-    /**
-     * <!-- 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.EJB_REF_TYPE__TARGET_NAME, oldTargetName, targetName));
-    }
-
-    /**
-     * <!-- 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.EJB_REF_TYPE__CSS:
-                    return basicSetCss(null, 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.EJB_REF_TYPE__REF_NAME:
-                return getRefName();
-            case NamingPackage.EJB_REF_TYPE__DOMAIN:
-                return getDomain();
-            case NamingPackage.EJB_REF_TYPE__SERVER:
-                return getServer();
-            case NamingPackage.EJB_REF_TYPE__APPLICATION:
-                return getApplication();
-            case NamingPackage.EJB_REF_TYPE__MODULE:
-                return getModule();
-            case NamingPackage.EJB_REF_TYPE__TYPE:
-                return getType();
-            case NamingPackage.EJB_REF_TYPE__NAME:
-                return getName();
-            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
-                return getNsCorbaloc();
-            case NamingPackage.EJB_REF_TYPE__NAME1:
-                return getName1();
-            case NamingPackage.EJB_REF_TYPE__CSS:
-                return getCss();
-            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
-                return getCssLink();
-            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
-                return getCssName();
-            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
-                return getEjbLink();
-            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
-                return getTargetName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case NamingPackage.EJB_REF_TYPE__REF_NAME:
-                setRefName((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__DOMAIN:
-                setDomain((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__SERVER:
-                setServer((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__APPLICATION:
-                setApplication((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__MODULE:
-                setModule((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__TYPE:
-                setType((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NAME:
-                setName((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
-                setNsCorbaloc((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NAME1:
-                setName1((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS:
-                setCss((CssType)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
-                setCssLink((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
-                setCssName((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
-                setEjbLink((String)newValue);
-                return;
-            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
-                setTargetName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case NamingPackage.EJB_REF_TYPE__REF_NAME:
-                setRefName(REF_NAME_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__DOMAIN:
-                setDomain(DOMAIN_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__SERVER:
-                setServer(SERVER_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__APPLICATION:
-                setApplication(APPLICATION_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__MODULE:
-                setModule(MODULE_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__TYPE:
-                setType(TYPE_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NAME:
-                setName(NAME_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
-                setNsCorbaloc(NS_CORBALOC_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__NAME1:
-                setName1(NAME1_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS:
-                setCss((CssType)null);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
-                setCssLink(CSS_LINK_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
-                setCssName(CSS_NAME_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
-                setEjbLink(EJB_LINK_EDEFAULT);
-                return;
-            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
-                setTargetName(TARGET_NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case NamingPackage.EJB_REF_TYPE__REF_NAME:
-                return REF_NAME_EDEFAULT == null ? refName != null : !REF_NAME_EDEFAULT.equals(refName);
-            case NamingPackage.EJB_REF_TYPE__DOMAIN:
-                return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
-            case NamingPackage.EJB_REF_TYPE__SERVER:
-                return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server);
-            case NamingPackage.EJB_REF_TYPE__APPLICATION:
-                return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application);
-            case NamingPackage.EJB_REF_TYPE__MODULE:
-                return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module);
-            case NamingPackage.EJB_REF_TYPE__TYPE:
-                return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
-            case NamingPackage.EJB_REF_TYPE__NAME:
-                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
-                return NS_CORBALOC_EDEFAULT == null ? nsCorbaloc != null : !NS_CORBALOC_EDEFAULT.equals(nsCorbaloc);
-            case NamingPackage.EJB_REF_TYPE__NAME1:
-                return NAME1_EDEFAULT == null ? name1 != null : !NAME1_EDEFAULT.equals(name1);
-            case NamingPackage.EJB_REF_TYPE__CSS:
-                return css != null;
-            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
-                return CSS_LINK_EDEFAULT == null ? cssLink != null : !CSS_LINK_EDEFAULT.equals(cssLink);
-            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
-                return CSS_NAME_EDEFAULT == null ? cssName != null : !CSS_NAME_EDEFAULT.equals(cssName);
-            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
-                return EJB_LINK_EDEFAULT == null ? ejbLink != null : !EJB_LINK_EDEFAULT.equals(ejbLink);
-            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
-                return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName);
-        }
-        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(", nsCorbaloc: ");
-        result.append(nsCorbaloc);
-        result.append(", name1: ");
-        result.append(name1);
-        result.append(", cssLink: ");
-        result.append(cssLink);
-        result.append(", cssName: ");
-        result.append(cssName);
-        result.append(", ejbLink: ");
-        result.append(ejbLink);
-        result.append(", targetName: ");
-        result.append(targetName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //EjbRefTypeImpl
+/**
+ * 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.CssType;
+import org.apache.geronimo.xml.ns.naming.EjbRefType;
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Ejb Ref Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getRefName <em>Ref Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getDomain <em>Domain</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getServer <em>Server</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getApplication <em>Application</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getModule <em>Module</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getNsCorbaloc <em>Ns Corbaloc</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getName1 <em>Name1</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCss <em>Css</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCssLink <em>Css Link</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getCssName <em>Css Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getEjbLink <em>Ejb Link</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.naming.impl.EjbRefTypeImpl#getTargetName <em>Target Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EjbRefTypeImpl extends EObjectImpl implements EjbRefType {
+    /**
+     * 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 #getNsCorbaloc() <em>Ns Corbaloc</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getNsCorbaloc()
+     * @generated
+     * @ordered
+     */
+    protected static final String NS_CORBALOC_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getNsCorbaloc() <em>Ns Corbaloc</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getNsCorbaloc()
+     * @generated
+     * @ordered
+     */
+    protected String nsCorbaloc = NS_CORBALOC_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getName1() <em>Name1</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName1()
+     * @generated
+     * @ordered
+     */
+    protected static final String NAME1_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getName1() <em>Name1</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName1()
+     * @generated
+     * @ordered
+     */
+    protected String name1 = NAME1_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getCss() <em>Css</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCss()
+     * @generated
+     * @ordered
+     */
+    protected CssType css = null;
+
+    /**
+     * The default value of the '{@link #getCssLink() <em>Css Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCssLink()
+     * @generated
+     * @ordered
+     */
+    protected static final String CSS_LINK_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getCssLink() <em>Css Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCssLink()
+     * @generated
+     * @ordered
+     */
+    protected String cssLink = CSS_LINK_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getCssName() <em>Css Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCssName()
+     * @generated
+     * @ordered
+     */
+    protected static final String CSS_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getCssName() <em>Css Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCssName()
+     * @generated
+     * @ordered
+     */
+    protected String cssName = CSS_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbLink()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_LINK_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbLink() <em>Ejb Link</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbLink()
+     * @generated
+     * @ordered
+     */
+    protected String ejbLink = EJB_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;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EjbRefTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return NamingPackage.eINSTANCE.getEjbRefType();
+    }
+
+    /**
+     * <!-- 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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_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.EJB_REF_TYPE__NAME, oldName, name));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getNsCorbaloc() {
+        return nsCorbaloc;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setNsCorbaloc(String newNsCorbaloc) {
+        String oldNsCorbaloc = nsCorbaloc;
+        nsCorbaloc = newNsCorbaloc;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__NS_CORBALOC, oldNsCorbaloc, nsCorbaloc));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getName1() {
+        return name1;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setName1(String newName1) {
+        String oldName1 = name1;
+        name1 = newName1;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__NAME1, oldName1, name1));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CssType getCss() {
+        return css;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetCss(CssType newCss, NotificationChain msgs) {
+        CssType oldCss = css;
+        css = newCss;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS, oldCss, newCss);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCss(CssType newCss) {
+        if (newCss != css) {
+            NotificationChain msgs = null;
+            if (css != null)
+                msgs = ((InternalEObject)css).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NamingPackage.EJB_REF_TYPE__CSS, null, msgs);
+            if (newCss != null)
+                msgs = ((InternalEObject)newCss).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NamingPackage.EJB_REF_TYPE__CSS, null, msgs);
+            msgs = basicSetCss(newCss, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS, newCss, newCss));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getCssLink() {
+        return cssLink;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCssLink(String newCssLink) {
+        String oldCssLink = cssLink;
+        cssLink = newCssLink;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS_LINK, oldCssLink, cssLink));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getCssName() {
+        return cssName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCssName(String newCssName) {
+        String oldCssName = cssName;
+        cssName = newCssName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__CSS_NAME, oldCssName, cssName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbLink() {
+        return ejbLink;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbLink(String newEjbLink) {
+        String oldEjbLink = ejbLink;
+        ejbLink = newEjbLink;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.EJB_REF_TYPE__EJB_LINK, oldEjbLink, ejbLink));
+    }
+
+    /**
+     * <!-- 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.EJB_REF_TYPE__TARGET_NAME, oldTargetName, targetName));
+    }
+
+    /**
+     * <!-- 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.EJB_REF_TYPE__CSS:
+                    return basicSetCss(null, 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.EJB_REF_TYPE__REF_NAME:
+                return getRefName();
+            case NamingPackage.EJB_REF_TYPE__DOMAIN:
+                return getDomain();
+            case NamingPackage.EJB_REF_TYPE__SERVER:
+                return getServer();
+            case NamingPackage.EJB_REF_TYPE__APPLICATION:
+                return getApplication();
+            case NamingPackage.EJB_REF_TYPE__MODULE:
+                return getModule();
+            case NamingPackage.EJB_REF_TYPE__TYPE:
+                return getType();
+            case NamingPackage.EJB_REF_TYPE__NAME:
+                return getName();
+            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
+                return getNsCorbaloc();
+            case NamingPackage.EJB_REF_TYPE__NAME1:
+                return getName1();
+            case NamingPackage.EJB_REF_TYPE__CSS:
+                return getCss();
+            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
+                return getCssLink();
+            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
+                return getCssName();
+            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
+                return getEjbLink();
+            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
+                return getTargetName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.EJB_REF_TYPE__REF_NAME:
+                setRefName((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__DOMAIN:
+                setDomain((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__SERVER:
+                setServer((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__APPLICATION:
+                setApplication((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__MODULE:
+                setModule((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__TYPE:
+                setType((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NAME:
+                setName((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
+                setNsCorbaloc((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NAME1:
+                setName1((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS:
+                setCss((CssType)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
+                setCssLink((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
+                setCssName((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
+                setEjbLink((String)newValue);
+                return;
+            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
+                setTargetName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.EJB_REF_TYPE__REF_NAME:
+                setRefName(REF_NAME_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__DOMAIN:
+                setDomain(DOMAIN_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__SERVER:
+                setServer(SERVER_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__APPLICATION:
+                setApplication(APPLICATION_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__MODULE:
+                setModule(MODULE_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__TYPE:
+                setType(TYPE_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
+                setNsCorbaloc(NS_CORBALOC_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__NAME1:
+                setName1(NAME1_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS:
+                setCss((CssType)null);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
+                setCssLink(CSS_LINK_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
+                setCssName(CSS_NAME_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
+                setEjbLink(EJB_LINK_EDEFAULT);
+                return;
+            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
+                setTargetName(TARGET_NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case NamingPackage.EJB_REF_TYPE__REF_NAME:
+                return REF_NAME_EDEFAULT == null ? refName != null : !REF_NAME_EDEFAULT.equals(refName);
+            case NamingPackage.EJB_REF_TYPE__DOMAIN:
+                return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
+            case NamingPackage.EJB_REF_TYPE__SERVER:
+                return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server);
+            case NamingPackage.EJB_REF_TYPE__APPLICATION:
+                return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application);
+            case NamingPackage.EJB_REF_TYPE__MODULE:
+                return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module);
+            case NamingPackage.EJB_REF_TYPE__TYPE:
+                return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+            case NamingPackage.EJB_REF_TYPE__NAME:
+                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+            case NamingPackage.EJB_REF_TYPE__NS_CORBALOC:
+                return NS_CORBALOC_EDEFAULT == null ? nsCorbaloc != null : !NS_CORBALOC_EDEFAULT.equals(nsCorbaloc);
+            case NamingPackage.EJB_REF_TYPE__NAME1:
+                return NAME1_EDEFAULT == null ? name1 != null : !NAME1_EDEFAULT.equals(name1);
+            case NamingPackage.EJB_REF_TYPE__CSS:
+                return css != null;
+            case NamingPackage.EJB_REF_TYPE__CSS_LINK:
+                return CSS_LINK_EDEFAULT == null ? cssLink != null : !CSS_LINK_EDEFAULT.equals(cssLink);
+            case NamingPackage.EJB_REF_TYPE__CSS_NAME:
+                return CSS_NAME_EDEFAULT == null ? cssName != null : !CSS_NAME_EDEFAULT.equals(cssName);
+            case NamingPackage.EJB_REF_TYPE__EJB_LINK:
+                return EJB_LINK_EDEFAULT == null ? ejbLink != null : !EJB_LINK_EDEFAULT.equals(ejbLink);
+            case NamingPackage.EJB_REF_TYPE__TARGET_NAME:
+                return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName);
+        }
+        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(", nsCorbaloc: ");
+        result.append(nsCorbaloc);
+        result.append(", name1: ");
+        result.append(name1);
+        result.append(", cssLink: ");
+        result.append(cssLink);
+        result.append(", cssName: ");
+        result.append(cssName);
+        result.append(", ejbLink: ");
+        result.append(ejbLink);
+        result.append(", targetName: ");
+        result.append(targetName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //EjbRefTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/EjbRefTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message