Return-Path:
Delivered-To: apmail-geronimo-scm-archive@www.apache.org
Received: (qmail 26011 invoked from network); 14 Sep 2005 19:03:56 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 14 Sep 2005 19:03:56 -0000
Received: (qmail 96951 invoked by uid 500); 14 Sep 2005 19:03:13 -0000
Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org
Received: (qmail 96797 invoked by uid 500); 14 Sep 2005 19:03:12 -0000
Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm
Precedence: bulk
list-help:
list-unsubscribe:
List-Post:
Reply-To: dev@geronimo.apache.org
List-Id:
Delivered-To: mailing list scm@geronimo.apache.org
Received: (qmail 96683 invoked by uid 99); 14 Sep 2005 19:03:11 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 12:03:11 -0700
X-ASF-Spam-Status: No, hits=-9.8 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194)
by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Sep 2005 12:03:03 -0700
Received: (qmail 24400 invoked by uid 65534); 14 Sep 2005 19:02:43 -0000
Message-ID: <20050914190243.24399.qmail@minotaur.apache.org>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
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 -0000
To: scm@geronimo.apache.org
From: sppatel@apache.org
X-Mailer: svnmailer-1.0.5
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
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;
+
+/**
+ *
+ * An implementation of the model object 'Document Root'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getMixed Mixed}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getXSISchemaLocation XSI Schema Location}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.DocumentRootImpl#getOpenejbJar Openejb Jar}
+ *
+ *
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() Mixed}' attribute list.
+ *
+ *
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed = null;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map.
+ *
+ *
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap xMLNSPrefixMap = null;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map.
+ *
+ *
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap xSISchemaLocation = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return JarPackage.eINSTANCE.getDocumentRoot();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, JarPackage.DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EMap getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, JarPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EMap getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, JarPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public OpenejbJarType getOpenejbJar() {
+ return (OpenejbJarType)getMixed().get(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), true);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain basicSetOpenejbJar(OpenejbJarType newOpenejbJar, NotificationChain msgs) {
+ return ((FeatureMap.Internal)getMixed()).basicAdd(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), newOpenejbJar, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setOpenejbJar(OpenejbJarType newOpenejbJar) {
+ ((FeatureMap.Internal)getMixed()).set(JarPackage.eINSTANCE.getDocumentRoot_OpenejbJar(), newOpenejbJar);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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;
+
+/**
+ *
+ * An implementation of the model object 'Ejb Relation Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getEjbRelationName Ejb Relation Name}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getManyToManyTableName Many To Many Table Name}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationTypeImpl#getEjbRelationshipRole Ejb Relationship Role}
+ *
+ *
+ *
+ * @generated
+ */
+public class EjbRelationTypeImpl extends EObjectImpl implements EjbRelationType {
+ /**
+ * The default value of the '{@link #getEjbRelationName() Ejb Relation Name}' attribute.
+ *
+ *
+ * @see #getEjbRelationName()
+ * @generated
+ * @ordered
+ */
+ protected static final String EJB_RELATION_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEjbRelationName() Ejb Relation Name}' attribute.
+ *
+ *
+ * @see #getEjbRelationName()
+ * @generated
+ * @ordered
+ */
+ protected String ejbRelationName = EJB_RELATION_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getManyToManyTableName() Many To Many Table Name}' attribute.
+ *
+ *
+ * @see #getManyToManyTableName()
+ * @generated
+ * @ordered
+ */
+ protected static final String MANY_TO_MANY_TABLE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getManyToManyTableName() Many To Many Table Name}' attribute.
+ *
+ *
+ * @see #getManyToManyTableName()
+ * @generated
+ * @ordered
+ */
+ protected String manyToManyTableName = MANY_TO_MANY_TABLE_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getEjbRelationshipRole() Ejb Relationship Role}' containment reference list.
+ *
+ *
+ * @see #getEjbRelationshipRole()
+ * @generated
+ * @ordered
+ */
+ protected EList ejbRelationshipRole = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EjbRelationTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return JarPackage.eINSTANCE.getEjbRelationType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getEjbRelationName() {
+ return ejbRelationName;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getManyToManyTableName() {
+ return manyToManyTableName;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getEjbRelationshipRole() {
+ if (ejbRelationshipRole == null) {
+ ejbRelationshipRole = new EObjectContainmentEList(EjbRelationshipRoleType.class, this, JarPackage.EJB_RELATION_TYPE__EJB_RELATIONSHIP_ROLE);
+ }
+ return ejbRelationshipRole;
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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;
+
+/**
+ *
+ * An implementation of the model object 'Ejb Relationship Role Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getEjbRelationshipRoleName Ejb Relationship Role Name}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getRelationshipRoleSource Relationship Role Source}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getCmrField Cmr Field}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getForeignKeyColumnOnSource Foreign Key Column On Source}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EjbRelationshipRoleTypeImpl#getRoleMapping Role Mapping}
+ *
+ *
+ *
+ * @generated
+ */
+public class EjbRelationshipRoleTypeImpl extends EObjectImpl implements EjbRelationshipRoleType {
+ /**
+ * The default value of the '{@link #getEjbRelationshipRoleName() Ejb Relationship Role Name}' attribute.
+ *
+ *
+ * @see #getEjbRelationshipRoleName()
+ * @generated
+ * @ordered
+ */
+ protected static final String EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEjbRelationshipRoleName() Ejb Relationship Role Name}' attribute.
+ *
+ *
+ * @see #getEjbRelationshipRoleName()
+ * @generated
+ * @ordered
+ */
+ protected String ejbRelationshipRoleName = EJB_RELATIONSHIP_ROLE_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRelationshipRoleSource() Relationship Role Source}' containment reference.
+ *
+ *
+ * @see #getRelationshipRoleSource()
+ * @generated
+ * @ordered
+ */
+ protected RelationshipRoleSourceType relationshipRoleSource = null;
+
+ /**
+ * The cached value of the '{@link #getCmrField() Cmr Field}' containment reference.
+ *
+ *
+ * @see #getCmrField()
+ * @generated
+ * @ordered
+ */
+ protected CmrFieldType cmrField = null;
+
+ /**
+ * The cached value of the '{@link #getForeignKeyColumnOnSource() Foreign Key Column On Source}' containment reference.
+ *
+ *
+ * @see #getForeignKeyColumnOnSource()
+ * @generated
+ * @ordered
+ */
+ protected EObject foreignKeyColumnOnSource = null;
+
+ /**
+ * The cached value of the '{@link #getRoleMapping() Role Mapping}' containment reference.
+ *
+ *
+ * @see #getRoleMapping()
+ * @generated
+ * @ordered
+ */
+ protected RoleMappingType roleMapping = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EjbRelationshipRoleTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return JarPackage.eINSTANCE.getEjbRelationshipRoleType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getEjbRelationshipRoleName() {
+ return ejbRelationshipRoleName;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public RelationshipRoleSourceType getRelationshipRoleSource() {
+ return relationshipRoleSource;
+ }
+
+ /**
+ *
+ *
+ * @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;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public CmrFieldType getCmrField() {
+ return cmrField;
+ }
+
+ /**
+ *
+ *
+ * @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;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EObject getForeignKeyColumnOnSource() {
+ return foreignKeyColumnOnSource;
+ }
+
+ /**
+ *
+ *
+ * @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;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public RoleMappingType getRoleMapping() {
+ return roleMapping;
+ }
+
+ /**
+ *
+ *
+ * @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;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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;
+
+/**
+ *
+ * An implementation of the model object 'Enterprise Beans Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getGroup Group}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getSession Session}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getEntity Entity}
+ * - {@link org.openejb.xml.ns.openejb.jar.impl.EnterpriseBeansTypeImpl#getMessageDriven Message Driven}
+ *
+ *
+ *
+ * @generated
+ */
+public class EnterpriseBeansTypeImpl extends EObjectImpl implements EnterpriseBeansType {
+ /**
+ * The cached value of the '{@link #getGroup() Group}' attribute list.
+ *
+ *
+ * @see #getGroup()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap group = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EnterpriseBeansTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return JarPackage.eINSTANCE.getEnterpriseBeansType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public FeatureMap getGroup() {
+ if (group == null) {
+ group = new BasicFeatureMap(this, JarPackage.ENTERPRISE_BEANS_TYPE__GROUP);
+ }
+ return group;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getSession() {
+ return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_Session());
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getEntity() {
+ return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_Entity());
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getMessageDriven() {
+ return ((FeatureMap)getGroup()).list(JarPackage.eINSTANCE.getEnterpriseBeansType_MessageDriven());
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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