You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2005/09/14 21:01:03 UTC
svn commit: r280909 [20/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...
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationPackageImpl.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/j2ee/application/impl/ApplicationPackageImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationPackageImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationPackageImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,873 @@
+/**
+ * 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.j2ee.application.impl;
+
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+
+import org.apache.geronimo.xml.ns.deployment.impl.DeploymentPackageImpl;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationFactory;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
+import org.apache.geronimo.xml.ns.j2ee.application.DocumentRoot;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.ModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+
+import org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ApplicationPackageImpl extends EPackageImpl implements ApplicationPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass applicationTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass extModuleTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass moduleTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass pathTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass stringEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private ApplicationPackageImpl() {
+ super(eNS_URI, ApplicationFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this
+ * model, and for any others upon which it depends. Simple
+ * dependencies are satisfied by calling this method on all
+ * dependent packages before doing anything else. This method drives
+ * initialization for interdependent packages directly, in parallel
+ * with this package, itself.
+ * <p>Of this package and its interdependencies, all packages which
+ * have not yet been registered by their URI values are first created
+ * and registered. The packages are then initialized in two steps:
+ * meta-model objects for all of the packages are created before any
+ * are initialized, since one package's meta-model objects may refer to
+ * those of another.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static ApplicationPackage init() {
+ if (isInited) return (ApplicationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI);
+
+ // Obtain or create and register package
+ ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ApplicationPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ DeploymentPackageImpl.init();
+ SecurityPackageImpl.init();
+ XMLTypePackageImpl.init();
+
+ // Create package meta-data objects
+ theApplicationPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theApplicationPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theApplicationPackage.freeze();
+
+ return theApplicationPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getApplicationType() {
+ return applicationTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getApplicationType_Dependency() {
+ return (EReference)applicationTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getApplicationType_Module() {
+ return (EReference)applicationTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getApplicationType_ExtModule() {
+ return (EReference)applicationTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getApplicationType_Security() {
+ return (EReference)applicationTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getApplicationType_Gbean() {
+ return (EReference)applicationTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getApplicationType_ApplicationName() {
+ return (EAttribute)applicationTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getApplicationType_ConfigId() {
+ return (EAttribute)applicationTypeEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getApplicationType_ParentId() {
+ return (EAttribute)applicationTypeEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Application() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getExtModuleType() {
+ return extModuleTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getExtModuleType_Connector() {
+ return (EReference)extModuleTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getExtModuleType_Ejb() {
+ return (EReference)extModuleTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getExtModuleType_Java() {
+ return (EReference)extModuleTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getExtModuleType_Web() {
+ return (EReference)extModuleTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExtModuleType_InternalPath() {
+ return (EAttribute)extModuleTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExtModuleType_ExternalPath() {
+ return (EAttribute)extModuleTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExtModuleType_Any() {
+ return (EAttribute)extModuleTypeEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getModuleType() {
+ return moduleTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModuleType_Connector() {
+ return (EReference)moduleTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModuleType_Ejb() {
+ return (EReference)moduleTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModuleType_Java() {
+ return (EReference)moduleTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModuleType_Web() {
+ return (EReference)moduleTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModuleType_AltDd() {
+ return (EReference)moduleTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getModuleType_Any() {
+ return (EAttribute)moduleTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getPathType() {
+ return pathTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getString() {
+ return stringEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getString_Value() {
+ return (EAttribute)stringEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getString_Id() {
+ return (EAttribute)stringEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ApplicationFactory getApplicationFactory() {
+ return (ApplicationFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ applicationTypeEClass = createEClass(APPLICATION_TYPE);
+ createEReference(applicationTypeEClass, APPLICATION_TYPE__DEPENDENCY);
+ createEReference(applicationTypeEClass, APPLICATION_TYPE__MODULE);
+ createEReference(applicationTypeEClass, APPLICATION_TYPE__EXT_MODULE);
+ createEReference(applicationTypeEClass, APPLICATION_TYPE__SECURITY);
+ createEReference(applicationTypeEClass, APPLICATION_TYPE__GBEAN);
+ createEAttribute(applicationTypeEClass, APPLICATION_TYPE__APPLICATION_NAME);
+ createEAttribute(applicationTypeEClass, APPLICATION_TYPE__CONFIG_ID);
+ createEAttribute(applicationTypeEClass, APPLICATION_TYPE__PARENT_ID);
+
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__APPLICATION);
+
+ extModuleTypeEClass = createEClass(EXT_MODULE_TYPE);
+ createEReference(extModuleTypeEClass, EXT_MODULE_TYPE__CONNECTOR);
+ createEReference(extModuleTypeEClass, EXT_MODULE_TYPE__EJB);
+ createEReference(extModuleTypeEClass, EXT_MODULE_TYPE__JAVA);
+ createEReference(extModuleTypeEClass, EXT_MODULE_TYPE__WEB);
+ createEAttribute(extModuleTypeEClass, EXT_MODULE_TYPE__INTERNAL_PATH);
+ createEAttribute(extModuleTypeEClass, EXT_MODULE_TYPE__EXTERNAL_PATH);
+ createEAttribute(extModuleTypeEClass, EXT_MODULE_TYPE__ANY);
+
+ moduleTypeEClass = createEClass(MODULE_TYPE);
+ createEReference(moduleTypeEClass, MODULE_TYPE__CONNECTOR);
+ createEReference(moduleTypeEClass, MODULE_TYPE__EJB);
+ createEReference(moduleTypeEClass, MODULE_TYPE__JAVA);
+ createEReference(moduleTypeEClass, MODULE_TYPE__WEB);
+ createEReference(moduleTypeEClass, MODULE_TYPE__ALT_DD);
+ createEAttribute(moduleTypeEClass, MODULE_TYPE__ANY);
+
+ pathTypeEClass = createEClass(PATH_TYPE);
+
+ stringEClass = createEClass(STRING);
+ createEAttribute(stringEClass, STRING__VALUE);
+ createEAttribute(stringEClass, STRING__ID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ DeploymentPackageImpl theDeploymentPackage = (DeploymentPackageImpl)EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI);
+ SecurityPackageImpl theSecurityPackage = (SecurityPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SecurityPackage.eNS_URI);
+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Add supertypes to classes
+ pathTypeEClass.getESuperTypes().add(this.getString());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(applicationTypeEClass, ApplicationType.class, "ApplicationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getApplicationType_Dependency(), theDeploymentPackage.getDependencyType(), null, "dependency", null, 0, -1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getApplicationType_Module(), this.getModuleType(), null, "module", null, 0, -1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getApplicationType_ExtModule(), this.getExtModuleType(), null, "extModule", null, 0, -1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getApplicationType_Security(), theSecurityPackage.getSecurityType(), null, "security", null, 0, 1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getApplicationType_Gbean(), theDeploymentPackage.getGbeanType(), null, "gbean", null, 0, -1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getApplicationType_ApplicationName(), theXMLTypePackage.getString(), "applicationName", null, 0, 1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getApplicationType_ConfigId(), theXMLTypePackage.getString(), "configId", null, 1, 1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getApplicationType_ParentId(), theXMLTypePackage.getString(), "parentId", null, 0, 1, ApplicationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Application(), this.getApplicationType(), null, "application", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(extModuleTypeEClass, ExtModuleType.class, "ExtModuleType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getExtModuleType_Connector(), this.getPathType(), null, "connector", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExtModuleType_Ejb(), this.getPathType(), null, "ejb", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExtModuleType_Java(), this.getPathType(), null, "java", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExtModuleType_Web(), this.getPathType(), null, "web", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExtModuleType_InternalPath(), theXMLTypePackage.getToken(), "internalPath", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExtModuleType_ExternalPath(), theXMLTypePackage.getToken(), "externalPath", null, 0, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExtModuleType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 1, 1, ExtModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(moduleTypeEClass, ModuleType.class, "ModuleType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getModuleType_Connector(), this.getPathType(), null, "connector", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModuleType_Ejb(), this.getPathType(), null, "ejb", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModuleType_Java(), this.getPathType(), null, "java", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModuleType_Web(), this.getPathType(), null, "web", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModuleType_AltDd(), this.getPathType(), null, "altDd", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getModuleType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 0, 1, ModuleType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(pathTypeEClass, PathType.class, "PathType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(stringEClass, org.apache.geronimo.xml.ns.j2ee.application.String.class, "String", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getString_Value(), theXMLTypePackage.getToken(), "value", null, 0, 1, org.apache.geronimo.xml.ns.j2ee.application.String.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getString_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, org.apache.geronimo.xml.ns.j2ee.application.String.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (applicationTypeEClass,
+ source,
+ new String[] {
+ "name", "applicationType",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getApplicationType_Dependency(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "dependency",
+ "namespace", "http://geronimo.apache.org/xml/ns/deployment"
+ });
+ addAnnotation
+ (getApplicationType_Module(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "module",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getApplicationType_ExtModule(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "ext-module",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getApplicationType_Security(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "security",
+ "namespace", "http://geronimo.apache.org/xml/ns/security"
+ });
+ addAnnotation
+ (getApplicationType_Gbean(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "gbean",
+ "namespace", "http://geronimo.apache.org/xml/ns/deployment"
+ });
+ addAnnotation
+ (getApplicationType_ApplicationName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "application-name"
+ });
+ addAnnotation
+ (getApplicationType_ConfigId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "configId"
+ });
+ addAnnotation
+ (getApplicationType_ParentId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "parentId"
+ });
+ addAnnotation
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_Application(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "application",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (extModuleTypeEClass,
+ source,
+ new String[] {
+ "name", "ext-moduleType",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getExtModuleType_Connector(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "connector",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_Ejb(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "ejb",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_Java(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "java",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_Web(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "web",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_InternalPath(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "internal-path",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_ExternalPath(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "external-path",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExtModuleType_Any(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "wildcards", "##other",
+ "name", ":6",
+ "processing", "lax"
+ });
+ addAnnotation
+ (moduleTypeEClass,
+ source,
+ new String[] {
+ "name", "moduleType",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getModuleType_Connector(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "connector",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getModuleType_Ejb(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "ejb",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getModuleType_Java(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "java",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getModuleType_Web(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "web",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getModuleType_AltDd(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "alt-dd",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getModuleType_Any(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "wildcards", "##other",
+ "name", ":5",
+ "processing", "lax"
+ });
+ addAnnotation
+ (pathTypeEClass,
+ source,
+ new String[] {
+ "name", "pathType",
+ "kind", "simple"
+ });
+ addAnnotation
+ (stringEClass,
+ source,
+ new String[] {
+ "name", "string",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getString_Value(),
+ source,
+ new String[] {
+ "name", ":0",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getString_Id(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "id"
+ });
+ }
+
+} //ApplicationPackageImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationTypeImpl.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/j2ee/application/impl/ApplicationTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ApplicationTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,520 @@
+/**
+ * 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.j2ee.application.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.deployment.DependencyType;
+import org.apache.geronimo.xml.ns.deployment.GbeanType;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.ModuleType;
+
+import org.apache.geronimo.xml.ns.security.SecurityType;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getDependency <em>Dependency</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getModule <em>Module</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getExtModule <em>Ext Module</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getSecurity <em>Security</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getGbean <em>Gbean</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getApplicationName <em>Application Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getConfigId <em>Config Id</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ApplicationTypeImpl#getParentId <em>Parent Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ApplicationTypeImpl extends EObjectImpl implements ApplicationType {
+ /**
+ * The cached value of the '{@link #getDependency() <em>Dependency</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDependency()
+ * @generated
+ * @ordered
+ */
+ protected EList dependency = null;
+
+ /**
+ * The cached value of the '{@link #getModule() <em>Module</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModule()
+ * @generated
+ * @ordered
+ */
+ protected EList module = null;
+
+ /**
+ * The cached value of the '{@link #getExtModule() <em>Ext Module</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExtModule()
+ * @generated
+ * @ordered
+ */
+ protected EList extModule = null;
+
+ /**
+ * The cached value of the '{@link #getSecurity() <em>Security</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurity()
+ * @generated
+ * @ordered
+ */
+ protected SecurityType security = null;
+
+ /**
+ * The cached value of the '{@link #getGbean() <em>Gbean</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGbean()
+ * @generated
+ * @ordered
+ */
+ protected EList gbean = null;
+
+ /**
+ * The default value of the '{@link #getApplicationName() <em>Application Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplicationName()
+ * @generated
+ * @ordered
+ */
+ protected static final String APPLICATION_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getApplicationName() <em>Application Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplicationName()
+ * @generated
+ * @ordered
+ */
+ protected String applicationName = APPLICATION_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getConfigId() <em>Config Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getConfigId()
+ * @generated
+ * @ordered
+ */
+ protected static final String CONFIG_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getConfigId() <em>Config Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getConfigId()
+ * @generated
+ * @ordered
+ */
+ protected String configId = CONFIG_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getParentId() <em>Parent Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getParentId()
+ * @generated
+ * @ordered
+ */
+ protected static final String PARENT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getParentId() <em>Parent Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getParentId()
+ * @generated
+ * @ordered
+ */
+ protected String parentId = PARENT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ApplicationTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ApplicationPackage.eINSTANCE.getApplicationType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getDependency() {
+ if (dependency == null) {
+ dependency = new EObjectContainmentEList(DependencyType.class, this, ApplicationPackage.APPLICATION_TYPE__DEPENDENCY);
+ }
+ return dependency;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getModule() {
+ if (module == null) {
+ module = new EObjectContainmentEList(ModuleType.class, this, ApplicationPackage.APPLICATION_TYPE__MODULE);
+ }
+ return module;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getExtModule() {
+ if (extModule == null) {
+ extModule = new EObjectContainmentEList(ExtModuleType.class, this, ApplicationPackage.APPLICATION_TYPE__EXT_MODULE);
+ }
+ return extModule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SecurityType getSecurity() {
+ return security;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
+ SecurityType oldSecurity = security;
+ security = newSecurity;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION_TYPE__SECURITY, oldSecurity, newSecurity);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSecurity(SecurityType newSecurity) {
+ if (newSecurity != security) {
+ NotificationChain msgs = null;
+ if (security != null)
+ msgs = ((InternalEObject)security).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.APPLICATION_TYPE__SECURITY, null, msgs);
+ if (newSecurity != null)
+ msgs = ((InternalEObject)newSecurity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.APPLICATION_TYPE__SECURITY, null, msgs);
+ msgs = basicSetSecurity(newSecurity, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION_TYPE__SECURITY, newSecurity, newSecurity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getGbean() {
+ if (gbean == null) {
+ gbean = new EObjectContainmentEList(GbeanType.class, this, ApplicationPackage.APPLICATION_TYPE__GBEAN);
+ }
+ return gbean;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getApplicationName() {
+ return applicationName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setApplicationName(String newApplicationName) {
+ String oldApplicationName = applicationName;
+ applicationName = newApplicationName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION_TYPE__APPLICATION_NAME, oldApplicationName, applicationName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getConfigId() {
+ return configId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setConfigId(String newConfigId) {
+ String oldConfigId = configId;
+ configId = newConfigId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION_TYPE__CONFIG_ID, oldConfigId, configId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getParentId() {
+ return parentId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentId(String newParentId) {
+ String oldParentId = parentId;
+ parentId = newParentId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.APPLICATION_TYPE__PARENT_ID, oldParentId, parentId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+ if (featureID >= 0) {
+ switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+ case ApplicationPackage.APPLICATION_TYPE__DEPENDENCY:
+ return ((InternalEList)getDependency()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.APPLICATION_TYPE__MODULE:
+ return ((InternalEList)getModule()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.APPLICATION_TYPE__EXT_MODULE:
+ return ((InternalEList)getExtModule()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.APPLICATION_TYPE__SECURITY:
+ return basicSetSecurity(null, msgs);
+ case ApplicationPackage.APPLICATION_TYPE__GBEAN:
+ return ((InternalEList)getGbean()).basicRemove(otherEnd, msgs);
+ default:
+ return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+ }
+ }
+ return eBasicSetContainer(null, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.APPLICATION_TYPE__DEPENDENCY:
+ return getDependency();
+ case ApplicationPackage.APPLICATION_TYPE__MODULE:
+ return getModule();
+ case ApplicationPackage.APPLICATION_TYPE__EXT_MODULE:
+ return getExtModule();
+ case ApplicationPackage.APPLICATION_TYPE__SECURITY:
+ return getSecurity();
+ case ApplicationPackage.APPLICATION_TYPE__GBEAN:
+ return getGbean();
+ case ApplicationPackage.APPLICATION_TYPE__APPLICATION_NAME:
+ return getApplicationName();
+ case ApplicationPackage.APPLICATION_TYPE__CONFIG_ID:
+ return getConfigId();
+ case ApplicationPackage.APPLICATION_TYPE__PARENT_ID:
+ return getParentId();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.APPLICATION_TYPE__DEPENDENCY:
+ getDependency().clear();
+ getDependency().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__MODULE:
+ getModule().clear();
+ getModule().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__EXT_MODULE:
+ getExtModule().clear();
+ getExtModule().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__SECURITY:
+ setSecurity((SecurityType)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__GBEAN:
+ getGbean().clear();
+ getGbean().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__APPLICATION_NAME:
+ setApplicationName((String)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__CONFIG_ID:
+ setConfigId((String)newValue);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__PARENT_ID:
+ setParentId((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.APPLICATION_TYPE__DEPENDENCY:
+ getDependency().clear();
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__MODULE:
+ getModule().clear();
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__EXT_MODULE:
+ getExtModule().clear();
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__SECURITY:
+ setSecurity((SecurityType)null);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__GBEAN:
+ getGbean().clear();
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__APPLICATION_NAME:
+ setApplicationName(APPLICATION_NAME_EDEFAULT);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__CONFIG_ID:
+ setConfigId(CONFIG_ID_EDEFAULT);
+ return;
+ case ApplicationPackage.APPLICATION_TYPE__PARENT_ID:
+ setParentId(PARENT_ID_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.APPLICATION_TYPE__DEPENDENCY:
+ return dependency != null && !dependency.isEmpty();
+ case ApplicationPackage.APPLICATION_TYPE__MODULE:
+ return module != null && !module.isEmpty();
+ case ApplicationPackage.APPLICATION_TYPE__EXT_MODULE:
+ return extModule != null && !extModule.isEmpty();
+ case ApplicationPackage.APPLICATION_TYPE__SECURITY:
+ return security != null;
+ case ApplicationPackage.APPLICATION_TYPE__GBEAN:
+ return gbean != null && !gbean.isEmpty();
+ case ApplicationPackage.APPLICATION_TYPE__APPLICATION_NAME:
+ return APPLICATION_NAME_EDEFAULT == null ? applicationName != null : !APPLICATION_NAME_EDEFAULT.equals(applicationName);
+ case ApplicationPackage.APPLICATION_TYPE__CONFIG_ID:
+ return CONFIG_ID_EDEFAULT == null ? configId != null : !CONFIG_ID_EDEFAULT.equals(configId);
+ case ApplicationPackage.APPLICATION_TYPE__PARENT_ID:
+ return PARENT_ID_EDEFAULT == null ? parentId != null : !PARENT_ID_EDEFAULT.equals(parentId);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (applicationName: ");
+ result.append(applicationName);
+ result.append(", configId: ");
+ result.append(configId);
+ result.append(", parentId: ");
+ result.append(parentId);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ApplicationTypeImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/DocumentRootImpl.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/j2ee/application/impl/DocumentRootImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/DocumentRootImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/DocumentRootImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,294 @@
+/**
+ * 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.j2ee.application.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationType;
+import org.apache.geronimo.xml.ns.j2ee.application.DocumentRoot;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.DocumentRootImpl#getApplication <em>Application</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed = null;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap xMLNSPrefixMap = null;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap xSISchemaLocation = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ApplicationPackage.eINSTANCE.getDocumentRoot();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, ApplicationPackage.DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ApplicationType getApplication() {
+ return (ApplicationType)getMixed().get(ApplicationPackage.eINSTANCE.getDocumentRoot_Application(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetApplication(ApplicationType newApplication, NotificationChain msgs) {
+ return ((FeatureMap.Internal)getMixed()).basicAdd(ApplicationPackage.eINSTANCE.getDocumentRoot_Application(), newApplication, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setApplication(ApplicationType newApplication) {
+ ((FeatureMap.Internal)getMixed()).set(ApplicationPackage.eINSTANCE.getDocumentRoot_Application(), newApplication);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+ if (featureID >= 0) {
+ switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+ case ApplicationPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case ApplicationPackage.DOCUMENT_ROOT__APPLICATION:
+ return basicSetApplication(null, msgs);
+ default:
+ return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+ }
+ }
+ return eBasicSetContainer(null, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.DOCUMENT_ROOT__MIXED:
+ return getMixed();
+ case ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return getXMLNSPrefixMap();
+ case ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return getXSISchemaLocation();
+ case ApplicationPackage.DOCUMENT_ROOT__APPLICATION:
+ return getApplication();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ getMixed().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ getXMLNSPrefixMap().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ getXSISchemaLocation().addAll((Collection)newValue);
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__APPLICATION:
+ setApplication((ApplicationType)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case ApplicationPackage.DOCUMENT_ROOT__APPLICATION:
+ setApplication((ApplicationType)null);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case ApplicationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case ApplicationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case ApplicationPackage.DOCUMENT_ROOT__APPLICATION:
+ return getApplication() != null;
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DocumentRootImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.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/j2ee/application/impl/ExtModuleTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/j2ee/application/impl/ExtModuleTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,551 @@
+/**
+ * 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.j2ee.application.impl;
+
+import java.util.Collection;
+
+import org.apache.geronimo.xml.ns.j2ee.application.ApplicationPackage;
+import org.apache.geronimo.xml.ns.j2ee.application.ExtModuleType;
+import org.apache.geronimo.xml.ns.j2ee.application.PathType;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Ext Module Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getConnector <em>Connector</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getEjb <em>Ejb</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getJava <em>Java</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getWeb <em>Web</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getInternalPath <em>Internal Path</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getExternalPath <em>External Path</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.j2ee.application.impl.ExtModuleTypeImpl#getAny <em>Any</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ExtModuleTypeImpl extends EObjectImpl implements ExtModuleType {
+ /**
+ * The cached value of the '{@link #getConnector() <em>Connector</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getConnector()
+ * @generated
+ * @ordered
+ */
+ protected PathType connector = null;
+
+ /**
+ * The cached value of the '{@link #getEjb() <em>Ejb</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEjb()
+ * @generated
+ * @ordered
+ */
+ protected PathType ejb = null;
+
+ /**
+ * The cached value of the '{@link #getJava() <em>Java</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getJava()
+ * @generated
+ * @ordered
+ */
+ protected PathType java = null;
+
+ /**
+ * The cached value of the '{@link #getWeb() <em>Web</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getWeb()
+ * @generated
+ * @ordered
+ */
+ protected PathType web = null;
+
+ /**
+ * The default value of the '{@link #getInternalPath() <em>Internal Path</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInternalPath()
+ * @generated
+ * @ordered
+ */
+ protected static final String INTERNAL_PATH_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInternalPath() <em>Internal Path</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInternalPath()
+ * @generated
+ * @ordered
+ */
+ protected String internalPath = INTERNAL_PATH_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExternalPath() <em>External Path</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternalPath()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXTERNAL_PATH_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExternalPath() <em>External Path</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternalPath()
+ * @generated
+ * @ordered
+ */
+ protected String externalPath = EXTERNAL_PATH_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAny()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap any = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExtModuleTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return ApplicationPackage.eINSTANCE.getExtModuleType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PathType getConnector() {
+ return connector;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetConnector(PathType newConnector, NotificationChain msgs) {
+ PathType oldConnector = connector;
+ connector = newConnector;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, oldConnector, newConnector);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setConnector(PathType newConnector) {
+ if (newConnector != connector) {
+ NotificationChain msgs = null;
+ if (connector != null)
+ msgs = ((InternalEObject)connector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, null, msgs);
+ if (newConnector != null)
+ msgs = ((InternalEObject)newConnector).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, null, msgs);
+ msgs = basicSetConnector(newConnector, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR, newConnector, newConnector));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PathType getEjb() {
+ return ejb;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetEjb(PathType newEjb, NotificationChain msgs) {
+ PathType oldEjb = ejb;
+ ejb = newEjb;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EJB, oldEjb, newEjb);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEjb(PathType newEjb) {
+ if (newEjb != ejb) {
+ NotificationChain msgs = null;
+ if (ejb != null)
+ msgs = ((InternalEObject)ejb).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__EJB, null, msgs);
+ if (newEjb != null)
+ msgs = ((InternalEObject)newEjb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__EJB, null, msgs);
+ msgs = basicSetEjb(newEjb, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EJB, newEjb, newEjb));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PathType getJava() {
+ return java;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetJava(PathType newJava, NotificationChain msgs) {
+ PathType oldJava = java;
+ java = newJava;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__JAVA, oldJava, newJava);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setJava(PathType newJava) {
+ if (newJava != java) {
+ NotificationChain msgs = null;
+ if (java != null)
+ msgs = ((InternalEObject)java).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__JAVA, null, msgs);
+ if (newJava != null)
+ msgs = ((InternalEObject)newJava).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__JAVA, null, msgs);
+ msgs = basicSetJava(newJava, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__JAVA, newJava, newJava));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PathType getWeb() {
+ return web;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetWeb(PathType newWeb, NotificationChain msgs) {
+ PathType oldWeb = web;
+ web = newWeb;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__WEB, oldWeb, newWeb);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setWeb(PathType newWeb) {
+ if (newWeb != web) {
+ NotificationChain msgs = null;
+ if (web != null)
+ msgs = ((InternalEObject)web).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__WEB, null, msgs);
+ if (newWeb != null)
+ msgs = ((InternalEObject)newWeb).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationPackage.EXT_MODULE_TYPE__WEB, null, msgs);
+ msgs = basicSetWeb(newWeb, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__WEB, newWeb, newWeb));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getInternalPath() {
+ return internalPath;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInternalPath(String newInternalPath) {
+ String oldInternalPath = internalPath;
+ internalPath = newInternalPath;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH, oldInternalPath, internalPath));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getExternalPath() {
+ return externalPath;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExternalPath(String newExternalPath) {
+ String oldExternalPath = externalPath;
+ externalPath = newExternalPath;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH, oldExternalPath, externalPath));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getAny() {
+ if (any == null) {
+ any = new BasicFeatureMap(this, ApplicationPackage.EXT_MODULE_TYPE__ANY);
+ }
+ return any;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+ if (featureID >= 0) {
+ switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+ case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+ return basicSetConnector(null, msgs);
+ case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+ return basicSetEjb(null, msgs);
+ case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+ return basicSetJava(null, msgs);
+ case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+ return basicSetWeb(null, msgs);
+ case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+ return ((InternalEList)getAny()).basicRemove(otherEnd, msgs);
+ default:
+ return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+ }
+ }
+ return eBasicSetContainer(null, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+ return getConnector();
+ case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+ return getEjb();
+ case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+ return getJava();
+ case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+ return getWeb();
+ case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+ return getInternalPath();
+ case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+ return getExternalPath();
+ case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+ return getAny();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+ setConnector((PathType)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+ setEjb((PathType)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+ setJava((PathType)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+ setWeb((PathType)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+ setInternalPath((String)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+ setExternalPath((String)newValue);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+ getAny().clear();
+ getAny().addAll((Collection)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+ setConnector((PathType)null);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+ setEjb((PathType)null);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+ setJava((PathType)null);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+ setWeb((PathType)null);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+ setInternalPath(INTERNAL_PATH_EDEFAULT);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+ setExternalPath(EXTERNAL_PATH_EDEFAULT);
+ return;
+ case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+ getAny().clear();
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case ApplicationPackage.EXT_MODULE_TYPE__CONNECTOR:
+ return connector != null;
+ case ApplicationPackage.EXT_MODULE_TYPE__EJB:
+ return ejb != null;
+ case ApplicationPackage.EXT_MODULE_TYPE__JAVA:
+ return java != null;
+ case ApplicationPackage.EXT_MODULE_TYPE__WEB:
+ return web != null;
+ case ApplicationPackage.EXT_MODULE_TYPE__INTERNAL_PATH:
+ return INTERNAL_PATH_EDEFAULT == null ? internalPath != null : !INTERNAL_PATH_EDEFAULT.equals(internalPath);
+ case ApplicationPackage.EXT_MODULE_TYPE__EXTERNAL_PATH:
+ return EXTERNAL_PATH_EDEFAULT == null ? externalPath != null : !EXTERNAL_PATH_EDEFAULT.equals(externalPath);
+ case ApplicationPackage.EXT_MODULE_TYPE__ANY:
+ return any != null && !any.isEmpty();
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (internalPath: ");
+ result.append(internalPath);
+ result.append(", externalPath: ");
+ result.append(externalPath);
+ result.append(", any: ");
+ result.append(any);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ExtModuleTypeImpl