geronimo-scm mailing list archives

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/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/security/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/security/impl/DocumentRootImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DocumentRootImpl.java Wed Aug 24 14:34:34 2005
@@ -1,335 +1,335 @@
-/**
- * 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.security.impl;
-
-import java.util.Collection;
-
-import org.apache.geronimo.xml.ns.security.DefaultPrincipalType;
-import org.apache.geronimo.xml.ns.security.DocumentRoot;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-import org.apache.geronimo.xml.ns.security.SecurityType;
-
-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.security.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getDefaultPrincipal <em>Default Principal</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getSecurity <em>Security</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 SecurityPackage.eINSTANCE.getDocumentRoot();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public FeatureMap getMixed() {
-        if (mixed == null) {
-            mixed = new BasicFeatureMap(this, SecurityPackage.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, SecurityPackage.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, SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
-        }
-        return xSISchemaLocation;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DefaultPrincipalType getDefaultPrincipal() {
-        return (DefaultPrincipalType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), true);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal, NotificationChain msgs) {
-        return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal) {
-        ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public SecurityType getSecurity() {
-        return (SecurityType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), true);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
-        return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setSecurity(SecurityType newSecurity) {
-        ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity);
-    }
-
-    /**
-     * <!-- 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 SecurityPackage.DOCUMENT_ROOT__MIXED:
-                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
-                    return basicSetDefaultPrincipal(null, msgs);
-                case SecurityPackage.DOCUMENT_ROOT__SECURITY:
-                    return basicSetSecurity(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 SecurityPackage.DOCUMENT_ROOT__MIXED:
-                return getMixed();
-            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                return getXMLNSPrefixMap();
-            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                return getXSISchemaLocation();
-            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
-                return getDefaultPrincipal();
-            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
-                return getSecurity();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.DOCUMENT_ROOT__MIXED:
-                getMixed().clear();
-                getMixed().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                getXMLNSPrefixMap().clear();
-                getXMLNSPrefixMap().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                getXSISchemaLocation().clear();
-                getXSISchemaLocation().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
-                setDefaultPrincipal((DefaultPrincipalType)newValue);
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
-                setSecurity((SecurityType)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.DOCUMENT_ROOT__MIXED:
-                getMixed().clear();
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                getXMLNSPrefixMap().clear();
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                getXSISchemaLocation().clear();
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
-                setDefaultPrincipal((DefaultPrincipalType)null);
-                return;
-            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
-                setSecurity((SecurityType)null);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.DOCUMENT_ROOT__MIXED:
-                return mixed != null && !mixed.isEmpty();
-            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
-                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
-            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
-                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
-            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
-                return getDefaultPrincipal() != null;
-            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
-                return getSecurity() != 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.security.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.security.DefaultPrincipalType;
+import org.apache.geronimo.xml.ns.security.DocumentRoot;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+import org.apache.geronimo.xml.ns.security.SecurityType;
+
+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.security.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getDefaultPrincipal <em>Default Principal</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getSecurity <em>Security</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 SecurityPackage.eINSTANCE.getDocumentRoot();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getMixed() {
+        if (mixed == null) {
+            mixed = new BasicFeatureMap(this, SecurityPackage.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, SecurityPackage.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, SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        }
+        return xSISchemaLocation;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DefaultPrincipalType getDefaultPrincipal() {
+        return (DefaultPrincipalType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal) {
+        ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SecurityType getSecurity() {
+        return (SecurityType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSecurity(SecurityType newSecurity) {
+        ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity);
+    }
+
+    /**
+     * <!-- 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 SecurityPackage.DOCUMENT_ROOT__MIXED:
+                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
+                    return basicSetDefaultPrincipal(null, msgs);
+                case SecurityPackage.DOCUMENT_ROOT__SECURITY:
+                    return basicSetSecurity(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 SecurityPackage.DOCUMENT_ROOT__MIXED:
+                return getMixed();
+            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return getXMLNSPrefixMap();
+            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return getXSISchemaLocation();
+            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
+                return getDefaultPrincipal();
+            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
+                return getSecurity();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                getMixed().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                getXMLNSPrefixMap().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                getXSISchemaLocation().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
+                setDefaultPrincipal((DefaultPrincipalType)newValue);
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
+                setSecurity((SecurityType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
+                setDefaultPrincipal((DefaultPrincipalType)null);
+                return;
+            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
+                setSecurity((SecurityType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.DOCUMENT_ROOT__MIXED:
+                return mixed != null && !mixed.isEmpty();
+            case SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+            case SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+            case SecurityPackage.DOCUMENT_ROOT__DEFAULT_PRINCIPAL:
+                return getDefaultPrincipal() != null;
+            case SecurityPackage.DOCUMENT_ROOT__SECURITY:
+                return getSecurity() != 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/security/impl/DocumentRootImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/NamedUsernamePasswordCredentialTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/NamedUsernamePasswordCredentialTypeImpl.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/security/impl/NamedUsernamePasswordCredentialTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/NamedUsernamePasswordCredentialTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,279 +1,279 @@
-/**
- * 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.security.impl;
-
-import org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Named Username Password Credential Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getName <em>Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getUsername <em>Username</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getPassword <em>Password</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NamedUsernamePasswordCredentialTypeImpl extends EObjectImpl implements NamedUsernamePasswordCredentialType {
-    /**
-     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName()
-     * @generated
-     * @ordered
-     */
-    protected static final String NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getName()
-     * @generated
-     * @ordered
-     */
-    protected String name = NAME_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getUsername() <em>Username</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getUsername()
-     * @generated
-     * @ordered
-     */
-    protected static final String USERNAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getUsername() <em>Username</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getUsername()
-     * @generated
-     * @ordered
-     */
-    protected String username = USERNAME_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getPassword() <em>Password</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getPassword()
-     * @generated
-     * @ordered
-     */
-    protected static final String PASSWORD_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getPassword() <em>Password</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getPassword()
-     * @generated
-     * @ordered
-     */
-    protected String password = PASSWORD_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected NamedUsernamePasswordCredentialTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return SecurityPackage.eINSTANCE.getNamedUsernamePasswordCredentialType();
-    }
-
-    /**
-     * <!-- 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, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME, oldName, name));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getUsername() {
-        return username;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setUsername(String newUsername) {
-        String oldUsername = username;
-        username = newUsername;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME, oldUsername, username));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getPassword() {
-        return password;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setPassword(String newPassword) {
-        String oldPassword = password;
-        password = newPassword;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD, oldPassword, password));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
-                return getName();
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
-                return getUsername();
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
-                return getPassword();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
-                setName((String)newValue);
-                return;
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
-                setUsername((String)newValue);
-                return;
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
-                setPassword((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
-                setName(NAME_EDEFAULT);
-                return;
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
-                setUsername(USERNAME_EDEFAULT);
-                return;
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
-                setPassword(PASSWORD_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
-                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
-                return USERNAME_EDEFAULT == null ? username != null : !USERNAME_EDEFAULT.equals(username);
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
-                return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password);
-        }
-        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(" (name: ");
-        result.append(name);
-        result.append(", username: ");
-        result.append(username);
-        result.append(", password: ");
-        result.append(password);
-        result.append(')');
-        return result.toString();
-    }
-
-} //NamedUsernamePasswordCredentialTypeImpl
+/**
+ * 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.security.impl;
+
+import org.apache.geronimo.xml.ns.security.NamedUsernamePasswordCredentialType;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Named Username Password Credential Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getUsername <em>Username</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getPassword <em>Password</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NamedUsernamePasswordCredentialTypeImpl extends EObjectImpl implements NamedUsernamePasswordCredentialType {
+    /**
+     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected static final String NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected String name = NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getUsername() <em>Username</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getUsername()
+     * @generated
+     * @ordered
+     */
+    protected static final String USERNAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getUsername() <em>Username</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getUsername()
+     * @generated
+     * @ordered
+     */
+    protected String username = USERNAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getPassword() <em>Password</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPassword()
+     * @generated
+     * @ordered
+     */
+    protected static final String PASSWORD_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getPassword() <em>Password</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPassword()
+     * @generated
+     * @ordered
+     */
+    protected String password = PASSWORD_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected NamedUsernamePasswordCredentialTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return SecurityPackage.eINSTANCE.getNamedUsernamePasswordCredentialType();
+    }
+
+    /**
+     * <!-- 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, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME, oldName, name));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getUsername() {
+        return username;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setUsername(String newUsername) {
+        String oldUsername = username;
+        username = newUsername;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME, oldUsername, username));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getPassword() {
+        return password;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setPassword(String newPassword) {
+        String oldPassword = password;
+        password = newPassword;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD, oldPassword, password));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
+                return getName();
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
+                return getUsername();
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
+                return getPassword();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
+                setName((String)newValue);
+                return;
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
+                setUsername((String)newValue);
+                return;
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
+                setPassword((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
+                setUsername(USERNAME_EDEFAULT);
+                return;
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
+                setPassword(PASSWORD_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__NAME:
+                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__USERNAME:
+                return USERNAME_EDEFAULT == null ? username != null : !USERNAME_EDEFAULT.equals(username);
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE__PASSWORD:
+                return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password);
+        }
+        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(" (name: ");
+        result.append(name);
+        result.append(", username: ");
+        result.append(username);
+        result.append(", password: ");
+        result.append(password);
+        result.append(')');
+        return result.toString();
+    }
+
+} //NamedUsernamePasswordCredentialTypeImpl

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/PrincipalTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/PrincipalTypeImpl.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/security/impl/PrincipalTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/PrincipalTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,374 +1,374 @@
-/**
- * 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.security.impl;
-
-import java.util.Collection;
-
-import org.apache.geronimo.xml.ns.security.DescriptionType;
-import org.apache.geronimo.xml.ns.security.PrincipalType;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-
-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;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Principal Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getDescription <em>Description</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getClass_ <em>Class</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#isDesignatedRunAs <em>Designated Run As</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PrincipalTypeImpl extends EObjectImpl implements PrincipalType {
-    /**
-     * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getDescription()
-     * @generated
-     * @ordered
-     */
-    protected EList description = 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 #isDesignatedRunAs() <em>Designated Run As</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #isDesignatedRunAs()
-     * @generated
-     * @ordered
-     */
-    protected static final boolean DESIGNATED_RUN_AS_EDEFAULT = false;
-
-    /**
-     * The cached value of the '{@link #isDesignatedRunAs() <em>Designated Run As</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #isDesignatedRunAs()
-     * @generated
-     * @ordered
-     */
-    protected boolean designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
-
-    /**
-     * This is true if the Designated Run As attribute has been set.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     * @ordered
-     */
-    protected boolean designatedRunAsESet = false;
-
-    /**
-     * 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 PrincipalTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return SecurityPackage.eINSTANCE.getPrincipalType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getDescription() {
-        if (description == null) {
-            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION);
-        }
-        return description;
-    }
-
-    /**
-     * <!-- 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, SecurityPackage.PRINCIPAL_TYPE__CLASS, oldClass, class_));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean isDesignatedRunAs() {
-        return designatedRunAs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setDesignatedRunAs(boolean newDesignatedRunAs) {
-        boolean oldDesignatedRunAs = designatedRunAs;
-        designatedRunAs = newDesignatedRunAs;
-        boolean oldDesignatedRunAsESet = designatedRunAsESet;
-        designatedRunAsESet = true;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, designatedRunAs, !oldDesignatedRunAsESet));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void unsetDesignatedRunAs() {
-        boolean oldDesignatedRunAs = designatedRunAs;
-        boolean oldDesignatedRunAsESet = designatedRunAsESet;
-        designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
-        designatedRunAsESet = false;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.UNSET, SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, DESIGNATED_RUN_AS_EDEFAULT, oldDesignatedRunAsESet));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean isSetDesignatedRunAs() {
-        return designatedRunAsESet;
-    }
-
-    /**
-     * <!-- 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, SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
-                    return ((InternalEList)getDescription()).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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
-                return getDescription();
-            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
-                return getClass_();
-            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
-                return isDesignatedRunAs() ? Boolean.TRUE : Boolean.FALSE;
-            case SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
-                getDescription().clear();
-                getDescription().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
-                setClass((String)newValue);
-                return;
-            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
-                setDesignatedRunAs(((Boolean)newValue).booleanValue());
-                return;
-            case SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
-                getDescription().clear();
-                return;
-            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
-                setClass(CLASS_EDEFAULT);
-                return;
-            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
-                unsetDesignatedRunAs();
-                return;
-            case SecurityPackage.PRINCIPAL_TYPE__NAME:
-                setName(NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
-                return description != null && !description.isEmpty();
-            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
-                return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
-            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
-                return isSetDesignatedRunAs();
-            case SecurityPackage.PRINCIPAL_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(" (class: ");
-        result.append(class_);
-        result.append(", designatedRunAs: ");
-        if (designatedRunAsESet) result.append(designatedRunAs); else result.append("<unset>");
-        result.append(", name: ");
-        result.append(name);
-        result.append(')');
-        return result.toString();
-    }
-
-} //PrincipalTypeImpl
+/**
+ * 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.security.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.security.DescriptionType;
+import org.apache.geronimo.xml.ns.security.PrincipalType;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Principal Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getDescription <em>Description</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getClass_ <em>Class</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#isDesignatedRunAs <em>Designated Run As</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PrincipalTypeImpl extends EObjectImpl implements PrincipalType {
+    /**
+     * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDescription()
+     * @generated
+     * @ordered
+     */
+    protected EList description = 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 #isDesignatedRunAs() <em>Designated Run As</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isDesignatedRunAs()
+     * @generated
+     * @ordered
+     */
+    protected static final boolean DESIGNATED_RUN_AS_EDEFAULT = false;
+
+    /**
+     * The cached value of the '{@link #isDesignatedRunAs() <em>Designated Run As</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isDesignatedRunAs()
+     * @generated
+     * @ordered
+     */
+    protected boolean designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
+
+    /**
+     * This is true if the Designated Run As attribute has been set.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    protected boolean designatedRunAsESet = false;
+
+    /**
+     * 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 PrincipalTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return SecurityPackage.eINSTANCE.getPrincipalType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getDescription() {
+        if (description == null) {
+            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION);
+        }
+        return description;
+    }
+
+    /**
+     * <!-- 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, SecurityPackage.PRINCIPAL_TYPE__CLASS, oldClass, class_));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isDesignatedRunAs() {
+        return designatedRunAs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDesignatedRunAs(boolean newDesignatedRunAs) {
+        boolean oldDesignatedRunAs = designatedRunAs;
+        designatedRunAs = newDesignatedRunAs;
+        boolean oldDesignatedRunAsESet = designatedRunAsESet;
+        designatedRunAsESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, designatedRunAs, !oldDesignatedRunAsESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void unsetDesignatedRunAs() {
+        boolean oldDesignatedRunAs = designatedRunAs;
+        boolean oldDesignatedRunAsESet = designatedRunAsESet;
+        designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
+        designatedRunAsESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, DESIGNATED_RUN_AS_EDEFAULT, oldDesignatedRunAsESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isSetDesignatedRunAs() {
+        return designatedRunAsESet;
+    }
+
+    /**
+     * <!-- 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, SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
+                    return ((InternalEList)getDescription()).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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
+                return getDescription();
+            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
+                return getClass_();
+            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
+                return isDesignatedRunAs() ? Boolean.TRUE : Boolean.FALSE;
+            case SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
+                getDescription().clear();
+                getDescription().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
+                setClass((String)newValue);
+                return;
+            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
+                setDesignatedRunAs(((Boolean)newValue).booleanValue());
+                return;
+            case SecurityPackage.PRINCIPAL_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 SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
+                getDescription().clear();
+                return;
+            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
+                setClass(CLASS_EDEFAULT);
+                return;
+            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
+                unsetDesignatedRunAs();
+                return;
+            case SecurityPackage.PRINCIPAL_TYPE__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION:
+                return description != null && !description.isEmpty();
+            case SecurityPackage.PRINCIPAL_TYPE__CLASS:
+                return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_);
+            case SecurityPackage.PRINCIPAL_TYPE__DESIGNATED_RUN_AS:
+                return isSetDesignatedRunAs();
+            case SecurityPackage.PRINCIPAL_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(" (class: ");
+        result.append(class_);
+        result.append(", designatedRunAs: ");
+        if (designatedRunAsESet) result.append(designatedRunAs); else result.append("<unset>");
+        result.append(", name: ");
+        result.append(name);
+        result.append(')');
+        return result.toString();
+    }
+
+} //PrincipalTypeImpl

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



Mime
View raw message