Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 26060 invoked from network); 14 Sep 2005 19:03:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 19:03:58 -0000 Received: (qmail 96982 invoked by uid 500); 14 Sep 2005 19:03:13 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 96896 invoked by uid 500); 14 Sep 2005 19:03:13 -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 96657 invoked by uid 99); 14 Sep 2005 19:03:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 12:03:10 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Sep 2005 12:02:59 -0700 Received: (qmail 24333 invoked by uid 65534); 14 Sep 2005 19:02:39 -0000 Message-ID: <20050914190239.24332.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r280909 [26/52] - in /geronimo/devtools/trunk/modules/eclipse-plugin: ./ features/ features/org.apache.geronimo.feature/ org.apache.geronimo.core/ org.apache.geronimo.deployment.model/ org.apache.geronimo.feature/ org.apache.geronimo.runtim... Date: Wed, 14 Sep 2005 19:01:03 -0000 To: scm@geronimo.apache.org From: sppatel@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanLocatorTypeImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanLocatorTypeImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanLocatorTypeImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanLocatorTypeImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,549 @@ +/** + * 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.naming.impl; + +import org.apache.geronimo.xml.ns.naming.GbeanLocatorType; +import org.apache.geronimo.xml.ns.naming.NamingPackage; + +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 'Gbean Locator Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getDomain Domain}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getServer Server}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getApplication Application}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getModule Module}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getType Type}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getName Name}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getGbeanLink Gbean Link}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanLocatorTypeImpl#getTargetName Target Name}
  • + *
+ *

+ * + * @generated + */ +public class GbeanLocatorTypeImpl extends EObjectImpl implements GbeanLocatorType { + /** + * The default value of the '{@link #getDomain() Domain}' attribute. + * + * + * @see #getDomain() + * @generated + * @ordered + */ + protected static final String DOMAIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDomain() Domain}' attribute. + * + * + * @see #getDomain() + * @generated + * @ordered + */ + protected String domain = DOMAIN_EDEFAULT; + + /** + * The default value of the '{@link #getServer() Server}' attribute. + * + * + * @see #getServer() + * @generated + * @ordered + */ + protected static final String SERVER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServer() Server}' attribute. + * + * + * @see #getServer() + * @generated + * @ordered + */ + protected String server = SERVER_EDEFAULT; + + /** + * The default value of the '{@link #getApplication() Application}' attribute. + * + * + * @see #getApplication() + * @generated + * @ordered + */ + protected static final String APPLICATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getApplication() Application}' attribute. + * + * + * @see #getApplication() + * @generated + * @ordered + */ + protected String application = APPLICATION_EDEFAULT; + + /** + * The default value of the '{@link #getModule() Module}' attribute. + * + * + * @see #getModule() + * @generated + * @ordered + */ + protected static final String MODULE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModule() Module}' attribute. + * + * + * @see #getModule() + * @generated + * @ordered + */ + protected String module = MODULE_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * 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 #getGbeanLink() Gbean Link}' attribute. + * + * + * @see #getGbeanLink() + * @generated + * @ordered + */ + protected static final String GBEAN_LINK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGbeanLink() Gbean Link}' attribute. + * + * + * @see #getGbeanLink() + * @generated + * @ordered + */ + protected String gbeanLink = GBEAN_LINK_EDEFAULT; + + /** + * The default value of the '{@link #getTargetName() Target Name}' attribute. + * + * + * @see #getTargetName() + * @generated + * @ordered + */ + protected static final String TARGET_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTargetName() Target Name}' attribute. + * + * + * @see #getTargetName() + * @generated + * @ordered + */ + protected String targetName = TARGET_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected GbeanLocatorTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + protected EClass eStaticClass() { + return NamingPackage.eINSTANCE.getGbeanLocatorType(); + } + + /** + * + * + * @generated + */ + public String getDomain() { + return domain; + } + + /** + * + * + * @generated + */ + public void setDomain(String newDomain) { + String oldDomain = domain; + domain = newDomain; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN, oldDomain, domain)); + } + + /** + * + * + * @generated + */ + public String getServer() { + return server; + } + + /** + * + * + * @generated + */ + public void setServer(String newServer) { + String oldServer = server; + server = newServer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__SERVER, oldServer, server)); + } + + /** + * + * + * @generated + */ + public String getApplication() { + return application; + } + + /** + * + * + * @generated + */ + public void setApplication(String newApplication) { + String oldApplication = application; + application = newApplication; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION, oldApplication, application)); + } + + /** + * + * + * @generated + */ + public String getModule() { + return module; + } + + /** + * + * + * @generated + */ + public void setModule(String newModule) { + String oldModule = module; + module = newModule; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__MODULE, oldModule, module)); + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__TYPE, oldType, type)); + } + + /** + * + * + * @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, NamingPackage.GBEAN_LOCATOR_TYPE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getGbeanLink() { + return gbeanLink; + } + + /** + * + * + * @generated + */ + public void setGbeanLink(String newGbeanLink) { + String oldGbeanLink = gbeanLink; + gbeanLink = newGbeanLink; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK, oldGbeanLink, gbeanLink)); + } + + /** + * + * + * @generated + */ + public String getTargetName() { + return targetName; + } + + /** + * + * + * @generated + */ + public void setTargetName(String newTargetName) { + String oldTargetName = targetName; + targetName = newTargetName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_NAME, oldTargetName, targetName)); + } + + /** + * + * + * @generated + */ + public Object eGet(EStructuralFeature eFeature, boolean resolve) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN: + return getDomain(); + case NamingPackage.GBEAN_LOCATOR_TYPE__SERVER: + return getServer(); + case NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION: + return getApplication(); + case NamingPackage.GBEAN_LOCATOR_TYPE__MODULE: + return getModule(); + case NamingPackage.GBEAN_LOCATOR_TYPE__TYPE: + return getType(); + case NamingPackage.GBEAN_LOCATOR_TYPE__NAME: + return getName(); + case NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK: + return getGbeanLink(); + case NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_NAME: + return getTargetName(); + } + return eDynamicGet(eFeature, resolve); + } + + /** + * + * + * @generated + */ + public void eSet(EStructuralFeature eFeature, Object newValue) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN: + setDomain((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__SERVER: + setServer((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION: + setApplication((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__MODULE: + setModule((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__TYPE: + setType((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__NAME: + setName((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK: + setGbeanLink((String)newValue); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_NAME: + setTargetName((String)newValue); + return; + } + eDynamicSet(eFeature, newValue); + } + + /** + * + * + * @generated + */ + public void eUnset(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN: + setDomain(DOMAIN_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__SERVER: + setServer(SERVER_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION: + setApplication(APPLICATION_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__MODULE: + setModule(MODULE_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__TYPE: + setType(TYPE_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__NAME: + setName(NAME_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK: + setGbeanLink(GBEAN_LINK_EDEFAULT); + return; + case NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_NAME: + setTargetName(TARGET_NAME_EDEFAULT); + return; + } + eDynamicUnset(eFeature); + } + + /** + * + * + * @generated + */ + public boolean eIsSet(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_LOCATOR_TYPE__DOMAIN: + return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain); + case NamingPackage.GBEAN_LOCATOR_TYPE__SERVER: + return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server); + case NamingPackage.GBEAN_LOCATOR_TYPE__APPLICATION: + return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application); + case NamingPackage.GBEAN_LOCATOR_TYPE__MODULE: + return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module); + case NamingPackage.GBEAN_LOCATOR_TYPE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case NamingPackage.GBEAN_LOCATOR_TYPE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NamingPackage.GBEAN_LOCATOR_TYPE__GBEAN_LINK: + return GBEAN_LINK_EDEFAULT == null ? gbeanLink != null : !GBEAN_LINK_EDEFAULT.equals(gbeanLink); + case NamingPackage.GBEAN_LOCATOR_TYPE__TARGET_NAME: + return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName); + } + return eDynamicIsSet(eFeature); + } + + /** + * + * + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (domain: "); + result.append(domain); + result.append(", server: "); + result.append(server); + result.append(", application: "); + result.append(application); + result.append(", module: "); + result.append(module); + result.append(", type: "); + result.append(type); + result.append(", name: "); + result.append(name); + result.append(", gbeanLink: "); + result.append(gbeanLink); + result.append(", targetName: "); + result.append(targetName); + result.append(')'); + return result.toString(); + } + +} //GbeanLocatorTypeImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanRefTypeImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanRefTypeImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanRefTypeImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/GbeanRefTypeImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,489 @@ +/** + * 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.naming.impl; + +import java.util.Collection; + +import org.apache.geronimo.xml.ns.naming.GbeanRefType; +import org.apache.geronimo.xml.ns.naming.NamingPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.BasicFeatureMap; +import org.eclipse.emf.ecore.util.FeatureMap; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Gbean Ref Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getRefName Ref Name}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getRefType Ref Type}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getProxyType Proxy Type}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getGroup Group}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getDomain Domain}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getServer Server}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getApplication Application}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getModule Module}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getType Type}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getName Name}
  • + *
  • {@link org.apache.geronimo.xml.ns.naming.impl.GbeanRefTypeImpl#getTargetName Target Name}
  • + *
+ *

+ * + * @generated + */ +public class GbeanRefTypeImpl extends EObjectImpl implements GbeanRefType { + /** + * The default value of the '{@link #getRefName() Ref Name}' attribute. + * + * + * @see #getRefName() + * @generated + * @ordered + */ + protected static final String REF_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRefName() Ref Name}' attribute. + * + * + * @see #getRefName() + * @generated + * @ordered + */ + protected String refName = REF_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getRefType() Ref Type}' attribute. + * + * + * @see #getRefType() + * @generated + * @ordered + */ + protected static final String REF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRefType() Ref Type}' attribute. + * + * + * @see #getRefType() + * @generated + * @ordered + */ + protected String refType = REF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getProxyType() Proxy Type}' attribute. + * + * + * @see #getProxyType() + * @generated + * @ordered + */ + protected static final String PROXY_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProxyType() Proxy Type}' attribute. + * + * + * @see #getProxyType() + * @generated + * @ordered + */ + protected String proxyType = PROXY_TYPE_EDEFAULT; + + /** + * The cached value of the '{@link #getGroup() Group}' attribute list. + * + * + * @see #getGroup() + * @generated + * @ordered + */ + protected FeatureMap group = null; + + /** + * + * + * @generated + */ + protected GbeanRefTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + protected EClass eStaticClass() { + return NamingPackage.eINSTANCE.getGbeanRefType(); + } + + /** + * + * + * @generated + */ + public String getRefName() { + return refName; + } + + /** + * + * + * @generated + */ + public void setRefName(String newRefName) { + String oldRefName = refName; + refName = newRefName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_REF_TYPE__REF_NAME, oldRefName, refName)); + } + + /** + * + * + * @generated + */ + public String getRefType() { + return refType; + } + + /** + * + * + * @generated + */ + public void setRefType(String newRefType) { + String oldRefType = refType; + refType = newRefType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_REF_TYPE__REF_TYPE, oldRefType, refType)); + } + + /** + * + * + * @generated + */ + public String getProxyType() { + return proxyType; + } + + /** + * + * + * @generated + */ + public void setProxyType(String newProxyType) { + String oldProxyType = proxyType; + proxyType = newProxyType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE, oldProxyType, proxyType)); + } + + /** + * + * + * @generated + */ + public FeatureMap getGroup() { + if (group == null) { + group = new BasicFeatureMap(this, NamingPackage.GBEAN_REF_TYPE__GROUP); + } + return group; + } + + /** + * + * + * @generated + */ + public EList getDomain() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Domain()); + } + + /** + * + * + * @generated + */ + public EList getServer() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Server()); + } + + /** + * + * + * @generated + */ + public EList getApplication() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Application()); + } + + /** + * + * + * @generated + */ + public EList getModule() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Module()); + } + + /** + * + * + * @generated + */ + public EList getType() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Type()); + } + + /** + * + * + * @generated + */ + public EList getName() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_Name()); + } + + /** + * + * + * @generated + */ + public EList getTargetName() { + return ((FeatureMap)getGroup()).list(NamingPackage.eINSTANCE.getGbeanRefType_TargetName()); + } + + /** + * + * + * @generated + */ + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { + if (featureID >= 0) { + switch (eDerivedStructuralFeatureID(featureID, baseClass)) { + case NamingPackage.GBEAN_REF_TYPE__GROUP: + return ((InternalEList)getGroup()).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 NamingPackage.GBEAN_REF_TYPE__REF_NAME: + return getRefName(); + case NamingPackage.GBEAN_REF_TYPE__REF_TYPE: + return getRefType(); + case NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE: + return getProxyType(); + case NamingPackage.GBEAN_REF_TYPE__GROUP: + return getGroup(); + case NamingPackage.GBEAN_REF_TYPE__DOMAIN: + return getDomain(); + case NamingPackage.GBEAN_REF_TYPE__SERVER: + return getServer(); + case NamingPackage.GBEAN_REF_TYPE__APPLICATION: + return getApplication(); + case NamingPackage.GBEAN_REF_TYPE__MODULE: + return getModule(); + case NamingPackage.GBEAN_REF_TYPE__TYPE: + return getType(); + case NamingPackage.GBEAN_REF_TYPE__NAME: + return getName(); + case NamingPackage.GBEAN_REF_TYPE__TARGET_NAME: + return getTargetName(); + } + return eDynamicGet(eFeature, resolve); + } + + /** + * + * + * @generated + */ + public void eSet(EStructuralFeature eFeature, Object newValue) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_REF_TYPE__REF_NAME: + setRefName((String)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__REF_TYPE: + setRefType((String)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE: + setProxyType((String)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__GROUP: + getGroup().clear(); + getGroup().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__DOMAIN: + getDomain().clear(); + getDomain().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__SERVER: + getServer().clear(); + getServer().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__APPLICATION: + getApplication().clear(); + getApplication().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__MODULE: + getModule().clear(); + getModule().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__TYPE: + getType().clear(); + getType().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__NAME: + getName().clear(); + getName().addAll((Collection)newValue); + return; + case NamingPackage.GBEAN_REF_TYPE__TARGET_NAME: + getTargetName().clear(); + getTargetName().addAll((Collection)newValue); + return; + } + eDynamicSet(eFeature, newValue); + } + + /** + * + * + * @generated + */ + public void eUnset(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_REF_TYPE__REF_NAME: + setRefName(REF_NAME_EDEFAULT); + return; + case NamingPackage.GBEAN_REF_TYPE__REF_TYPE: + setRefType(REF_TYPE_EDEFAULT); + return; + case NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE: + setProxyType(PROXY_TYPE_EDEFAULT); + return; + case NamingPackage.GBEAN_REF_TYPE__GROUP: + getGroup().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__DOMAIN: + getDomain().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__SERVER: + getServer().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__APPLICATION: + getApplication().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__MODULE: + getModule().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__TYPE: + getType().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__NAME: + getName().clear(); + return; + case NamingPackage.GBEAN_REF_TYPE__TARGET_NAME: + getTargetName().clear(); + return; + } + eDynamicUnset(eFeature); + } + + /** + * + * + * @generated + */ + public boolean eIsSet(EStructuralFeature eFeature) { + switch (eDerivedStructuralFeatureID(eFeature)) { + case NamingPackage.GBEAN_REF_TYPE__REF_NAME: + return REF_NAME_EDEFAULT == null ? refName != null : !REF_NAME_EDEFAULT.equals(refName); + case NamingPackage.GBEAN_REF_TYPE__REF_TYPE: + return REF_TYPE_EDEFAULT == null ? refType != null : !REF_TYPE_EDEFAULT.equals(refType); + case NamingPackage.GBEAN_REF_TYPE__PROXY_TYPE: + return PROXY_TYPE_EDEFAULT == null ? proxyType != null : !PROXY_TYPE_EDEFAULT.equals(proxyType); + case NamingPackage.GBEAN_REF_TYPE__GROUP: + return group != null && !group.isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__DOMAIN: + return !getDomain().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__SERVER: + return !getServer().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__APPLICATION: + return !getApplication().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__MODULE: + return !getModule().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__TYPE: + return !getType().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__NAME: + return !getName().isEmpty(); + case NamingPackage.GBEAN_REF_TYPE__TARGET_NAME: + return !getTargetName().isEmpty(); + } + return eDynamicIsSet(eFeature); + } + + /** + * + * + * @generated + */ + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (refName: "); + result.append(refName); + result.append(", refType: "); + result.append(refType); + result.append(", proxyType: "); + result.append(proxyType); + result.append(", group: "); + result.append(group); + result.append(')'); + return result.toString(); + } + +} //GbeanRefTypeImpl Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingFactoryImpl.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingFactoryImpl.java?rev=280909&view=auto ============================================================================== --- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingFactoryImpl.java (added) +++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingFactoryImpl.java Wed Sep 14 11:59:30 2005 @@ -0,0 +1,216 @@ +/** + * 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.naming.impl; + +import org.apache.geronimo.xml.ns.naming.*; + +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 NamingFactoryImpl extends EFactoryImpl implements NamingFactory { + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public NamingFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case NamingPackage.CSS_TYPE: return createCssType(); + case NamingPackage.DOCUMENT_ROOT: return createDocumentRoot(); + case NamingPackage.EJB_LOCAL_REF_TYPE: return createEjbLocalRefType(); + case NamingPackage.EJB_REF_TYPE: return createEjbRefType(); + case NamingPackage.GBEAN_LOCATOR_TYPE: return createGbeanLocatorType(); + case NamingPackage.GBEAN_REF_TYPE: return createGbeanRefType(); + case NamingPackage.PORT_COMPLETION_TYPE: return createPortCompletionType(); + case NamingPackage.PORT_TYPE: return createPortType(); + case NamingPackage.RESOURCE_ENV_REF_TYPE: return createResourceEnvRefType(); + case NamingPackage.RESOURCE_LOCATOR_TYPE: return createResourceLocatorType(); + case NamingPackage.RESOURCE_REF_TYPE: return createResourceRefType(); + case NamingPackage.SERVICE_COMPLETION_TYPE: return createServiceCompletionType(); + case NamingPackage.SERVICE_REF_TYPE: return createServiceRefType(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public CssType createCssType() { + CssTypeImpl cssType = new CssTypeImpl(); + return cssType; + } + + /** + * + * + * @generated + */ + public DocumentRoot createDocumentRoot() { + DocumentRootImpl documentRoot = new DocumentRootImpl(); + return documentRoot; + } + + /** + * + * + * @generated + */ + public EjbLocalRefType createEjbLocalRefType() { + EjbLocalRefTypeImpl ejbLocalRefType = new EjbLocalRefTypeImpl(); + return ejbLocalRefType; + } + + /** + * + * + * @generated + */ + public EjbRefType createEjbRefType() { + EjbRefTypeImpl ejbRefType = new EjbRefTypeImpl(); + return ejbRefType; + } + + /** + * + * + * @generated + */ + public GbeanLocatorType createGbeanLocatorType() { + GbeanLocatorTypeImpl gbeanLocatorType = new GbeanLocatorTypeImpl(); + return gbeanLocatorType; + } + + /** + * + * + * @generated + */ + public GbeanRefType createGbeanRefType() { + GbeanRefTypeImpl gbeanRefType = new GbeanRefTypeImpl(); + return gbeanRefType; + } + + /** + * + * + * @generated + */ + public PortCompletionType createPortCompletionType() { + PortCompletionTypeImpl portCompletionType = new PortCompletionTypeImpl(); + return portCompletionType; + } + + /** + * + * + * @generated + */ + public PortType createPortType() { + PortTypeImpl portType = new PortTypeImpl(); + return portType; + } + + /** + * + * + * @generated + */ + public ResourceEnvRefType createResourceEnvRefType() { + ResourceEnvRefTypeImpl resourceEnvRefType = new ResourceEnvRefTypeImpl(); + return resourceEnvRefType; + } + + /** + * + * + * @generated + */ + public ResourceLocatorType createResourceLocatorType() { + ResourceLocatorTypeImpl resourceLocatorType = new ResourceLocatorTypeImpl(); + return resourceLocatorType; + } + + /** + * + * + * @generated + */ + public ResourceRefType createResourceRefType() { + ResourceRefTypeImpl resourceRefType = new ResourceRefTypeImpl(); + return resourceRefType; + } + + /** + * + * + * @generated + */ + public ServiceCompletionType createServiceCompletionType() { + ServiceCompletionTypeImpl serviceCompletionType = new ServiceCompletionTypeImpl(); + return serviceCompletionType; + } + + /** + * + * + * @generated + */ + public ServiceRefType createServiceRefType() { + ServiceRefTypeImpl serviceRefType = new ServiceRefTypeImpl(); + return serviceRefType; + } + + /** + * + * + * @generated + */ + public NamingPackage getNamingPackage() { + return (NamingPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + public static NamingPackage getPackage() { + return NamingPackage.eINSTANCE; + } + +} //NamingFactoryImpl