geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r239937 [9/73] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.core/src/org/apache/geronimo/core/operations/ org.apache.geronimo.deployment.model/src/org/apach...
Date Wed, 24 Aug 2005 21:36:53 GMT
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/DeploymentPackageImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/DocumentRootImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/DocumentRootImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/DocumentRootImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/DocumentRootImpl.java Wed Aug 24 14:34:34 2005
@@ -1,376 +1,376 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.xml.ns.deployment.impl;
-
-import java.util.Collection;
-
-import org.apache.geronimo.xml.ns.deployment.ConfigurationType;
-import org.apache.geronimo.xml.ns.deployment.DependencyType;
-import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
-import org.apache.geronimo.xml.ns.deployment.DocumentRoot;
-import org.apache.geronimo.xml.ns.deployment.GbeanType;
-
-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;
-
-/**
- * <!-- 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.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getConfiguration <em>Configuration</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getDependency <em>Dependency</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getGbean <em>Gbean</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 DeploymentPackage.eINSTANCE.getDocumentRoot();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public FeatureMap getMixed() {
-        if (mixed == null) {
-            mixed = new BasicFeatureMap(this, DeploymentPackage.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, DeploymentPackage.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, DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
-        }
-        return xSISchemaLocation;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public ConfigurationType getConfiguration() {
-        return (ConfigurationType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), true);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetConfiguration(ConfigurationType newConfiguration, NotificationChain msgs) {
-        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), newConfiguration, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setConfiguration(ConfigurationType newConfiguration) {
-        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), newConfiguration);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DependencyType getDependency() {
-        return (DependencyType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), true);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetDependency(DependencyType newDependency, NotificationChain msgs) {
-        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), newDependency, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setDependency(DependencyType newDependency) {
-        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), newDependency);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public GbeanType getGbean() {
-        return (GbeanType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), true);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetGbean(GbeanType newGbean, NotificationChain msgs) {
-        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), newGbean, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setGbean(GbeanType newGbean) {
-        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), newGbean);
-    }
-
-    /**
-     * <!-- 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 DeploymentPackage.DOCUMENT_ROOT__MIXED:
-                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
-                    return basicSetConfiguration(null, msgs);
-                case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
-                    return basicSetDependency(null, msgs);
-                case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
-                    return basicSetGbean(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 DeploymentPackage.DOCUMENT_ROOT__MIXED:
-                return getMixed();
-            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                return getXMLNSPrefixMap();
-            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                return getXSISchemaLocation();
-            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
-                return getConfiguration();
-            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
-                return getDependency();
-            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
-                return getGbean();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
-                getMixed().clear();
-                getMixed().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                getXMLNSPrefixMap().clear();
-                getXMLNSPrefixMap().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                getXSISchemaLocation().clear();
-                getXSISchemaLocation().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
-                setConfiguration((ConfigurationType)newValue);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
-                setDependency((DependencyType)newValue);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
-                setGbean((GbeanType)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
-                getMixed().clear();
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                getXMLNSPrefixMap().clear();
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                getXSISchemaLocation().clear();
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
-                setConfiguration((ConfigurationType)null);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
-                setDependency((DependencyType)null);
-                return;
-            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
-                setGbean((GbeanType)null);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
-                return mixed != null && !mixed.isEmpty();
-            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
-            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
-            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
-                return getConfiguration() != null;
-            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
-                return getDependency() != null;
-            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
-                return getGbean() != 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
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.deployment.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.deployment.ConfigurationType;
+import org.apache.geronimo.xml.ns.deployment.DependencyType;
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+import org.apache.geronimo.xml.ns.deployment.DocumentRoot;
+import org.apache.geronimo.xml.ns.deployment.GbeanType;
+
+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;
+
+/**
+ * <!-- 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.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getConfiguration <em>Configuration</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getDependency <em>Dependency</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.DocumentRootImpl#getGbean <em>Gbean</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 DeploymentPackage.eINSTANCE.getDocumentRoot();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getMixed() {
+        if (mixed == null) {
+            mixed = new BasicFeatureMap(this, DeploymentPackage.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, DeploymentPackage.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, DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        }
+        return xSISchemaLocation;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ConfigurationType getConfiguration() {
+        return (ConfigurationType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetConfiguration(ConfigurationType newConfiguration, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), newConfiguration, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setConfiguration(ConfigurationType newConfiguration) {
+        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Configuration(), newConfiguration);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DependencyType getDependency() {
+        return (DependencyType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetDependency(DependencyType newDependency, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), newDependency, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDependency(DependencyType newDependency) {
+        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Dependency(), newDependency);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public GbeanType getGbean() {
+        return (GbeanType)getMixed().get(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetGbean(GbeanType newGbean, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), newGbean, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setGbean(GbeanType newGbean) {
+        ((FeatureMap.Internal)getMixed()).set(DeploymentPackage.eINSTANCE.getDocumentRoot_Gbean(), newGbean);
+    }
+
+    /**
+     * <!-- 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 DeploymentPackage.DOCUMENT_ROOT__MIXED:
+                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
+                    return basicSetConfiguration(null, msgs);
+                case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
+                    return basicSetDependency(null, msgs);
+                case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
+                    return basicSetGbean(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 DeploymentPackage.DOCUMENT_ROOT__MIXED:
+                return getMixed();
+            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return getXMLNSPrefixMap();
+            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return getXSISchemaLocation();
+            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
+                return getConfiguration();
+            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
+                return getDependency();
+            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
+                return getGbean();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                getMixed().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                getXMLNSPrefixMap().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                getXSISchemaLocation().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
+                setConfiguration((ConfigurationType)newValue);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
+                setDependency((DependencyType)newValue);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
+                setGbean((GbeanType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
+                setConfiguration((ConfigurationType)null);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
+                setDependency((DependencyType)null);
+                return;
+            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
+                setGbean((GbeanType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.DOCUMENT_ROOT__MIXED:
+                return mixed != null && !mixed.isEmpty();
+            case DeploymentPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+            case DeploymentPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+            case DeploymentPackage.DOCUMENT_ROOT__CONFIGURATION:
+                return getConfiguration() != null;
+            case DeploymentPackage.DOCUMENT_ROOT__DEPENDENCY:
+                return getDependency() != null;
+            case DeploymentPackage.DOCUMENT_ROOT__GBEAN:
+                return getGbean() != 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

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/GbeanTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/GbeanTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/GbeanTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/deployment/impl/GbeanTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,457 +1,457 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.geronimo.xml.ns.deployment.impl;
-
-import java.util.Collection;
-
-import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
-import org.apache.geronimo.xml.ns.deployment.GbeanType;
-
-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.BasicFeatureMap;
-import org.eclipse.emf.ecore.util.FeatureMap;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Gbean Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getGroup <em>Group</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getAttribute <em>Attribute</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getXmlAttribute <em>Xml Attribute</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getReference <em>Reference</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getReferences <em>References</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getXmlReference <em>Xml Reference</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getClass_ <em>Class</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getGbeanName <em>Gbean Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class GbeanTypeImpl extends EObjectImpl implements GbeanType {
-    /**
-     * 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;
-
-    /**
-     * The default value of the '{@link #getClass_() <em>Class</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getClass_()
-     * @generated
-     * @ordered
-     */
-    protected static final String CLASS_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getClass_()
-     * @generated
-     * @ordered
-     */
-    protected String class_ = CLASS_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getGbeanName() <em>Gbean Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getGbeanName()
-     * @generated
-     * @ordered
-     */
-    protected static final String GBEAN_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getGbeanName() <em>Gbean Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getGbeanName()
-     * @generated
-     * @ordered
-     */
-    protected String gbeanName = GBEAN_NAME_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName()
-     * @generated
-     * @ordered
-     */
-    protected static final String NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName()
-     * @generated
-     * @ordered
-     */
-    protected String name = NAME_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected GbeanTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return DeploymentPackage.eINSTANCE.getGbeanType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public FeatureMap getGroup() {
-        if (group == null) {
-            group = new BasicFeatureMap(this, DeploymentPackage.GBEAN_TYPE__GROUP);
-        }
-        return group;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getAttribute() {
-        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_Attribute());
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getXmlAttribute() {
-        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_XmlAttribute());
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getReference() {
-        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_Reference());
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getReferences() {
-        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_References());
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getXmlReference() {
-        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_XmlReference());
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getClass_() {
-        return class_;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setClass(String newClass) {
-        String oldClass = class_;
-        class_ = newClass;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__CLASS, oldClass, class_));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getGbeanName() {
-        return gbeanName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setGbeanName(String newGbeanName) {
-        String oldGbeanName = gbeanName;
-        gbeanName = newGbeanName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__GBEAN_NAME, oldGbeanName, gbeanName));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getName() {
-        return name;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setName(String newName) {
-        String oldName = name;
-        name = newName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__NAME, oldName, name));
-    }
-
-    /**
-     * <!-- 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 DeploymentPackage.GBEAN_TYPE__GROUP:
-                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
-                    return ((InternalEList)getAttribute()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
-                    return ((InternalEList)getXmlAttribute()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.GBEAN_TYPE__REFERENCE:
-                    return ((InternalEList)getReference()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.GBEAN_TYPE__REFERENCES:
-                    return ((InternalEList)getReferences()).basicRemove(otherEnd, msgs);
-                case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
-                    return ((InternalEList)getXmlReference()).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 DeploymentPackage.GBEAN_TYPE__GROUP:
-                return getGroup();
-            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
-                return getAttribute();
-            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
-                return getXmlAttribute();
-            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
-                return getReference();
-            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
-                return getReferences();
-            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
-                return getXmlReference();
-            case DeploymentPackage.GBEAN_TYPE__CLASS:
-                return getClass_();
-            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
-                return getGbeanName();
-            case DeploymentPackage.GBEAN_TYPE__NAME:
-                return getName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.GBEAN_TYPE__GROUP:
-                getGroup().clear();
-                getGroup().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
-                getAttribute().clear();
-                getAttribute().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
-                getXmlAttribute().clear();
-                getXmlAttribute().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
-                getReference().clear();
-                getReference().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
-                getReferences().clear();
-                getReferences().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
-                getXmlReference().clear();
-                getXmlReference().addAll((Collection)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__CLASS:
-                setClass((String)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
-                setGbeanName((String)newValue);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__NAME:
-                setName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.GBEAN_TYPE__GROUP:
-                getGroup().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
-                getAttribute().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
-                getXmlAttribute().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
-                getReference().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
-                getReferences().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
-                getXmlReference().clear();
-                return;
-            case DeploymentPackage.GBEAN_TYPE__CLASS:
-                setClass(CLASS_EDEFAULT);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
-                setGbeanName(GBEAN_NAME_EDEFAULT);
-                return;
-            case DeploymentPackage.GBEAN_TYPE__NAME:
-                setName(NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case DeploymentPackage.GBEAN_TYPE__GROUP:
-                return group != null && !group.isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
-                return !getAttribute().isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
-                return !getXmlAttribute().isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
-                return !getReference().isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
-                return !getReferences().isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
-                return !getXmlReference().isEmpty();
-            case DeploymentPackage.GBEAN_TYPE__CLASS:
-                return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
-            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
-                return GBEAN_NAME_EDEFAULT == null ? gbeanName != null : !GBEAN_NAME_EDEFAULT.equals(gbeanName);
-            case DeploymentPackage.GBEAN_TYPE__NAME:
-                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-        }
-        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(", class: ");
-        result.append(class_);
-        result.append(", gbeanName: ");
-        result.append(gbeanName);
-        result.append(", name: ");
-        result.append(name);
-        result.append(')');
-        return result.toString();
-    }
-
-} //GbeanTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.deployment.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+import org.apache.geronimo.xml.ns.deployment.GbeanType;
+
+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.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Gbean Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getGroup <em>Group</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getAttribute <em>Attribute</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getXmlAttribute <em>Xml Attribute</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getReference <em>Reference</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getReferences <em>References</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getXmlReference <em>Xml Reference</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getClass_ <em>Class</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getGbeanName <em>Gbean Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.deployment.impl.GbeanTypeImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GbeanTypeImpl extends EObjectImpl implements GbeanType {
+    /**
+     * 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;
+
+    /**
+     * The default value of the '{@link #getClass_() <em>Class</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getClass_()
+     * @generated
+     * @ordered
+     */
+    protected static final String CLASS_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getClass_()
+     * @generated
+     * @ordered
+     */
+    protected String class_ = CLASS_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getGbeanName() <em>Gbean Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGbeanName()
+     * @generated
+     * @ordered
+     */
+    protected static final String GBEAN_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getGbeanName() <em>Gbean Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGbeanName()
+     * @generated
+     * @ordered
+     */
+    protected String gbeanName = GBEAN_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected static final String NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected String name = NAME_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected GbeanTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return DeploymentPackage.eINSTANCE.getGbeanType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getGroup() {
+        if (group == null) {
+            group = new BasicFeatureMap(this, DeploymentPackage.GBEAN_TYPE__GROUP);
+        }
+        return group;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getAttribute() {
+        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_Attribute());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getXmlAttribute() {
+        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_XmlAttribute());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getReference() {
+        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_Reference());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getReferences() {
+        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_References());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getXmlReference() {
+        return ((FeatureMap)getGroup()).list(DeploymentPackage.eINSTANCE.getGbeanType_XmlReference());
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getClass_() {
+        return class_;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setClass(String newClass) {
+        String oldClass = class_;
+        class_ = newClass;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__CLASS, oldClass, class_));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getGbeanName() {
+        return gbeanName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setGbeanName(String newGbeanName) {
+        String oldGbeanName = gbeanName;
+        gbeanName = newGbeanName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__GBEAN_NAME, oldGbeanName, gbeanName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setName(String newName) {
+        String oldName = name;
+        name = newName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DeploymentPackage.GBEAN_TYPE__NAME, oldName, name));
+    }
+
+    /**
+     * <!-- 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 DeploymentPackage.GBEAN_TYPE__GROUP:
+                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
+                    return ((InternalEList)getAttribute()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
+                    return ((InternalEList)getXmlAttribute()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.GBEAN_TYPE__REFERENCE:
+                    return ((InternalEList)getReference()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.GBEAN_TYPE__REFERENCES:
+                    return ((InternalEList)getReferences()).basicRemove(otherEnd, msgs);
+                case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
+                    return ((InternalEList)getXmlReference()).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 DeploymentPackage.GBEAN_TYPE__GROUP:
+                return getGroup();
+            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
+                return getAttribute();
+            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
+                return getXmlAttribute();
+            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
+                return getReference();
+            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
+                return getReferences();
+            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
+                return getXmlReference();
+            case DeploymentPackage.GBEAN_TYPE__CLASS:
+                return getClass_();
+            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
+                return getGbeanName();
+            case DeploymentPackage.GBEAN_TYPE__NAME:
+                return getName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.GBEAN_TYPE__GROUP:
+                getGroup().clear();
+                getGroup().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
+                getAttribute().clear();
+                getAttribute().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
+                getXmlAttribute().clear();
+                getXmlAttribute().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
+                getReference().clear();
+                getReference().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
+                getReferences().clear();
+                getReferences().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
+                getXmlReference().clear();
+                getXmlReference().addAll((Collection)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__CLASS:
+                setClass((String)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
+                setGbeanName((String)newValue);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__NAME:
+                setName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.GBEAN_TYPE__GROUP:
+                getGroup().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
+                getAttribute().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
+                getXmlAttribute().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
+                getReference().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
+                getReferences().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
+                getXmlReference().clear();
+                return;
+            case DeploymentPackage.GBEAN_TYPE__CLASS:
+                setClass(CLASS_EDEFAULT);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
+                setGbeanName(GBEAN_NAME_EDEFAULT);
+                return;
+            case DeploymentPackage.GBEAN_TYPE__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case DeploymentPackage.GBEAN_TYPE__GROUP:
+                return group != null && !group.isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__ATTRIBUTE:
+                return !getAttribute().isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__XML_ATTRIBUTE:
+                return !getXmlAttribute().isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__REFERENCE:
+                return !getReference().isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__REFERENCES:
+                return !getReferences().isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__XML_REFERENCE:
+                return !getXmlReference().isEmpty();
+            case DeploymentPackage.GBEAN_TYPE__CLASS:
+                return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
+            case DeploymentPackage.GBEAN_TYPE__GBEAN_NAME:
+                return GBEAN_NAME_EDEFAULT == null ? gbeanName != null : !GBEAN_NAME_EDEFAULT.equals(gbeanName);
+            case DeploymentPackage.GBEAN_TYPE__NAME:
+                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+        }
+        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(", class: ");
+        result.append(class_);
+        result.append(", gbeanName: ");
+        result.append(gbeanName);
+        result.append(", name: ");
+        result.append(name);
+        result.append(')');
+        return result.toString();
+    }
+
+} //GbeanTypeImpl

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



Mime
View raw message