geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r280909 [42/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/DocumentRootImpl.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/DocumentRootImpl.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/DocumentRootImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/DocumentRootImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,294 @@
+/**
+ * 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.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.openejb.xml.ns.openejb.jar.DocumentRoot;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.OpenejbJarType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getOpenejbJar <em>Openejb Jar</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+    /**
+     * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMixed()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap mixed = null;
+
+    /**
+     * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXMLNSPrefixMap()
+     * @generated
+     * @ordered
+     */
+    protected EMap xMLNSPrefixMap = null;
+
+    /**
+     * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXSISchemaLocation()
+     * @generated
+     * @ordered
+     */
+    protected EMap xSISchemaLocation = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DocumentRootImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getDocumentRoot();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getMixed() {
+        if (mixed == null) {
+            mixed = new BasicFeatureMap(this, JarPackage.DOCUMENT_ROOT__MIXED);
+        }
+        return mixed;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap getXMLNSPrefixMap() {
+        if (xMLNSPrefixMap == null) {
+            xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+        }
+        return xMLNSPrefixMap;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap getXSISchemaLocation() {
+        if (xSISchemaLocation == null) {
+            xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        }
+        return xSISchemaLocation;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public OpenejbJarType getOpenejbJar() {
+        return (OpenejbJarType)getMixed().get(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetOpenejbJar(OpenejbJarType newOpenejbJar, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), newOpenejbJar, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setOpenejbJar(OpenejbJarType newOpenejbJar) {
+        ((FeatureMap.Internal)getMixed()).set(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), newOpenejbJar);
+    }
+
+    /**
+     * <!-- 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.DOCUMENT_ROOT__MIXED:
+                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
+                case JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+                case JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+                case JarPackage.DOCUMENT_ROOT__OPENEJB_JAR:
+                    return basicSetOpenejbJar(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.DOCUMENT_ROOT__MIXED:
+                return getMixed();
+            case JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return getXMLNSPrefixMap();
+            case JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return getXSISchemaLocation();
+            case JarPackage.DOCUMENT_ROOT__OPENEJB_JAR:
+                return getOpenejbJar();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                getMixed().addAll((Collection)newValue);
+                return;
+            case JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                getXMLNSPrefixMap().addAll((Collection)newValue);
+                return;
+            case JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                getXSISchemaLocation().addAll((Collection)newValue);
+                return;
+            case JarPackage.DOCUMENT_ROOT__OPENEJB_JAR:
+                setOpenejbJar((OpenejbJarType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                return;
+            case JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                return;
+            case JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                return;
+            case JarPackage.DOCUMENT_ROOT__OPENEJB_JAR:
+                setOpenejbJar((OpenejbJarType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.DOCUMENT_ROOT__MIXED:
+                return mixed != null && !mixed.isEmpty();
+            case JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+            case JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+            case JarPackage.DOCUMENT_ROOT__OPENEJB_JAR:
+                return getOpenejbJar() != 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(" (mixed: ");
+        result.append(mixed);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DocumentRootImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EjbRelationTypeImpl.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/EjbRelationTypeImpl.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/EjbRelationTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EjbRelationTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,286 @@
+/**
+ * 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.EjbRelationType;
+import org.openejb.xml.ns.openejb.jar.EjbRelationshipRoleType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Ejb Relation Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getEjbRelationName <em>Ejb Relation Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getManyToManyTableName <em>Many To Many Table Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getEjbRelationshipRole <em>Ejb Relationship Role</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EjbRelationTypeImpl extends EObjectImpl implements EjbRelationType {
+    /**
+     * The default value of the '{@link #getEjbRelationName() <em>Ejb Relation Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRelationName()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_RELATION_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbRelationName() <em>Ejb Relation Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRelationName()
+     * @generated
+     * @ordered
+     */
+    protected String ejbRelationName = EJB_RELATION_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getManyToManyTableName() <em>Many To Many Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getManyToManyTableName()
+     * @generated
+     * @ordered
+     */
+    protected static final String MANY_TO_MANY_TABLE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getManyToManyTableName() <em>Many To Many Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getManyToManyTableName()
+     * @generated
+     * @ordered
+     */
+    protected String manyToManyTableName = MANY_TO_MANY_TABLE_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getEjbRelationshipRole() <em>Ejb Relationship Role</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRelationshipRole()
+     * @generated
+     * @ordered
+     */
+    protected EList ejbRelationshipRole = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EjbRelationTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getEjbRelationType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbRelationName() {
+        return ejbRelationName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbRelationName(String newEjbRelationName) {
+        String oldEjbRelationName = ejbRelationName;
+        ejbRelationName = newEjbRelationName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATION_TYPE__EJB_RELATION_NAME, oldEjbRelationName, ejbRelationName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getManyToManyTableName() {
+        return manyToManyTableName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setManyToManyTableName(String newManyToManyTableName) {
+        String oldManyToManyTableName = manyToManyTableName;
+        manyToManyTableName = newManyToManyTableName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME, oldManyToManyTableName, manyToManyTableName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getEjbRelationshipRole() {
+        if (ejbRelationshipRole == null) {
+            ejbRelationshipRole = new EObjectContainmentEList(EjbRelationshipRoleType.class, this, JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE);
+        }
+        return ejbRelationshipRole;
+    }
+
+    /**
+     * <!-- 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.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+                    return ((InternalEList)getEjbRelationshipRole()).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.EJB_RELATION_TYPE__EJB_RELATION_NAME:
+                return getEjbRelationName();
+            case JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME:
+                return getManyToManyTableName();
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+                return getEjbRelationshipRole();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATION_NAME:
+                setEjbRelationName((String)newValue);
+                return;
+            case JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME:
+                setManyToManyTableName((String)newValue);
+                return;
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+                getEjbRelationshipRole().clear();
+                getEjbRelationshipRole().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATION_NAME:
+                setEjbRelationName(EJB_RELATION_NAME_EDEFAULT);
+                return;
+            case JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME:
+                setManyToManyTableName(MANY_TO_MANY_TABLE_NAME_EDEFAULT);
+                return;
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+                getEjbRelationshipRole().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATION_NAME:
+                return EJB_RELATION_NAME_EDEFAULT == null ? ejbRelationName != null : !EJB_RELATION_NAME_EDEFAULT.equals(ejbRelationName);
+            case JarPackage.EJB_RELATION_TYPE__MANY_TO_MANY_TABLE_NAME:
+                return MANY_TO_MANY_TABLE_NAME_EDEFAULT == null ? manyToManyTableName != null : !MANY_TO_MANY_TABLE_NAME_EDEFAULT.equals(manyToManyTableName);
+            case JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE:
+                return ejbRelationshipRole != null && !ejbRelationshipRole.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(" (ejbRelationName: ");
+        result.append(ejbRelationName);
+        result.append(", manyToManyTableName: ");
+        result.append(manyToManyTableName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //EjbRelationTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EjbRelationshipRoleTypeImpl.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/EjbRelationshipRoleTypeImpl.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/EjbRelationshipRoleTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EjbRelationshipRoleTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,456 @@
+/**
+ * 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.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.openejb.xml.ns.openejb.jar.CmrFieldType;
+import org.openejb.xml.ns.openejb.jar.EjbRelationshipRoleType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.RelationshipRoleSourceType;
+import org.openejb.xml.ns.openejb.jar.RoleMappingType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Ejb Relationship Role Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getEjbRelationshipRoleName <em>Ejb Relationship Role Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getRelationshipRoleSource <em>Relationship Role Source</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getCmrField <em>Cmr Field</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getForeignKeyColumnOnSource <em>Foreign Key Column On Source</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getRoleMapping <em>Role Mapping</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EjbRelationshipRoleTypeImpl extends EObjectImpl implements EjbRelationshipRoleType {
+    /**
+     * The default value of the '{@link #getEjbRelationshipRoleName() <em>Ejb Relationship Role Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRelationshipRoleName()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbRelationshipRoleName() <em>Ejb Relationship Role Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbRelationshipRoleName()
+     * @generated
+     * @ordered
+     */
+    protected String ejbRelationshipRoleName = EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getRelationshipRoleSource() <em>Relationship Role Source</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRelationshipRoleSource()
+     * @generated
+     * @ordered
+     */
+    protected RelationshipRoleSourceType relationshipRoleSource = null;
+
+    /**
+     * The cached value of the '{@link #getCmrField() <em>Cmr Field</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmrField()
+     * @generated
+     * @ordered
+     */
+    protected CmrFieldType cmrField = null;
+
+    /**
+     * The cached value of the '{@link #getForeignKeyColumnOnSource() <em>Foreign Key Column On Source</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getForeignKeyColumnOnSource()
+     * @generated
+     * @ordered
+     */
+    protected EObject foreignKeyColumnOnSource = null;
+
+    /**
+     * The cached value of the '{@link #getRoleMapping() <em>Role Mapping</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRoleMapping()
+     * @generated
+     * @ordered
+     */
+    protected RoleMappingType roleMapping = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EjbRelationshipRoleTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getEjbRelationshipRoleType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbRelationshipRoleName() {
+        return ejbRelationshipRoleName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbRelationshipRoleName(String newEjbRelationshipRoleName) {
+        String oldEjbRelationshipRoleName = ejbRelationshipRoleName;
+        ejbRelationshipRoleName = newEjbRelationshipRoleName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME, oldEjbRelationshipRoleName, ejbRelationshipRoleName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RelationshipRoleSourceType getRelationshipRoleSource() {
+        return relationshipRoleSource;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetRelationshipRoleSource(RelationshipRoleSourceType newRelationshipRoleSource, NotificationChain msgs) {
+        RelationshipRoleSourceType oldRelationshipRoleSource = relationshipRoleSource;
+        relationshipRoleSource = newRelationshipRoleSource;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE, oldRelationshipRoleSource, newRelationshipRoleSource);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRelationshipRoleSource(RelationshipRoleSourceType newRelationshipRoleSource) {
+        if (newRelationshipRoleSource != relationshipRoleSource) {
+            NotificationChain msgs = null;
+            if (relationshipRoleSource != null)
+                msgs = ((InternalEObject)relationshipRoleSource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE, null, msgs);
+            if (newRelationshipRoleSource != null)
+                msgs = ((InternalEObject)newRelationshipRoleSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE, null, msgs);
+            msgs = basicSetRelationshipRoleSource(newRelationshipRoleSource, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE, newRelationshipRoleSource, newRelationshipRoleSource));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CmrFieldType getCmrField() {
+        return cmrField;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetCmrField(CmrFieldType newCmrField, NotificationChain msgs) {
+        CmrFieldType oldCmrField = cmrField;
+        cmrField = newCmrField;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD, oldCmrField, newCmrField);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCmrField(CmrFieldType newCmrField) {
+        if (newCmrField != cmrField) {
+            NotificationChain msgs = null;
+            if (cmrField != null)
+                msgs = ((InternalEObject)cmrField).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD, null, msgs);
+            if (newCmrField != null)
+                msgs = ((InternalEObject)newCmrField).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD, null, msgs);
+            msgs = basicSetCmrField(newCmrField, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD, newCmrField, newCmrField));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject getForeignKeyColumnOnSource() {
+        return foreignKeyColumnOnSource;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetForeignKeyColumnOnSource(EObject newForeignKeyColumnOnSource, NotificationChain msgs) {
+        EObject oldForeignKeyColumnOnSource = foreignKeyColumnOnSource;
+        foreignKeyColumnOnSource = newForeignKeyColumnOnSource;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE, oldForeignKeyColumnOnSource, newForeignKeyColumnOnSource);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setForeignKeyColumnOnSource(EObject newForeignKeyColumnOnSource) {
+        if (newForeignKeyColumnOnSource != foreignKeyColumnOnSource) {
+            NotificationChain msgs = null;
+            if (foreignKeyColumnOnSource != null)
+                msgs = ((InternalEObject)foreignKeyColumnOnSource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE, null, msgs);
+            if (newForeignKeyColumnOnSource != null)
+                msgs = ((InternalEObject)newForeignKeyColumnOnSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE, null, msgs);
+            msgs = basicSetForeignKeyColumnOnSource(newForeignKeyColumnOnSource, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE, newForeignKeyColumnOnSource, newForeignKeyColumnOnSource));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RoleMappingType getRoleMapping() {
+        return roleMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetRoleMapping(RoleMappingType newRoleMapping, NotificationChain msgs) {
+        RoleMappingType oldRoleMapping = roleMapping;
+        roleMapping = newRoleMapping;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING, oldRoleMapping, newRoleMapping);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRoleMapping(RoleMappingType newRoleMapping) {
+        if (newRoleMapping != roleMapping) {
+            NotificationChain msgs = null;
+            if (roleMapping != null)
+                msgs = ((InternalEObject)roleMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING, null, msgs);
+            if (newRoleMapping != null)
+                msgs = ((InternalEObject)newRoleMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING, null, msgs);
+            msgs = basicSetRoleMapping(newRoleMapping, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING, newRoleMapping, newRoleMapping));
+    }
+
+    /**
+     * <!-- 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.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+                    return basicSetRelationshipRoleSource(null, msgs);
+                case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+                    return basicSetCmrField(null, msgs);
+                case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+                    return basicSetForeignKeyColumnOnSource(null, msgs);
+                case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+                    return basicSetRoleMapping(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.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME:
+                return getEjbRelationshipRoleName();
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+                return getRelationshipRoleSource();
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+                return getCmrField();
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+                return getForeignKeyColumnOnSource();
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+                return getRoleMapping();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME:
+                setEjbRelationshipRoleName((String)newValue);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+                setRelationshipRoleSource((RelationshipRoleSourceType)newValue);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+                setCmrField((CmrFieldType)newValue);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+                setForeignKeyColumnOnSource((EObject)newValue);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+                setRoleMapping((RoleMappingType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME:
+                setEjbRelationshipRoleName(EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+                setRelationshipRoleSource((RelationshipRoleSourceType)null);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+                setCmrField((CmrFieldType)null);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+                setForeignKeyColumnOnSource((EObject)null);
+                return;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+                setRoleMapping((RoleMappingType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__EJB_RELATIONSHIP_ROLE_NAME:
+                return EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT == null ? ejbRelationshipRoleName != null : !EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT.equals(ejbRelationshipRoleName);
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__RELATIONSHIP_ROLE_SOURCE:
+                return relationshipRoleSource != null;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__CMR_FIELD:
+                return cmrField != null;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__FOREIGN_KEY_COLUMN_ON_SOURCE:
+                return foreignKeyColumnOnSource != null;
+            case JarPackage.EJB_RELATIONSHIP_ROLE_TYPE__ROLE_MAPPING:
+                return roleMapping != 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(" (ejbRelationshipRoleName: ");
+        result.append(ejbRelationshipRoleName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //EjbRelationshipRoleTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EnterpriseBeansTypeImpl.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/EnterpriseBeansTypeImpl.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/EnterpriseBeansTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/EnterpriseBeansTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,247 @@
+/**
+ * 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.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.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.openejb.xml.ns.openejb.jar.EnterpriseBeansType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Enterprise Beans Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getGroup <em>Group</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getSession <em>Session</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getEntity <em>Entity</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getMessageDriven <em>Message Driven</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EnterpriseBeansTypeImpl extends EObjectImpl implements EnterpriseBeansType {
+    /**
+     * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGroup()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap group = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EnterpriseBeansTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getEnterpriseBeansType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getGroup() {
+        if (group == null) {
+            group = new BasicFeatureMap(this, JarPackage.ENTERPRISE_BEANS_TYPE__GROUP);
+        }
+        return group;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getSession() {
+        return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_Session());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getEntity() {
+        return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_Entity());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getMessageDriven() {
+        return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_MessageDriven());
+    }
+
+    /**
+     * <!-- 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.ENTERPRISE_BEANS_TYPE__GROUP:
+                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
+                case JarPackage.ENTERPRISE_BEANS_TYPE__SESSION:
+                    return ((InternalEList)getSession()).basicRemove(otherEnd, msgs);
+                case JarPackage.ENTERPRISE_BEANS_TYPE__ENTITY:
+                    return ((InternalEList)getEntity()).basicRemove(otherEnd, msgs);
+                case JarPackage.ENTERPRISE_BEANS_TYPE__MESSAGE_DRIVEN:
+                    return ((InternalEList)getMessageDriven()).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.ENTERPRISE_BEANS_TYPE__GROUP:
+                return getGroup();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__SESSION:
+                return getSession();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__ENTITY:
+                return getEntity();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__MESSAGE_DRIVEN:
+                return getMessageDriven();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.ENTERPRISE_BEANS_TYPE__GROUP:
+                getGroup().clear();
+                getGroup().addAll((Collection)newValue);
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__SESSION:
+                getSession().clear();
+                getSession().addAll((Collection)newValue);
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__ENTITY:
+                getEntity().clear();
+                getEntity().addAll((Collection)newValue);
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__MESSAGE_DRIVEN:
+                getMessageDriven().clear();
+                getMessageDriven().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.ENTERPRISE_BEANS_TYPE__GROUP:
+                getGroup().clear();
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__SESSION:
+                getSession().clear();
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__ENTITY:
+                getEntity().clear();
+                return;
+            case JarPackage.ENTERPRISE_BEANS_TYPE__MESSAGE_DRIVEN:
+                getMessageDriven().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.ENTERPRISE_BEANS_TYPE__GROUP:
+                return group != null && !group.isEmpty();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__SESSION:
+                return !getSession().isEmpty();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__ENTITY:
+                return !getEntity().isEmpty();
+            case JarPackage.ENTERPRISE_BEANS_TYPE__MESSAGE_DRIVEN:
+                return !getMessageDriven().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(" (group: ");
+        result.append(group);
+        result.append(')');
+        return result.toString();
+    }
+
+} //EnterpriseBeansTypeImpl



Mime
View raw message