geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r280909 [45/52] - in /geronimo/devtools/trunk/modules/eclipse-plugin: ./ features/ features/org.apache.geronimo.feature/ org.apache.geronimo.core/ org.apache.geronimo.deployment.model/ org.apache.geronimo.feature/ org.apache.geronimo.runtim...
Date Wed, 14 Sep 2005 19:01:03 GMT
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MessageDrivenBeanTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MessageDrivenBeanTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MessageDrivenBeanTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MessageDrivenBeanTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,569 @@
+/**
+ * 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.openejb.xml.ns.openejb.jar.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.naming.EjbLocalRefType;
+import org.apache.geronimo.xml.ns.naming.EjbRefType;
+import org.apache.geronimo.xml.ns.naming.ResourceEnvRefType;
+import org.apache.geronimo.xml.ns.naming.ResourceLocatorType;
+import org.apache.geronimo.xml.ns.naming.ResourceRefType;
+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;
+
+import org.openejb.xml.ns.openejb.jar.ActivationConfigType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MessageDrivenBeanType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Message Driven Bean Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getEjbName <em>Ejb Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getResourceAdapter <em>Resource Adapter</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getActivationConfig <em>Activation Config</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getEjbRef <em>Ejb Ref</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getEjbLocalRef <em>Ejb Local Ref</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getServiceRef <em>Service Ref</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getResourceRef <em>Resource Ref</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getResourceEnvRef <em>Resource Env Ref</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MessageDrivenBeanTypeImpl#getId <em>Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MessageDrivenBeanTypeImpl extends EObjectImpl implements MessageDrivenBeanType {
+    /**
+     * The default value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbName()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbName()
+     * @generated
+     * @ordered
+     */
+    protected String ejbName = EJB_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getResourceAdapter() <em>Resource Adapter</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResourceAdapter()
+     * @generated
+     * @ordered
+     */
+    protected ResourceLocatorType resourceAdapter = null;
+
+    /**
+     * The cached value of the '{@link #getActivationConfig() <em>Activation Config</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getActivationConfig()
+     * @generated
+     * @ordered
+     */
+    protected ActivationConfigType activationConfig = null;
+
+    /**
+     * The cached value of the '{@link #getEjbRef() <em>Ejb Ref</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRef()
+     * @generated
+     * @ordered
+     */
+    protected EList ejbRef = null;
+
+    /**
+     * The cached value of the '{@link #getEjbLocalRef() <em>Ejb Local Ref</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbLocalRef()
+     * @generated
+     * @ordered
+     */
+    protected EList ejbLocalRef = null;
+
+    /**
+     * The cached value of the '{@link #getServiceRef() <em>Service Ref</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getServiceRef()
+     * @generated
+     * @ordered
+     */
+    protected EList serviceRef = null;
+
+    /**
+     * The cached value of the '{@link #getResourceRef() <em>Resource Ref</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResourceRef()
+     * @generated
+     * @ordered
+     */
+    protected EList resourceRef = null;
+
+    /**
+     * The cached value of the '{@link #getResourceEnvRef() <em>Resource Env Ref</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResourceEnvRef()
+     * @generated
+     * @ordered
+     */
+    protected EList resourceEnvRef = null;
+
+    /**
+     * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected static final String ID_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected String id = ID_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected MessageDrivenBeanTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getMessageDrivenBeanType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbName() {
+        return ejbName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbName(String newEjbName) {
+        String oldEjbName = ejbName;
+        ejbName = newEjbName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME, oldEjbName, ejbName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ResourceLocatorType getResourceAdapter() {
+        return resourceAdapter;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetResourceAdapter(ResourceLocatorType newResourceAdapter, NotificationChain msgs) {
+        ResourceLocatorType oldResourceAdapter = resourceAdapter;
+        resourceAdapter = newResourceAdapter;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER, oldResourceAdapter, newResourceAdapter);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setResourceAdapter(ResourceLocatorType newResourceAdapter) {
+        if (newResourceAdapter != resourceAdapter) {
+            NotificationChain msgs = null;
+            if (resourceAdapter != null)
+                msgs = ((InternalEObject)resourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER, null, msgs);
+            if (newResourceAdapter != null)
+                msgs = ((InternalEObject)newResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER, null, msgs);
+            msgs = basicSetResourceAdapter(newResourceAdapter, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER, newResourceAdapter, newResourceAdapter));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ActivationConfigType getActivationConfig() {
+        return activationConfig;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetActivationConfig(ActivationConfigType newActivationConfig, NotificationChain msgs) {
+        ActivationConfigType oldActivationConfig = activationConfig;
+        activationConfig = newActivationConfig;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG, oldActivationConfig, newActivationConfig);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setActivationConfig(ActivationConfigType newActivationConfig) {
+        if (newActivationConfig != activationConfig) {
+            NotificationChain msgs = null;
+            if (activationConfig != null)
+                msgs = ((InternalEObject)activationConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG, null, msgs);
+            if (newActivationConfig != null)
+                msgs = ((InternalEObject)newActivationConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG, null, msgs);
+            msgs = basicSetActivationConfig(newActivationConfig, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG, newActivationConfig, newActivationConfig));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getEjbRef() {
+        if (ejbRef == null) {
+            ejbRef = new EObjectContainmentEList(EjbRefType.class, this, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF);
+        }
+        return ejbRef;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getEjbLocalRef() {
+        if (ejbLocalRef == null) {
+            ejbLocalRef = new EObjectContainmentEList(EjbLocalRefType.class, this, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF);
+        }
+        return ejbLocalRef;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getServiceRef() {
+        if (serviceRef == null) {
+            serviceRef = new EObjectContainmentEList(ServiceRefType.class, this, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF);
+        }
+        return serviceRef;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getResourceRef() {
+        if (resourceRef == null) {
+            resourceRef = new EObjectContainmentEList(ResourceRefType.class, this, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF);
+        }
+        return resourceRef;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getResourceEnvRef() {
+        if (resourceEnvRef == null) {
+            resourceEnvRef = new EObjectContainmentEList(ResourceEnvRefType.class, this, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF);
+        }
+        return resourceEnvRef;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setId(String newId) {
+        String oldId = id;
+        id = newId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID, oldId, id));
+    }
+
+    /**
+     * <!-- 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 JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+                    return basicSetResourceAdapter(null, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+                    return basicSetActivationConfig(null, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+                    return ((InternalEList)getEjbRef()).basicRemove(otherEnd, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+                    return ((InternalEList)getEjbLocalRef()).basicRemove(otherEnd, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+                    return ((InternalEList)getServiceRef()).basicRemove(otherEnd, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+                    return ((InternalEList)getResourceRef()).basicRemove(otherEnd, msgs);
+                case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+                    return ((InternalEList)getResourceEnvRef()).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 JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME:
+                return getEjbName();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+                return getResourceAdapter();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+                return getActivationConfig();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+                return getEjbRef();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+                return getEjbLocalRef();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+                return getServiceRef();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+                return getResourceRef();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+                return getResourceEnvRef();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID:
+                return getId();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME:
+                setEjbName((String)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+                setResourceAdapter((ResourceLocatorType)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+                setActivationConfig((ActivationConfigType)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+                getEjbRef().clear();
+                getEjbRef().addAll((Collection)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+                getEjbLocalRef().clear();
+                getEjbLocalRef().addAll((Collection)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+                getServiceRef().clear();
+                getServiceRef().addAll((Collection)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+                getResourceRef().clear();
+                getResourceRef().addAll((Collection)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+                getResourceEnvRef().clear();
+                getResourceEnvRef().addAll((Collection)newValue);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID:
+                setId((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME:
+                setEjbName(EJB_NAME_EDEFAULT);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+                setResourceAdapter((ResourceLocatorType)null);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+                setActivationConfig((ActivationConfigType)null);
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+                getEjbRef().clear();
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+                getEjbLocalRef().clear();
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+                getServiceRef().clear();
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+                getResourceRef().clear();
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+                getResourceEnvRef().clear();
+                return;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID:
+                setId(ID_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_NAME:
+                return EJB_NAME_EDEFAULT == null ? ejbName != null : !EJB_NAME_EDEFAULT.equals(ejbName);
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ADAPTER:
+                return resourceAdapter != null;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ACTIVATION_CONFIG:
+                return activationConfig != null;
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_REF:
+                return ejbRef != null && !ejbRef.isEmpty();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__EJB_LOCAL_REF:
+                return ejbLocalRef != null && !ejbLocalRef.isEmpty();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__SERVICE_REF:
+                return serviceRef != null && !serviceRef.isEmpty();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_REF:
+                return resourceRef != null && !resourceRef.isEmpty();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__RESOURCE_ENV_REF:
+                return resourceEnvRef != null && !resourceEnvRef.isEmpty();
+            case JarPackage.MESSAGE_DRIVEN_BEAN_TYPE__ID:
+                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (ejbName: ");
+        result.append(ejbName);
+        result.append(", id: ");
+        result.append(id);
+        result.append(')');
+        return result.toString();
+    }
+
+} //MessageDrivenBeanTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MethodParamsTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MethodParamsTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MethodParamsTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/MethodParamsTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,156 @@
+/**
+ * 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.openejb.xml.ns.openejb.jar.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MethodParamsType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Method Params Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.MethodParamsTypeImpl#getMethodParam <em>Method Param</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MethodParamsTypeImpl extends EObjectImpl implements MethodParamsType {
+    /**
+     * The cached value of the '{@link #getMethodParam() <em>Method Param</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodParam()
+     * @generated
+     * @ordered
+     */
+    protected EList methodParam = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected MethodParamsTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getMethodParamsType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getMethodParam() {
+        if (methodParam == null) {
+            methodParam = new EDataTypeEList(String.class, this, JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM);
+        }
+        return methodParam;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM:
+                return getMethodParam();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM:
+                getMethodParam().clear();
+                getMethodParam().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM:
+                getMethodParam().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.METHOD_PARAMS_TYPE__METHOD_PARAM:
+                return methodParam != null && !methodParam.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(" (methodParam: ");
+        result.append(methodParam);
+        result.append(')');
+        return result.toString();
+    }
+
+} //MethodParamsTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/OpenejbJarTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/OpenejbJarTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/OpenejbJarTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/OpenejbJarTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,793 @@
+/**
+ * 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.openejb.xml.ns.openejb.jar.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.deployment.DependencyType;
+import org.apache.geronimo.xml.ns.deployment.GbeanType;
+
+import org.apache.geronimo.xml.ns.naming.ResourceLocatorType;
+
+import org.apache.geronimo.xml.ns.security.SecurityType;
+
+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.EObject;
+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;
+
+import org.openejb.xml.ns.openejb.jar.EnterpriseBeansType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.OpenejbJarType;
+import org.openejb.xml.ns.openejb.jar.RelationshipsType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Openejb Jar Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getDependency <em>Dependency</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getCmpConnectionFactory <em>Cmp Connection Factory</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getEjbQlCompilerFactory <em>Ejb Ql Compiler Factory</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getDbSyntaxFactory <em>Db Syntax Factory</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getEnforceForeignKeyConstraints <em>Enforce Foreign Key Constraints</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getEnterpriseBeans <em>Enterprise Beans</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getRelationships <em>Relationships</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getSecurity <em>Security</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getGbean <em>Gbean</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getConfigId <em>Config Id</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.OpenejbJarTypeImpl#getParentId <em>Parent Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OpenejbJarTypeImpl extends EObjectImpl implements OpenejbJarType {
+    /**
+     * The cached value of the '{@link #getDependency() <em>Dependency</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDependency()
+     * @generated
+     * @ordered
+     */
+    protected EList dependency = null;
+
+    /**
+     * The cached value of the '{@link #getCmpConnectionFactory() <em>Cmp Connection Factory</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmpConnectionFactory()
+     * @generated
+     * @ordered
+     */
+    protected ResourceLocatorType cmpConnectionFactory = null;
+
+    /**
+     * The cached value of the '{@link #getEjbQlCompilerFactory() <em>Ejb Ql Compiler Factory</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbQlCompilerFactory()
+     * @generated
+     * @ordered
+     */
+    protected EObject ejbQlCompilerFactory = null;
+
+    /**
+     * The cached value of the '{@link #getDbSyntaxFactory() <em>Db Syntax Factory</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDbSyntaxFactory()
+     * @generated
+     * @ordered
+     */
+    protected EObject dbSyntaxFactory = null;
+
+    /**
+     * The cached value of the '{@link #getEnforceForeignKeyConstraints() <em>Enforce Foreign Key Constraints</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEnforceForeignKeyConstraints()
+     * @generated
+     * @ordered
+     */
+    protected EObject enforceForeignKeyConstraints = null;
+
+    /**
+     * The cached value of the '{@link #getEnterpriseBeans() <em>Enterprise Beans</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEnterpriseBeans()
+     * @generated
+     * @ordered
+     */
+    protected EnterpriseBeansType enterpriseBeans = null;
+
+    /**
+     * The cached value of the '{@link #getRelationships() <em>Relationships</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRelationships()
+     * @generated
+     * @ordered
+     */
+    protected RelationshipsType relationships = null;
+
+    /**
+     * The cached value of the '{@link #getSecurity() <em>Security</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurity()
+     * @generated
+     * @ordered
+     */
+    protected SecurityType security = null;
+
+    /**
+     * The cached value of the '{@link #getGbean() <em>Gbean</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGbean()
+     * @generated
+     * @ordered
+     */
+    protected EList gbean = null;
+
+    /**
+     * The default value of the '{@link #getConfigId() <em>Config Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getConfigId()
+     * @generated
+     * @ordered
+     */
+    protected static final String CONFIG_ID_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getConfigId() <em>Config Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getConfigId()
+     * @generated
+     * @ordered
+     */
+    protected String configId = CONFIG_ID_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getParentId() <em>Parent Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getParentId()
+     * @generated
+     * @ordered
+     */
+    protected static final String PARENT_ID_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getParentId() <em>Parent Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getParentId()
+     * @generated
+     * @ordered
+     */
+    protected String parentId = PARENT_ID_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected OpenejbJarTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getOpenejbJarType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getDependency() {
+        if (dependency == null) {
+            dependency = new EObjectContainmentEList(DependencyType.class, this, JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY);
+        }
+        return dependency;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ResourceLocatorType getCmpConnectionFactory() {
+        return cmpConnectionFactory;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetCmpConnectionFactory(ResourceLocatorType newCmpConnectionFactory, NotificationChain msgs) {
+        ResourceLocatorType oldCmpConnectionFactory = cmpConnectionFactory;
+        cmpConnectionFactory = newCmpConnectionFactory;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY, oldCmpConnectionFactory, newCmpConnectionFactory);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCmpConnectionFactory(ResourceLocatorType newCmpConnectionFactory) {
+        if (newCmpConnectionFactory != cmpConnectionFactory) {
+            NotificationChain msgs = null;
+            if (cmpConnectionFactory != null)
+                msgs = ((InternalEObject)cmpConnectionFactory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY, null, msgs);
+            if (newCmpConnectionFactory != null)
+                msgs = ((InternalEObject)newCmpConnectionFactory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY, null, msgs);
+            msgs = basicSetCmpConnectionFactory(newCmpConnectionFactory, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY, newCmpConnectionFactory, newCmpConnectionFactory));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject getEjbQlCompilerFactory() {
+        return ejbQlCompilerFactory;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEjbQlCompilerFactory(EObject newEjbQlCompilerFactory, NotificationChain msgs) {
+        EObject oldEjbQlCompilerFactory = ejbQlCompilerFactory;
+        ejbQlCompilerFactory = newEjbQlCompilerFactory;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY, oldEjbQlCompilerFactory, newEjbQlCompilerFactory);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbQlCompilerFactory(EObject newEjbQlCompilerFactory) {
+        if (newEjbQlCompilerFactory != ejbQlCompilerFactory) {
+            NotificationChain msgs = null;
+            if (ejbQlCompilerFactory != null)
+                msgs = ((InternalEObject)ejbQlCompilerFactory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY, null, msgs);
+            if (newEjbQlCompilerFactory != null)
+                msgs = ((InternalEObject)newEjbQlCompilerFactory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY, null, msgs);
+            msgs = basicSetEjbQlCompilerFactory(newEjbQlCompilerFactory, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY, newEjbQlCompilerFactory, newEjbQlCompilerFactory));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject getDbSyntaxFactory() {
+        return dbSyntaxFactory;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetDbSyntaxFactory(EObject newDbSyntaxFactory, NotificationChain msgs) {
+        EObject oldDbSyntaxFactory = dbSyntaxFactory;
+        dbSyntaxFactory = newDbSyntaxFactory;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY, oldDbSyntaxFactory, newDbSyntaxFactory);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDbSyntaxFactory(EObject newDbSyntaxFactory) {
+        if (newDbSyntaxFactory != dbSyntaxFactory) {
+            NotificationChain msgs = null;
+            if (dbSyntaxFactory != null)
+                msgs = ((InternalEObject)dbSyntaxFactory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY, null, msgs);
+            if (newDbSyntaxFactory != null)
+                msgs = ((InternalEObject)newDbSyntaxFactory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY, null, msgs);
+            msgs = basicSetDbSyntaxFactory(newDbSyntaxFactory, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY, newDbSyntaxFactory, newDbSyntaxFactory));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject getEnforceForeignKeyConstraints() {
+        return enforceForeignKeyConstraints;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEnforceForeignKeyConstraints(EObject newEnforceForeignKeyConstraints, NotificationChain msgs) {
+        EObject oldEnforceForeignKeyConstraints = enforceForeignKeyConstraints;
+        enforceForeignKeyConstraints = newEnforceForeignKeyConstraints;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS, oldEnforceForeignKeyConstraints, newEnforceForeignKeyConstraints);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEnforceForeignKeyConstraints(EObject newEnforceForeignKeyConstraints) {
+        if (newEnforceForeignKeyConstraints != enforceForeignKeyConstraints) {
+            NotificationChain msgs = null;
+            if (enforceForeignKeyConstraints != null)
+                msgs = ((InternalEObject)enforceForeignKeyConstraints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS, null, msgs);
+            if (newEnforceForeignKeyConstraints != null)
+                msgs = ((InternalEObject)newEnforceForeignKeyConstraints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS, null, msgs);
+            msgs = basicSetEnforceForeignKeyConstraints(newEnforceForeignKeyConstraints, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS, newEnforceForeignKeyConstraints, newEnforceForeignKeyConstraints));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EnterpriseBeansType getEnterpriseBeans() {
+        return enterpriseBeans;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEnterpriseBeans(EnterpriseBeansType newEnterpriseBeans, NotificationChain msgs) {
+        EnterpriseBeansType oldEnterpriseBeans = enterpriseBeans;
+        enterpriseBeans = newEnterpriseBeans;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS, oldEnterpriseBeans, newEnterpriseBeans);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEnterpriseBeans(EnterpriseBeansType newEnterpriseBeans) {
+        if (newEnterpriseBeans != enterpriseBeans) {
+            NotificationChain msgs = null;
+            if (enterpriseBeans != null)
+                msgs = ((InternalEObject)enterpriseBeans).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS, null, msgs);
+            if (newEnterpriseBeans != null)
+                msgs = ((InternalEObject)newEnterpriseBeans).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS, null, msgs);
+            msgs = basicSetEnterpriseBeans(newEnterpriseBeans, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS, newEnterpriseBeans, newEnterpriseBeans));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RelationshipsType getRelationships() {
+        return relationships;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetRelationships(RelationshipsType newRelationships, NotificationChain msgs) {
+        RelationshipsType oldRelationships = relationships;
+        relationships = newRelationships;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS, oldRelationships, newRelationships);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRelationships(RelationshipsType newRelationships) {
+        if (newRelationships != relationships) {
+            NotificationChain msgs = null;
+            if (relationships != null)
+                msgs = ((InternalEObject)relationships).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS, null, msgs);
+            if (newRelationships != null)
+                msgs = ((InternalEObject)newRelationships).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS, null, msgs);
+            msgs = basicSetRelationships(newRelationships, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS, newRelationships, newRelationships));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SecurityType getSecurity() {
+        return security;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
+        SecurityType oldSecurity = security;
+        security = newSecurity;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__SECURITY, oldSecurity, newSecurity);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSecurity(SecurityType newSecurity) {
+        if (newSecurity != security) {
+            NotificationChain msgs = null;
+            if (security != null)
+                msgs = ((InternalEObject)security).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__SECURITY, null, msgs);
+            if (newSecurity != null)
+                msgs = ((InternalEObject)newSecurity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.OPENEJB_JAR_TYPE__SECURITY, null, msgs);
+            msgs = basicSetSecurity(newSecurity, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__SECURITY, newSecurity, newSecurity));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getGbean() {
+        if (gbean == null) {
+            gbean = new EObjectContainmentEList(GbeanType.class, this, JarPackage.OPENEJB_JAR_TYPE__GBEAN);
+        }
+        return gbean;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getConfigId() {
+        return configId;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setConfigId(String newConfigId) {
+        String oldConfigId = configId;
+        configId = newConfigId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__CONFIG_ID, oldConfigId, configId));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getParentId() {
+        return parentId;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setParentId(String newParentId) {
+        String oldParentId = parentId;
+        parentId = newParentId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.OPENEJB_JAR_TYPE__PARENT_ID, oldParentId, parentId));
+    }
+
+    /**
+     * <!-- 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 JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY:
+                    return ((InternalEList)getDependency()).basicRemove(otherEnd, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY:
+                    return basicSetCmpConnectionFactory(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY:
+                    return basicSetEjbQlCompilerFactory(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY:
+                    return basicSetDbSyntaxFactory(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS:
+                    return basicSetEnforceForeignKeyConstraints(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS:
+                    return basicSetEnterpriseBeans(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS:
+                    return basicSetRelationships(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__SECURITY:
+                    return basicSetSecurity(null, msgs);
+                case JarPackage.OPENEJB_JAR_TYPE__GBEAN:
+                    return ((InternalEList)getGbean()).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 JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY:
+                return getDependency();
+            case JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY:
+                return getCmpConnectionFactory();
+            case JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY:
+                return getEjbQlCompilerFactory();
+            case JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY:
+                return getDbSyntaxFactory();
+            case JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS:
+                return getEnforceForeignKeyConstraints();
+            case JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS:
+                return getEnterpriseBeans();
+            case JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS:
+                return getRelationships();
+            case JarPackage.OPENEJB_JAR_TYPE__SECURITY:
+                return getSecurity();
+            case JarPackage.OPENEJB_JAR_TYPE__GBEAN:
+                return getGbean();
+            case JarPackage.OPENEJB_JAR_TYPE__CONFIG_ID:
+                return getConfigId();
+            case JarPackage.OPENEJB_JAR_TYPE__PARENT_ID:
+                return getParentId();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY:
+                getDependency().clear();
+                getDependency().addAll((Collection)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY:
+                setCmpConnectionFactory((ResourceLocatorType)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY:
+                setEjbQlCompilerFactory((EObject)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY:
+                setDbSyntaxFactory((EObject)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS:
+                setEnforceForeignKeyConstraints((EObject)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS:
+                setEnterpriseBeans((EnterpriseBeansType)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS:
+                setRelationships((RelationshipsType)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__SECURITY:
+                setSecurity((SecurityType)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__GBEAN:
+                getGbean().clear();
+                getGbean().addAll((Collection)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__CONFIG_ID:
+                setConfigId((String)newValue);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__PARENT_ID:
+                setParentId((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY:
+                getDependency().clear();
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY:
+                setCmpConnectionFactory((ResourceLocatorType)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY:
+                setEjbQlCompilerFactory((EObject)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY:
+                setDbSyntaxFactory((EObject)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS:
+                setEnforceForeignKeyConstraints((EObject)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS:
+                setEnterpriseBeans((EnterpriseBeansType)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS:
+                setRelationships((RelationshipsType)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__SECURITY:
+                setSecurity((SecurityType)null);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__GBEAN:
+                getGbean().clear();
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__CONFIG_ID:
+                setConfigId(CONFIG_ID_EDEFAULT);
+                return;
+            case JarPackage.OPENEJB_JAR_TYPE__PARENT_ID:
+                setParentId(PARENT_ID_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.OPENEJB_JAR_TYPE__DEPENDENCY:
+                return dependency != null && !dependency.isEmpty();
+            case JarPackage.OPENEJB_JAR_TYPE__CMP_CONNECTION_FACTORY:
+                return cmpConnectionFactory != null;
+            case JarPackage.OPENEJB_JAR_TYPE__EJB_QL_COMPILER_FACTORY:
+                return ejbQlCompilerFactory != null;
+            case JarPackage.OPENEJB_JAR_TYPE__DB_SYNTAX_FACTORY:
+                return dbSyntaxFactory != null;
+            case JarPackage.OPENEJB_JAR_TYPE__ENFORCE_FOREIGN_KEY_CONSTRAINTS:
+                return enforceForeignKeyConstraints != null;
+            case JarPackage.OPENEJB_JAR_TYPE__ENTERPRISE_BEANS:
+                return enterpriseBeans != null;
+            case JarPackage.OPENEJB_JAR_TYPE__RELATIONSHIPS:
+                return relationships != null;
+            case JarPackage.OPENEJB_JAR_TYPE__SECURITY:
+                return security != null;
+            case JarPackage.OPENEJB_JAR_TYPE__GBEAN:
+                return gbean != null && !gbean.isEmpty();
+            case JarPackage.OPENEJB_JAR_TYPE__CONFIG_ID:
+                return CONFIG_ID_EDEFAULT == null ? configId != null : !CONFIG_ID_EDEFAULT.equals(configId);
+            case JarPackage.OPENEJB_JAR_TYPE__PARENT_ID:
+                return PARENT_ID_EDEFAULT == null ? parentId != null : !PARENT_ID_EDEFAULT.equals(parentId);
+        }
+        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(" (configId: ");
+        result.append(configId);
+        result.append(", parentId: ");
+        result.append(parentId);
+        result.append(')');
+        return result.toString();
+    }
+
+} //OpenejbJarTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java Wed Sep 14 11:59:30 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.openejb.xml.ns.openejb.jar.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.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;
+
+import org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.EntityGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.GroupType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.PrefetchGroupType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Prefetch Group Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getGroup <em>Group</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getEntityGroupMapping <em>Entity Group Mapping</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmpFieldGroupMapping <em>Cmp Field Group Mapping</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmrFieldGroupMapping <em>Cmr Field Group Mapping</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PrefetchGroupTypeImpl extends EObjectImpl implements PrefetchGroupType {
+    /**
+     * The cached value of the '{@link #getGroup() <em>Group</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGroup()
+     * @generated
+     * @ordered
+     */
+    protected EList group = null;
+
+    /**
+     * The cached value of the '{@link #getEntityGroupMapping() <em>Entity Group Mapping</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEntityGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EntityGroupMappingType entityGroupMapping = null;
+
+    /**
+     * The cached value of the '{@link #getCmpFieldGroupMapping() <em>Cmp Field Group Mapping</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmpFieldGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EList cmpFieldGroupMapping = null;
+
+    /**
+     * The cached value of the '{@link #getCmrFieldGroupMapping() <em>Cmr Field Group Mapping</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmrFieldGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EList cmrFieldGroupMapping = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PrefetchGroupTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getPrefetchGroupType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getGroup() {
+        if (group == null) {
+            group = new EObjectContainmentEList(GroupType.class, this, JarPackage.PREFETCH_GROUP_TYPE__GROUP);
+        }
+        return group;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EntityGroupMappingType getEntityGroupMapping() {
+        return entityGroupMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping, NotificationChain msgs) {
+        EntityGroupMappingType oldEntityGroupMapping = entityGroupMapping;
+        entityGroupMapping = newEntityGroupMapping;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, oldEntityGroupMapping, newEntityGroupMapping);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping) {
+        if (newEntityGroupMapping != entityGroupMapping) {
+            NotificationChain msgs = null;
+            if (entityGroupMapping != null)
+                msgs = ((InternalEObject)entityGroupMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
+            if (newEntityGroupMapping != null)
+                msgs = ((InternalEObject)newEntityGroupMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
+            msgs = basicSetEntityGroupMapping(newEntityGroupMapping, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, newEntityGroupMapping, newEntityGroupMapping));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getCmpFieldGroupMapping() {
+        if (cmpFieldGroupMapping == null) {
+            cmpFieldGroupMapping = new EObjectContainmentEList(CmpFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING);
+        }
+        return cmpFieldGroupMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getCmrFieldGroupMapping() {
+        if (cmrFieldGroupMapping == null) {
+            cmrFieldGroupMapping = new EObjectContainmentEList(CmrFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING);
+        }
+        return cmrFieldGroupMapping;
+    }
+
+    /**
+     * <!-- 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 JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                    return basicSetEntityGroupMapping(null, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                    return ((InternalEList)getCmpFieldGroupMapping()).basicRemove(otherEnd, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                    return ((InternalEList)getCmrFieldGroupMapping()).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 JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                return getGroup();
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                return getEntityGroupMapping();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                return getCmpFieldGroupMapping();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                return getCmrFieldGroupMapping();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                getGroup().clear();
+                getGroup().addAll((Collection)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                setEntityGroupMapping((EntityGroupMappingType)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                getCmpFieldGroupMapping().clear();
+                getCmpFieldGroupMapping().addAll((Collection)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                getCmrFieldGroupMapping().clear();
+                getCmrFieldGroupMapping().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                getGroup().clear();
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                setEntityGroupMapping((EntityGroupMappingType)null);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                getCmpFieldGroupMapping().clear();
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                getCmrFieldGroupMapping().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                return group != null && !group.isEmpty();
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                return entityGroupMapping != null;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                return cmpFieldGroupMapping != null && !cmpFieldGroupMapping.isEmpty();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                return cmrFieldGroupMapping != null && !cmrFieldGroupMapping.isEmpty();
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+} //PrefetchGroupTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,255 @@
+/**
+ * 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.openejb.xml.ns.openejb.jar.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MethodParamsType;
+import org.openejb.xml.ns.openejb.jar.QueryMethodType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Query Method Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodName <em>Method Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodParams <em>Method Params</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class QueryMethodTypeImpl extends EObjectImpl implements QueryMethodType {
+    /**
+     * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodName()
+     * @generated
+     * @ordered
+     */
+    protected static final String METHOD_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodName()
+     * @generated
+     * @ordered
+     */
+    protected String methodName = METHOD_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getMethodParams() <em>Method Params</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodParams()
+     * @generated
+     * @ordered
+     */
+    protected MethodParamsType methodParams = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected QueryMethodTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getQueryMethodType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getMethodName() {
+        return methodName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setMethodName(String newMethodName) {
+        String oldMethodName = methodName;
+        methodName = newMethodName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_NAME, oldMethodName, methodName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public MethodParamsType getMethodParams() {
+        return methodParams;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetMethodParams(MethodParamsType newMethodParams, NotificationChain msgs) {
+        MethodParamsType oldMethodParams = methodParams;
+        methodParams = newMethodParams;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, oldMethodParams, newMethodParams);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setMethodParams(MethodParamsType newMethodParams) {
+        if (newMethodParams != methodParams) {
+            NotificationChain msgs = null;
+            if (methodParams != null)
+                msgs = ((InternalEObject)methodParams).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
+            if (newMethodParams != null)
+                msgs = ((InternalEObject)newMethodParams).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
+            msgs = basicSetMethodParams(newMethodParams, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, newMethodParams, newMethodParams));
+    }
+
+    /**
+     * <!-- 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 JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                    return basicSetMethodParams(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 JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                return getMethodName();
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                return getMethodParams();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                setMethodName((String)newValue);
+                return;
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                setMethodParams((MethodParamsType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                setMethodName(METHOD_NAME_EDEFAULT);
+                return;
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                setMethodParams((MethodParamsType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName);
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                return methodParams != null;
+        }
+        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(" (methodName: ");
+        result.append(methodName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //QueryMethodTypeImpl



Mime
View raw message