Return-Path:
Delivered-To: apmail-geronimo-scm-archive@www.apache.org
Received: (qmail 17697 invoked from network); 16 Aug 2005 19:48:55 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 16 Aug 2005 19:48:55 -0000
Received: (qmail 92300 invoked by uid 500); 16 Aug 2005 19:48:32 -0000
Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org
Received: (qmail 92130 invoked by uid 500); 16 Aug 2005 19:48:30 -0000
Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm
Precedence: bulk
list-help:
list-unsubscribe:
List-Post:
Reply-To: dev@geronimo.apache.org
List-Id:
Delivered-To: mailing list scm@geronimo.apache.org
Received: (qmail 92008 invoked by uid 99); 16 Aug 2005 19:48:29 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 12:48:29 -0700
X-ASF-Spam-Status: No, hits=-9.8 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
X-Spam-Check-By: apache.org
Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194)
by apache.org (qpsmtpd/0.29) with SMTP; Tue, 16 Aug 2005 12:48:13 -0700
Received: (qmail 16119 invoked by uid 65534); 16 Aug 2005 19:47:48 -0000
Message-ID: <20050816194748.16118.qmail@minotaur.apache.org>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r233044 [27/33] - in
/geronimo/trunk/sandbox/eclipse-plugin: ./
org.apache.geronimo.core/ org.apache.geronimo.core/META-INF/
org.apache.geronimo.core/serverdef/ org.apache.geronimo.core/src/
org.apache.geronimo.core/src/org/ org.apache.gero...
Date: Tue, 16 Aug 2005 19:47:05 -0000
To: scm@geronimo.apache.org
From: dain@apache.org
X-Mailer: svnmailer-1.0.3
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DistinguishedNameTypeImpl.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/DistinguishedNameTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DistinguishedNameTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DistinguishedNameTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,327 @@
+/**
+ * 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.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;
+
+/**
+ *
+ * An implementation of the model object 'Distinguished Name Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DistinguishedNameTypeImpl#getDescription Description}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DistinguishedNameTypeImpl#isDesignatedRunAs Designated Run As}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DistinguishedNameTypeImpl#getName Name}
+ *
+ *
+ *
+ * @generated
+ */
+public class DistinguishedNameTypeImpl extends EObjectImpl implements DistinguishedNameType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getDescription() Description}' containment reference list.
+ *
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected EList description = null;
+
+ /**
+ * The default value of the '{@link #isDesignatedRunAs() Designated Run As}' attribute.
+ *
+ *
+ * @see #isDesignatedRunAs()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean DESIGNATED_RUN_AS_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isDesignatedRunAs() Designated Run As}' attribute.
+ *
+ *
+ * @see #isDesignatedRunAs()
+ * @generated
+ * @ordered
+ */
+ protected boolean designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
+
+ /**
+ * This is true if the Designated Run As attribute has been set.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean designatedRunAsESet = false;
+
+ /**
+ * The default value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DistinguishedNameTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getDistinguishedNameType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getDescription() {
+ if (description == null) {
+ description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION);
+ }
+ return description;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean isDesignatedRunAs() {
+ return designatedRunAs;
+ }
+
+ /**
+ *
+ *
+ * @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.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, designatedRunAs, !oldDesignatedRunAsESet));
+ }
+
+ /**
+ *
+ *
+ * @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.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS, oldDesignatedRunAs, DESIGNATED_RUN_AS_EDEFAULT, oldDesignatedRunAsESet));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean isSetDesignatedRunAs() {
+ return designatedRunAsESet;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, SecurityPackage.DISTINGUISHED_NAME_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+ if (featureID >= 0) {
+ switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION:
+ return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
+ default:
+ return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+ }
+ }
+ return eBasicSetContainer(null, featureID, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION:
+ return getDescription();
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS:
+ return isDesignatedRunAs() ? Boolean.TRUE : Boolean.FALSE;
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__NAME:
+ return getName();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION:
+ getDescription().clear();
+ getDescription().addAll((Collection)newValue);
+ return;
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS:
+ setDesignatedRunAs(((Boolean)newValue).booleanValue());
+ return;
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION:
+ getDescription().clear();
+ return;
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS:
+ unsetDesignatedRunAs();
+ return;
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESCRIPTION:
+ return description != null && !description.isEmpty();
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__DESIGNATED_RUN_AS:
+ return isSetDesignatedRunAs();
+ case SecurityPackage.DISTINGUISHED_NAME_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (designatedRunAs: ");
+ if (designatedRunAsESet) result.append(designatedRunAs); else result.append("");
+ result.append(", name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DistinguishedNameTypeImpl
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DistinguishedNameTypeImpl.java
------------------------------------------------------------------------------
svn:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DocumentRootImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/DocumentRootImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,342 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model object 'Document Root'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getMixed Mixed}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXMLNSPrefixMap XMLNS Prefix Map}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getXSISchemaLocation XSI Schema Location}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getDefaultPrincipal Default Principal}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.DocumentRootImpl#getSecurity Security}
+ *
+ *
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getMixed() Mixed}' attribute list.
+ *
+ *
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed = null;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() XMLNS Prefix Map}' map.
+ *
+ *
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap xMLNSPrefixMap = null;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() XSI Schema Location}' map.
+ *
+ *
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap xSISchemaLocation = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getDocumentRoot();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, SecurityPackage.DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EMap getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, SecurityPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EMap getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, SecurityPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DefaultPrincipalType getDefaultPrincipal() {
+ return (DefaultPrincipalType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), true);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain basicSetDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal, NotificationChain msgs) {
+ return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setDefaultPrincipal(DefaultPrincipalType newDefaultPrincipal) {
+ ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_DefaultPrincipal(), newDefaultPrincipal);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public SecurityType getSecurity() {
+ return (SecurityType)getMixed().get(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), true);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
+ return ((FeatureMap.Internal)getMixed()).basicAdd(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity, msgs);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setSecurity(SecurityType newSecurity) {
+ ((FeatureMap.Internal)getMixed()).set(SecurityPackage.eINSTANCE.getDocumentRoot_Security(), newSecurity);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/NamedUsernamePasswordCredentialTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/NamedUsernamePasswordCredentialTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,286 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.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;
+
+/**
+ *
+ * An implementation of the model object 'Named Username Password Credential Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getName Name}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getUsername Username}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.NamedUsernamePasswordCredentialTypeImpl#getPassword Password}
+ *
+ *
+ *
+ * @generated
+ */
+public class NamedUsernamePasswordCredentialTypeImpl extends EObjectImpl implements NamedUsernamePasswordCredentialType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The default value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUsername() Username}' attribute.
+ *
+ *
+ * @see #getUsername()
+ * @generated
+ * @ordered
+ */
+ protected static final String USERNAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUsername() Username}' attribute.
+ *
+ *
+ * @see #getUsername()
+ * @generated
+ * @ordered
+ */
+ protected String username = USERNAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPassword() Password}' attribute.
+ *
+ *
+ * @see #getPassword()
+ * @generated
+ * @ordered
+ */
+ protected static final String PASSWORD_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPassword() Password}' attribute.
+ *
+ *
+ * @see #getPassword()
+ * @generated
+ * @ordered
+ */
+ protected String password = PASSWORD_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected NamedUsernamePasswordCredentialTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getNamedUsernamePasswordCredentialType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getUsername() {
+ return username;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/PrincipalTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/PrincipalTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,381 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model object 'Principal Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getDescription Description}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getClass_ Class}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#isDesignatedRunAs Designated Run As}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.PrincipalTypeImpl#getName Name}
+ *
+ *
+ *
+ * @generated
+ */
+public class PrincipalTypeImpl extends EObjectImpl implements PrincipalType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getDescription() Description}' containment reference list.
+ *
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected EList description = null;
+
+ /**
+ * The default value of the '{@link #getClass_() Class}' attribute.
+ *
+ *
+ * @see #getClass_()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLASS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getClass_() Class}' attribute.
+ *
+ *
+ * @see #getClass_()
+ * @generated
+ * @ordered
+ */
+ protected String class_ = CLASS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isDesignatedRunAs() Designated Run As}' attribute.
+ *
+ *
+ * @see #isDesignatedRunAs()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean DESIGNATED_RUN_AS_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isDesignatedRunAs() Designated Run As}' attribute.
+ *
+ *
+ * @see #isDesignatedRunAs()
+ * @generated
+ * @ordered
+ */
+ protected boolean designatedRunAs = DESIGNATED_RUN_AS_EDEFAULT;
+
+ /**
+ * This is true if the Designated Run As attribute has been set.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean designatedRunAsESet = false;
+
+ /**
+ * The default value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected PrincipalTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getPrincipalType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getDescription() {
+ if (description == null) {
+ description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.PRINCIPAL_TYPE__DESCRIPTION);
+ }
+ return description;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getClass_() {
+ return class_;
+ }
+
+ /**
+ *
+ *
+ * @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_));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean isDesignatedRunAs() {
+ return designatedRunAs;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean isSetDesignatedRunAs() {
+ return designatedRunAsESet;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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("");
+ 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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RealmTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RealmTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,276 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model object 'Realm Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getDescription Description}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getPrincipal Principal}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RealmTypeImpl#getRealmName Realm Name}
+ *
+ *
+ *
+ * @generated
+ */
+public class RealmTypeImpl extends EObjectImpl implements RealmType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getDescription() Description}' containment reference list.
+ *
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected EList description = null;
+
+ /**
+ * The cached value of the '{@link #getPrincipal() Principal}' containment reference list.
+ *
+ *
+ * @see #getPrincipal()
+ * @generated
+ * @ordered
+ */
+ protected EList principal = null;
+
+ /**
+ * The default value of the '{@link #getRealmName() Realm Name}' attribute.
+ *
+ *
+ * @see #getRealmName()
+ * @generated
+ * @ordered
+ */
+ protected static final String REALM_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRealmName() Realm Name}' attribute.
+ *
+ *
+ * @see #getRealmName()
+ * @generated
+ * @ordered
+ */
+ protected String realmName = REALM_NAME_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected RealmTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getRealmType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getDescription() {
+ if (description == null) {
+ description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.REALM_TYPE__DESCRIPTION);
+ }
+ return description;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getPrincipal() {
+ if (principal == null) {
+ principal = new EObjectContainmentEList(PrincipalType.class, this, SecurityPackage.REALM_TYPE__PRINCIPAL);
+ }
+ return principal;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getRealmName() {
+ return realmName;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleMappingsTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleMappingsTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,170 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model object 'Role Mappings Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RoleMappingsTypeImpl#getRole Role}
+ *
+ *
+ *
+ * @generated
+ */
+public class RoleMappingsTypeImpl extends EObjectImpl implements RoleMappingsType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getRole() Role}' containment reference list.
+ *
+ *
+ * @see #getRole()
+ * @generated
+ * @ordered
+ */
+ protected EList role = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected RoleMappingsTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getRoleMappingsType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getRole() {
+ if (role == null) {
+ role = new EObjectContainmentEList(RoleType.class, this, SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE);
+ }
+ return role;
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
+ return getRole();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case SecurityPackage.ROLE_MAPPINGS_TYPE__ROLE:
+ getRole().clear();
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/RoleTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,313 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model object 'Role Type'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDescription Description}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRealm Realm}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getDistinguishedName Distinguished Name}
+ * - {@link org.apache.geronimo.xml.ns.security.impl.RoleTypeImpl#getRoleName Role Name}
+ *
+ *
+ *
+ * @generated
+ */
+public class RoleTypeImpl extends EObjectImpl implements RoleType {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The cached value of the '{@link #getDescription() Description}' containment reference list.
+ *
+ *
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected EList description = null;
+
+ /**
+ * The cached value of the '{@link #getRealm() Realm}' containment reference list.
+ *
+ *
+ * @see #getRealm()
+ * @generated
+ * @ordered
+ */
+ protected EList realm = null;
+
+ /**
+ * The cached value of the '{@link #getDistinguishedName() Distinguished Name}' containment reference list.
+ *
+ *
+ * @see #getDistinguishedName()
+ * @generated
+ * @ordered
+ */
+ protected EList distinguishedName = null;
+
+ /**
+ * The default value of the '{@link #getRoleName() Role Name}' attribute.
+ *
+ *
+ * @see #getRoleName()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROLE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRoleName() Role Name}' attribute.
+ *
+ *
+ * @see #getRoleName()
+ * @generated
+ * @ordered
+ */
+ protected String roleName = ROLE_NAME_EDEFAULT;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected RoleTypeImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return SecurityPackage.eINSTANCE.getRoleType();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getDescription() {
+ if (description == null) {
+ description = new EObjectContainmentEList(DescriptionType.class, this, SecurityPackage.ROLE_TYPE__DESCRIPTION);
+ }
+ return description;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getRealm() {
+ if (realm == null) {
+ realm = new EObjectContainmentEList(RealmType.class, this, SecurityPackage.ROLE_TYPE__REALM);
+ }
+ return realm;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EList getDistinguishedName() {
+ if (distinguishedName == null) {
+ distinguishedName = new EObjectContainmentEList(DistinguishedNameType.class, this, SecurityPackage.ROLE_TYPE__DISTINGUISHED_NAME);
+ }
+ return distinguishedName;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getRoleName() {
+ return roleName;
+ }
+
+ /**
+ *
+ *
+ * @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));
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *
Added: 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=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityFactoryImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/security/impl/SecurityFactoryImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,190 @@
+/**
+ * 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;
+
+/**
+ *
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class SecurityFactoryImpl extends EFactoryImpl implements SecurityFactory {
+ /**
+ *
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * Creates an instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public SecurityFactoryImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @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");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DefaultPrincipalType createDefaultPrincipalType() {
+ DefaultPrincipalTypeImpl defaultPrincipalType = new DefaultPrincipalTypeImpl();
+ return defaultPrincipalType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DescriptionType createDescriptionType() {
+ DescriptionTypeImpl descriptionType = new DescriptionTypeImpl();
+ return descriptionType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DistinguishedNameType createDistinguishedNameType() {
+ DistinguishedNameTypeImpl distinguishedNameType = new DistinguishedNameTypeImpl();
+ return distinguishedNameType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public NamedUsernamePasswordCredentialType createNamedUsernamePasswordCredentialType() {
+ NamedUsernamePasswordCredentialTypeImpl namedUsernamePasswordCredentialType = new NamedUsernamePasswordCredentialTypeImpl();
+ return namedUsernamePasswordCredentialType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public PrincipalType createPrincipalType() {
+ PrincipalTypeImpl principalType = new PrincipalTypeImpl();
+ return principalType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public RealmType createRealmType() {
+ RealmTypeImpl realmType = new RealmTypeImpl();
+ return realmType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public RoleMappingsType createRoleMappingsType() {
+ RoleMappingsTypeImpl roleMappingsType = new RoleMappingsTypeImpl();
+ return roleMappingsType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public RoleType createRoleType() {
+ RoleTypeImpl roleType = new RoleTypeImpl();
+ return roleType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public SecurityType createSecurityType() {
+ SecurityTypeImpl securityType = new SecurityTypeImpl();
+ return securityType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public SecurityPackage getSecurityPackage() {
+ return (SecurityPackage)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @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:executable = *