geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r239937 [37/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
Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RealmTypeImpl.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/RealmTypeImpl.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/RealmTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RealmTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,269 +1,269 @@
-/**
- * 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.RealmType;
-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>Realm Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getDescription <em>Description</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getPrincipal <em>Principal</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getRealmName <em>Realm Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RealmTypeImpl extends EObjectImpl implements RealmType {
-    /**
-     * 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 cached value of the '{@link #getPrincipal() <em>Principal</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getPrincipal()
-     * @generated
-     * @ordered
-     */
-    protected EList principal = null;
-
-    /**
-     * The default value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRealmName()
-     * @generated
-     * @ordered
-     */
-    protected static final String REALM_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRealmName()
-     * @generated
-     * @ordered
-     */
-    protected String realmName = REALM_NAME_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected RealmTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return SecurityPackage.eINSTANCE.getRealmType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getDescription() {
-        if (description == null) {
-            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.REALM_TYPE__DESCRIPTION);
-        }
-        return description;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getPrincipal() {
-        if (principal == null) {
-            principal = new EObjectContainmentEList(PrincipalType.class, this, SecurityPackage.REALM_TYPE__PRINCIPAL);
-        }
-        return principal;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getRealmName() {
-        return realmName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setRealmName(String newRealmName) {
-        String oldRealmName = realmName;
-        realmName = newRealmName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.REALM_TYPE__REALM_NAME, oldRealmName, realmName));
-    }
-
-    /**
-     * <!-- 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.REALM_TYPE__DESCRIPTION:
-                    return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.REALM_TYPE__PRINCIPAL:
-                    return ((InternalEList)getPrincipal()).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.REALM_TYPE__DESCRIPTION:
-                return getDescription();
-            case SecurityPackage.REALM_TYPE__PRINCIPAL:
-                return getPrincipal();
-            case SecurityPackage.REALM_TYPE__REALM_NAME:
-                return getRealmName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.REALM_TYPE__DESCRIPTION:
-                getDescription().clear();
-                getDescription().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.REALM_TYPE__PRINCIPAL:
-                getPrincipal().clear();
-                getPrincipal().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.REALM_TYPE__REALM_NAME:
-                setRealmName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.REALM_TYPE__DESCRIPTION:
-                getDescription().clear();
-                return;
-            case SecurityPackage.REALM_TYPE__PRINCIPAL:
-                getPrincipal().clear();
-                return;
-            case SecurityPackage.REALM_TYPE__REALM_NAME:
-                setRealmName(REALM_NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.REALM_TYPE__DESCRIPTION:
-                return description != null && !description.isEmpty();
-            case SecurityPackage.REALM_TYPE__PRINCIPAL:
-                return principal != null && !principal.isEmpty();
-            case SecurityPackage.REALM_TYPE__REALM_NAME:
-                return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName);
-        }
-        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(" (realmName: ");
-        result.append(realmName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //RealmTypeImpl
+/**
+ * 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.RealmType;
+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>Realm Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getDescription <em>Description</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getPrincipal <em>Principal</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getRealmName <em>Realm Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RealmTypeImpl extends EObjectImpl implements RealmType {
+    /**
+     * 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 cached value of the '{@link #getPrincipal() <em>Principal</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPrincipal()
+     * @generated
+     * @ordered
+     */
+    protected EList principal = null;
+
+    /**
+     * The default value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRealmName()
+     * @generated
+     * @ordered
+     */
+    protected static final String REALM_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getRealmName() <em>Realm Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRealmName()
+     * @generated
+     * @ordered
+     */
+    protected String realmName = REALM_NAME_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected RealmTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return SecurityPackage.eINSTANCE.getRealmType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getDescription() {
+        if (description == null) {
+            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.REALM_TYPE__DESCRIPTION);
+        }
+        return description;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getPrincipal() {
+        if (principal == null) {
+            principal = new EObjectContainmentEList(PrincipalType.class, this, SecurityPackage.REALM_TYPE__PRINCIPAL);
+        }
+        return principal;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getRealmName() {
+        return realmName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRealmName(String newRealmName) {
+        String oldRealmName = realmName;
+        realmName = newRealmName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.REALM_TYPE__REALM_NAME, oldRealmName, realmName));
+    }
+
+    /**
+     * <!-- 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.REALM_TYPE__DESCRIPTION:
+                    return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.REALM_TYPE__PRINCIPAL:
+                    return ((InternalEList)getPrincipal()).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.REALM_TYPE__DESCRIPTION:
+                return getDescription();
+            case SecurityPackage.REALM_TYPE__PRINCIPAL:
+                return getPrincipal();
+            case SecurityPackage.REALM_TYPE__REALM_NAME:
+                return getRealmName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.REALM_TYPE__DESCRIPTION:
+                getDescription().clear();
+                getDescription().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.REALM_TYPE__PRINCIPAL:
+                getPrincipal().clear();
+                getPrincipal().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.REALM_TYPE__REALM_NAME:
+                setRealmName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.REALM_TYPE__DESCRIPTION:
+                getDescription().clear();
+                return;
+            case SecurityPackage.REALM_TYPE__PRINCIPAL:
+                getPrincipal().clear();
+                return;
+            case SecurityPackage.REALM_TYPE__REALM_NAME:
+                setRealmName(REALM_NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.REALM_TYPE__DESCRIPTION:
+                return description != null && !description.isEmpty();
+            case SecurityPackage.REALM_TYPE__PRINCIPAL:
+                return principal != null && !principal.isEmpty();
+            case SecurityPackage.REALM_TYPE__REALM_NAME:
+                return REALM_NAME_EDEFAULT == null ? realmName != null : !REALM_NAME_EDEFAULT.equals(realmName);
+        }
+        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(" (realmName: ");
+        result.append(realmName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //RealmTypeImpl

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleMappingsTypeImpl.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/RoleMappingsTypeImpl.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/RoleMappingsTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleMappingsTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,163 +1,163 @@
-/**
- * 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.RoleMappingsType;
-import org.apache.geronimo.xml.ns.security.RoleType;
-import org.apache.geronimo.xml.ns.security.SecurityPackage;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Role Mappings Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleMappingsTypeImpl#getRole <em>Role</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RoleMappingsTypeImpl extends EObjectImpl implements RoleMappingsType {
-    /**
-     * The cached value of the '{@link #getRole() <em>Role</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRole()
-     * @generated
-     * @ordered
-     */
-    protected EList role = null;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected RoleMappingsTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return SecurityPackage.eINSTANCE.getRoleMappingsType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getRole() {
-        if (role == null) {
-            role = new EObjectContainmentEList(RoleType.class, this, SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE);
-        }
-        return role;
-    }
-
-    /**
-     * <!-- 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.ROLE_MAPPINGS_TYPE__ROLE:
-                    return ((InternalEList)getRole()).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.ROLE_MAPPINGS_TYPE__ROLE:
-                return getRole();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
-                getRole().clear();
-                getRole().addAll((Collection)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
-                getRole().clear();
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
-                return role != null && !role.isEmpty();
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-} //RoleMappingsTypeImpl
+/**
+ * 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.RoleMappingsType;
+import org.apache.geronimo.xml.ns.security.RoleType;
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Role Mappings Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleMappingsTypeImpl#getRole <em>Role</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RoleMappingsTypeImpl extends EObjectImpl implements RoleMappingsType {
+    /**
+     * The cached value of the '{@link #getRole() <em>Role</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRole()
+     * @generated
+     * @ordered
+     */
+    protected EList role = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected RoleMappingsTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return SecurityPackage.eINSTANCE.getRoleMappingsType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getRole() {
+        if (role == null) {
+            role = new EObjectContainmentEList(RoleType.class, this, SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE);
+        }
+        return role;
+    }
+
+    /**
+     * <!-- 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.ROLE_MAPPINGS_TYPE__ROLE:
+                    return ((InternalEList)getRole()).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.ROLE_MAPPINGS_TYPE__ROLE:
+                return getRole();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
+                getRole().clear();
+                getRole().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
+                getRole().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
+                return role != null && !role.isEmpty();
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+} //RoleMappingsTypeImpl

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleTypeImpl.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/RoleTypeImpl.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/RoleTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,306 +1,306 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.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.DistinguishedNameType;
-import org.apache.geronimo.xml.ns.security.RealmType;
-import org.apache.geronimo.xml.ns.security.RoleType;
-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>Role Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDescription <em>Description</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRealm <em>Realm</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDistinguishedName <em>Distinguished Name</em>}</li>
- *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRoleName <em>Role Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RoleTypeImpl extends EObjectImpl implements RoleType {
-    /**
-     * 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 cached value of the '{@link #getRealm() <em>Realm</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRealm()
-     * @generated
-     * @ordered
-     */
-    protected EList realm = null;
-
-    /**
-     * The cached value of the '{@link #getDistinguishedName() <em>Distinguished Name</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getDistinguishedName()
-     * @generated
-     * @ordered
-     */
-    protected EList distinguishedName = null;
-
-    /**
-     * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRoleName()
-     * @generated
-     * @ordered
-     */
-    protected static final String ROLE_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getRoleName()
-     * @generated
-     * @ordered
-     */
-    protected String roleName = ROLE_NAME_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected RoleTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return SecurityPackage.eINSTANCE.getRoleType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getDescription() {
-        if (description == null) {
-            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.ROLE_TYPE__DESCRIPTION);
-        }
-        return description;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getRealm() {
-        if (realm == null) {
-            realm = new EObjectContainmentEList(RealmType.class, this, SecurityPackage.ROLE_TYPE__REALM);
-        }
-        return realm;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getDistinguishedName() {
-        if (distinguishedName == null) {
-            distinguishedName = new EObjectContainmentEList(DistinguishedNameType.class, this, SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME);
-        }
-        return distinguishedName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getRoleName() {
-        return roleName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setRoleName(String newRoleName) {
-        String oldRoleName = roleName;
-        roleName = newRoleName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.ROLE_TYPE__ROLE_NAME, oldRoleName, roleName));
-    }
-
-    /**
-     * <!-- 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.ROLE_TYPE__DESCRIPTION:
-                    return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.ROLE_TYPE__REALM:
-                    return ((InternalEList)getRealm()).basicRemove(otherEnd, msgs);
-                case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
-                    return ((InternalEList)getDistinguishedName()).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.ROLE_TYPE__DESCRIPTION:
-                return getDescription();
-            case SecurityPackage.ROLE_TYPE__REALM:
-                return getRealm();
-            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
-                return getDistinguishedName();
-            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
-                return getRoleName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
-                getDescription().clear();
-                getDescription().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.ROLE_TYPE__REALM:
-                getRealm().clear();
-                getRealm().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
-                getDistinguishedName().clear();
-                getDistinguishedName().addAll((Collection)newValue);
-                return;
-            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
-                setRoleName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
-                getDescription().clear();
-                return;
-            case SecurityPackage.ROLE_TYPE__REALM:
-                getRealm().clear();
-                return;
-            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
-                getDistinguishedName().clear();
-                return;
-            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
-                setRoleName(ROLE_NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
-                return description != null && !description.isEmpty();
-            case SecurityPackage.ROLE_TYPE__REALM:
-                return realm != null && !realm.isEmpty();
-            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
-                return distinguishedName != null && !distinguishedName.isEmpty();
-            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
-                return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName);
-        }
-        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(" (roleName: ");
-        result.append(roleName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //RoleTypeImpl
+/**
+ * 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.DistinguishedNameType;
+import org.apache.geronimo.xml.ns.security.RealmType;
+import org.apache.geronimo.xml.ns.security.RoleType;
+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>Role Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDescription <em>Description</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRealm <em>Realm</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDistinguishedName <em>Distinguished Name</em>}</li>
+ *   <li>{@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRoleName <em>Role Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RoleTypeImpl extends EObjectImpl implements RoleType {
+    /**
+     * 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 cached value of the '{@link #getRealm() <em>Realm</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRealm()
+     * @generated
+     * @ordered
+     */
+    protected EList realm = null;
+
+    /**
+     * The cached value of the '{@link #getDistinguishedName() <em>Distinguished Name</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDistinguishedName()
+     * @generated
+     * @ordered
+     */
+    protected EList distinguishedName = null;
+
+    /**
+     * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRoleName()
+     * @generated
+     * @ordered
+     */
+    protected static final String ROLE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRoleName()
+     * @generated
+     * @ordered
+     */
+    protected String roleName = ROLE_NAME_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected RoleTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return SecurityPackage.eINSTANCE.getRoleType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getDescription() {
+        if (description == null) {
+            description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.ROLE_TYPE__DESCRIPTION);
+        }
+        return description;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getRealm() {
+        if (realm == null) {
+            realm = new EObjectContainmentEList(RealmType.class, this, SecurityPackage.ROLE_TYPE__REALM);
+        }
+        return realm;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getDistinguishedName() {
+        if (distinguishedName == null) {
+            distinguishedName = new EObjectContainmentEList(DistinguishedNameType.class, this, SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME);
+        }
+        return distinguishedName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getRoleName() {
+        return roleName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRoleName(String newRoleName) {
+        String oldRoleName = roleName;
+        roleName = newRoleName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.ROLE_TYPE__ROLE_NAME, oldRoleName, roleName));
+    }
+
+    /**
+     * <!-- 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.ROLE_TYPE__DESCRIPTION:
+                    return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.ROLE_TYPE__REALM:
+                    return ((InternalEList)getRealm()).basicRemove(otherEnd, msgs);
+                case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
+                    return ((InternalEList)getDistinguishedName()).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.ROLE_TYPE__DESCRIPTION:
+                return getDescription();
+            case SecurityPackage.ROLE_TYPE__REALM:
+                return getRealm();
+            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
+                return getDistinguishedName();
+            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
+                return getRoleName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
+                getDescription().clear();
+                getDescription().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.ROLE_TYPE__REALM:
+                getRealm().clear();
+                getRealm().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
+                getDistinguishedName().clear();
+                getDistinguishedName().addAll((Collection)newValue);
+                return;
+            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
+                setRoleName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
+                getDescription().clear();
+                return;
+            case SecurityPackage.ROLE_TYPE__REALM:
+                getRealm().clear();
+                return;
+            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
+                getDistinguishedName().clear();
+                return;
+            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
+                setRoleName(ROLE_NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case SecurityPackage.ROLE_TYPE__DESCRIPTION:
+                return description != null && !description.isEmpty();
+            case SecurityPackage.ROLE_TYPE__REALM:
+                return realm != null && !realm.isEmpty();
+            case SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME:
+                return distinguishedName != null && !distinguishedName.isEmpty();
+            case SecurityPackage.ROLE_TYPE__ROLE_NAME:
+                return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName);
+        }
+        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(" (roleName: ");
+        result.append(roleName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //RoleTypeImpl

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

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityFactoryImpl.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/SecurityFactoryImpl.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/SecurityFactoryImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityFactoryImpl.java Wed Aug 24 14:34:34 2005
@@ -1,183 +1,183 @@
-/**
- * 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.*;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SecurityFactoryImpl extends EFactoryImpl implements SecurityFactory {
-    /**
-     * Creates an instance of the factory.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public SecurityFactoryImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EObject create(EClass eClass) {
-        switch (eClass.getClassifierID()) {
-            case SecurityPackage.DEFAULT_PRINCIPAL_TYPE: return createDefaultPrincipalType();
-            case SecurityPackage.DESCRIPTION_TYPE: return createDescriptionType();
-            case SecurityPackage.DISTINGUISHED_NAME_TYPE: return createDistinguishedNameType();
-            case SecurityPackage.DOCUMENT_ROOT: return createDocumentRoot();
-            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE: return createNamedUsernamePasswordCredentialType();
-            case SecurityPackage.PRINCIPAL_TYPE: return createPrincipalType();
-            case SecurityPackage.REALM_TYPE: return createRealmType();
-            case SecurityPackage.ROLE_MAPPINGS_TYPE: return createRoleMappingsType();
-            case SecurityPackage.ROLE_TYPE: return createRoleType();
-            case SecurityPackage.SECURITY_TYPE: return createSecurityType();
-            default:
-                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
-        }
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DefaultPrincipalType createDefaultPrincipalType() {
-        DefaultPrincipalTypeImpl defaultPrincipalType = new DefaultPrincipalTypeImpl();
-        return defaultPrincipalType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DescriptionType createDescriptionType() {
-        DescriptionTypeImpl descriptionType = new DescriptionTypeImpl();
-        return descriptionType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DistinguishedNameType createDistinguishedNameType() {
-        DistinguishedNameTypeImpl distinguishedNameType = new DistinguishedNameTypeImpl();
-        return distinguishedNameType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public DocumentRoot createDocumentRoot() {
-        DocumentRootImpl documentRoot = new DocumentRootImpl();
-        return documentRoot;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NamedUsernamePasswordCredentialType createNamedUsernamePasswordCredentialType() {
-        NamedUsernamePasswordCredentialTypeImpl namedUsernamePasswordCredentialType = new NamedUsernamePasswordCredentialTypeImpl();
-        return namedUsernamePasswordCredentialType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public PrincipalType createPrincipalType() {
-        PrincipalTypeImpl principalType = new PrincipalTypeImpl();
-        return principalType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public RealmType createRealmType() {
-        RealmTypeImpl realmType = new RealmTypeImpl();
-        return realmType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public RoleMappingsType createRoleMappingsType() {
-        RoleMappingsTypeImpl roleMappingsType = new RoleMappingsTypeImpl();
-        return roleMappingsType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public RoleType createRoleType() {
-        RoleTypeImpl roleType = new RoleTypeImpl();
-        return roleType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public SecurityType createSecurityType() {
-        SecurityTypeImpl securityType = new SecurityTypeImpl();
-        return securityType;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public SecurityPackage getSecurityPackage() {
-        return (SecurityPackage)getEPackage();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @deprecated
-     * @generated
-     */
-    public static SecurityPackage getPackage() {
-        return SecurityPackage.eINSTANCE;
-    }
-
-} //SecurityFactoryImpl
+/**
+ * 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.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SecurityFactoryImpl extends EFactoryImpl implements SecurityFactory {
+    /**
+     * Creates an instance of the factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SecurityFactoryImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject create(EClass eClass) {
+        switch (eClass.getClassifierID()) {
+            case SecurityPackage.DEFAULT_PRINCIPAL_TYPE: return createDefaultPrincipalType();
+            case SecurityPackage.DESCRIPTION_TYPE: return createDescriptionType();
+            case SecurityPackage.DISTINGUISHED_NAME_TYPE: return createDistinguishedNameType();
+            case SecurityPackage.DOCUMENT_ROOT: return createDocumentRoot();
+            case SecurityPackage.NAMED_USERNAME_PASSWORD_CREDENTIAL_TYPE: return createNamedUsernamePasswordCredentialType();
+            case SecurityPackage.PRINCIPAL_TYPE: return createPrincipalType();
+            case SecurityPackage.REALM_TYPE: return createRealmType();
+            case SecurityPackage.ROLE_MAPPINGS_TYPE: return createRoleMappingsType();
+            case SecurityPackage.ROLE_TYPE: return createRoleType();
+            case SecurityPackage.SECURITY_TYPE: return createSecurityType();
+            default:
+                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DefaultPrincipalType createDefaultPrincipalType() {
+        DefaultPrincipalTypeImpl defaultPrincipalType = new DefaultPrincipalTypeImpl();
+        return defaultPrincipalType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DescriptionType createDescriptionType() {
+        DescriptionTypeImpl descriptionType = new DescriptionTypeImpl();
+        return descriptionType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DistinguishedNameType createDistinguishedNameType() {
+        DistinguishedNameTypeImpl distinguishedNameType = new DistinguishedNameTypeImpl();
+        return distinguishedNameType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DocumentRoot createDocumentRoot() {
+        DocumentRootImpl documentRoot = new DocumentRootImpl();
+        return documentRoot;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NamedUsernamePasswordCredentialType createNamedUsernamePasswordCredentialType() {
+        NamedUsernamePasswordCredentialTypeImpl namedUsernamePasswordCredentialType = new NamedUsernamePasswordCredentialTypeImpl();
+        return namedUsernamePasswordCredentialType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PrincipalType createPrincipalType() {
+        PrincipalTypeImpl principalType = new PrincipalTypeImpl();
+        return principalType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RealmType createRealmType() {
+        RealmTypeImpl realmType = new RealmTypeImpl();
+        return realmType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RoleMappingsType createRoleMappingsType() {
+        RoleMappingsTypeImpl roleMappingsType = new RoleMappingsTypeImpl();
+        return roleMappingsType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public RoleType createRoleType() {
+        RoleTypeImpl roleType = new RoleTypeImpl();
+        return roleType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SecurityType createSecurityType() {
+        SecurityTypeImpl securityType = new SecurityTypeImpl();
+        return securityType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SecurityPackage getSecurityPackage() {
+        return (SecurityPackage)getEPackage();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @deprecated
+     * @generated
+     */
+    public static SecurityPackage getPackage() {
+        return SecurityPackage.eINSTANCE;
+    }
+
+} //SecurityFactoryImpl

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



Mime
View raw message