/******************************************************************************* * Copyright (c) 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jst.javaee.applicationclient.internal.impl; 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.namespace.XMLNamespacePackage; import org.eclipse.emf.ecore.xml.type.XMLTypePackage; import org.eclipse.jst.j2ee.core.internal.plugin.J2EECorePlugin; import org.eclipse.jst.j2ee.internal.J2EEInit; import org.eclipse.jst.javaee.applicationclient.ApplicationClient; import org.eclipse.jst.javaee.applicationclient.ApplicationClientDeploymentDescriptor; import org.eclipse.jst.javaee.applicationclient.ApplicationclientFactory; import org.eclipse.jst.javaee.applicationclient.internal.metadata.ApplicationclientPackage; import org.eclipse.jst.javaee.core.internal.metadata.JavaeePackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class ApplicationclientPackageImpl extends EPackageImpl implements ApplicationclientPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass applicationClientEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass applicationClientDeploymentDescriptorEClass = 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.eclipse.jst.javaee.applicationclient.internal.metadata.ApplicationclientPackage#eNS_URI * @see #init() * @generated */ private ApplicationclientPackageImpl() { super(eNS_URI, ApplicationclientFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private volatile static boolean isInited = false; /** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link ApplicationclientPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static ApplicationclientPackage init() { if (isInited) return (ApplicationclientPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI); // Obtain or create and register package ApplicationclientPackageImpl theApplicationclientPackage = (ApplicationclientPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplicationclientPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplicationclientPackageImpl()); isInited = true; // Initialize simple dependencies XMLNamespacePackage.eINSTANCE.eClass(); XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theApplicationclientPackage.createPackageContents(); // Initialize created meta-data theApplicationclientPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theApplicationclientPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(ApplicationclientPackage.eNS_URI, theApplicationclientPackage); EPackage.Registry.INSTANCE.put(ApplicationclientPackage.eNS_URI2, theApplicationclientPackage); EPackage.Registry.INSTANCE.put(ApplicationclientPackage.eNS_URI3, theApplicationclientPackage); J2EEInit.initEMFModels(); return theApplicationclientPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getApplicationClient() { return applicationClientEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClient_ModuleName() { return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_Descriptions() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_DisplayNames() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_Icons() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_EnvEntries() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_EjbRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_ServiceRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_ResourceRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_ResourceEnvRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(8); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_MessageDestinationRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(9); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_PersistenceUnitRefs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(10); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_PostConstructs() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(11); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_PreDestroys() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(12); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClient_CallbackHandler() { return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(13); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_MessageDestinations() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(14); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_DataSource() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(15); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_JmsConnectionFactory() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(16); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_JmsDestination() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(17); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_MailSession() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(18); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_ConnectionFactory() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(19); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClient_AdministeredObject() { return (EReference)applicationClientEClass.getEStructuralFeatures().get(20); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClient_Id() { return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(21); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClient_MetadataComplete() { return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(22); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClient_Version() { return (EAttribute)applicationClientEClass.getEStructuralFeatures().get(23); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getApplicationClientDeploymentDescriptor() { return applicationClientDeploymentDescriptorEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getApplicationClientDeploymentDescriptor_Mixed() { return (EAttribute)applicationClientDeploymentDescriptorEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClientDeploymentDescriptor_XMLNSPrefixMap() { return (EReference)applicationClientDeploymentDescriptorEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClientDeploymentDescriptor_XSISchemaLocation() { return (EReference)applicationClientDeploymentDescriptorEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getApplicationClientDeploymentDescriptor_ApplicationClient() { return (EReference)applicationClientDeploymentDescriptorEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ApplicationclientFactory getApplicationclientFactory() { return (ApplicationclientFactory)getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private volatile 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 applicationClientEClass = createEClass(APPLICATION_CLIENT); createEAttribute(applicationClientEClass, APPLICATION_CLIENT__MODULE_NAME); createEReference(applicationClientEClass, APPLICATION_CLIENT__DESCRIPTIONS); createEReference(applicationClientEClass, APPLICATION_CLIENT__DISPLAY_NAMES); createEReference(applicationClientEClass, APPLICATION_CLIENT__ICONS); createEReference(applicationClientEClass, APPLICATION_CLIENT__ENV_ENTRIES); createEReference(applicationClientEClass, APPLICATION_CLIENT__EJB_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__SERVICE_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__RESOURCE_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__RESOURCE_ENV_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__MESSAGE_DESTINATION_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__PERSISTENCE_UNIT_REFS); createEReference(applicationClientEClass, APPLICATION_CLIENT__POST_CONSTRUCTS); createEReference(applicationClientEClass, APPLICATION_CLIENT__PRE_DESTROYS); createEAttribute(applicationClientEClass, APPLICATION_CLIENT__CALLBACK_HANDLER); createEReference(applicationClientEClass, APPLICATION_CLIENT__MESSAGE_DESTINATIONS); createEReference(applicationClientEClass, APPLICATION_CLIENT__DATA_SOURCE); createEReference(applicationClientEClass, APPLICATION_CLIENT__JMS_CONNECTION_FACTORY); createEReference(applicationClientEClass, APPLICATION_CLIENT__JMS_DESTINATION); createEReference(applicationClientEClass, APPLICATION_CLIENT__MAIL_SESSION); createEReference(applicationClientEClass, APPLICATION_CLIENT__CONNECTION_FACTORY); createEReference(applicationClientEClass, APPLICATION_CLIENT__ADMINISTERED_OBJECT); createEAttribute(applicationClientEClass, APPLICATION_CLIENT__ID); createEAttribute(applicationClientEClass, APPLICATION_CLIENT__METADATA_COMPLETE); createEAttribute(applicationClientEClass, APPLICATION_CLIENT__VERSION); applicationClientDeploymentDescriptorEClass = createEClass(APPLICATION_CLIENT_DEPLOYMENT_DESCRIPTOR); createEAttribute(applicationClientDeploymentDescriptorEClass, APPLICATION_CLIENT_DEPLOYMENT_DESCRIPTOR__MIXED); createEReference(applicationClientDeploymentDescriptorEClass, APPLICATION_CLIENT_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP); createEReference(applicationClientDeploymentDescriptorEClass, APPLICATION_CLIENT_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION); createEReference(applicationClientDeploymentDescriptorEClass, APPLICATION_CLIENT_DEPLOYMENT_DESCRIPTOR__APPLICATION_CLIENT); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private volatile 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 XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); JavaeePackage theJavaeePackage = (JavaeePackage)(EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) instanceof JavaeePackage ? EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) : JavaeePackage.eINSTANCE); // Create type parameters // Set bounds for type parameters boolean hasLock = false; try { hasLock = J2EEInit.aquireInitializePackageContentsLock(); } catch (InterruptedException e) { J2EECorePlugin.logError(e); } try{ // Add supertypes to classes // Initialize classes and features; add operations and parameters initEClass(applicationClientEClass, ApplicationClient.class, "ApplicationClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getApplicationClient_ModuleName(), theXMLTypePackage.getToken(), "moduleName", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_EnvEntries(), theJavaeePackage.getEnvEntry(), null, "envEntries", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_EjbRefs(), theJavaeePackage.getEjbRef(), null, "ejbRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_ServiceRefs(), theJavaeePackage.getServiceRef(), null, "serviceRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_ResourceRefs(), theJavaeePackage.getResourceRef(), null, "resourceRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_ResourceEnvRefs(), theJavaeePackage.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_MessageDestinationRefs(), theJavaeePackage.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_PersistenceUnitRefs(), theJavaeePackage.getPersistenceUnitRef(), null, "persistenceUnitRefs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_PostConstructs(), theJavaeePackage.getLifecycleCallback(), null, "postConstructs", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_PreDestroys(), theJavaeePackage.getLifecycleCallback(), null, "preDestroys", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getApplicationClient_CallbackHandler(), theJavaeePackage.getFullyQualifiedClassType(), "callbackHandler", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_MessageDestinations(), theJavaeePackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_DataSource(), theJavaeePackage.getDataSourceType(), null, "dataSource", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_JmsConnectionFactory(), theJavaeePackage.getJmsConnectionFactoryType(), null, "jmsConnectionFactory", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_JmsDestination(), theJavaeePackage.getJmsDestinationType(), null, "jmsDestination", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_MailSession(), theJavaeePackage.getMailSessionType(), null, "mailSession", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_ConnectionFactory(), theJavaeePackage.getConnectionFactoryResourceType(), null, "connectionFactory", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClient_AdministeredObject(), theJavaeePackage.getAdministeredObjectType(), null, "administeredObject", null, 0, -1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getApplicationClient_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getApplicationClient_MetadataComplete(), theXMLTypePackage.getBoolean(), "metadataComplete", null, 0, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEAttribute(getApplicationClient_Version(), theJavaeePackage.getDeweyVersionType(), "version", "7", 1, 1, ApplicationClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ initEClass(applicationClientDeploymentDescriptorEClass, ApplicationClientDeploymentDescriptor.class, "ApplicationClientDeploymentDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getApplicationClientDeploymentDescriptor_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ initEReference(getApplicationClientDeploymentDescriptor_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); //$NON-NLS-1$ initEReference(getApplicationClientDeploymentDescriptor_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); //$NON-NLS-1$ initEReference(getApplicationClientDeploymentDescriptor_ApplicationClient(), this.getApplicationClient(), null, "applicationClient", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); }finally{ if( hasLock ) J2EEInit.releaseInitializePackageContentsLock(); } } /** * 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"; //$NON-NLS-1$ addAnnotation (applicationClientEClass, source, new String[] { "name", "application-clientType", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_ModuleName(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "module-name", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_Descriptions(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "description", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "http://xmlns.jcp.org/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_DisplayNames(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "http://xmlns.jcp.org/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_Icons(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "icon", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "http://xmlns.jcp.org/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_EnvEntries(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "env-entry", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_EjbRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "ejb-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_ServiceRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "service-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "http://xmlns.jcp.org/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_ResourceRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "resource-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_ResourceEnvRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "resource-env-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_MessageDestinationRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "message-destination-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_PersistenceUnitRefs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "persistence-unit-ref", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_PostConstructs(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "post-construct", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_PreDestroys(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "pre-destroy", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_CallbackHandler(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "callback-handler", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_MessageDestinations(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "message-destination", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_DataSource(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "data-source", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_JmsConnectionFactory(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "jms-connection-factory", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_JmsDestination(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "jms-destination", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_MailSession(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "mail-session", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_ConnectionFactory(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "connection-factory", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_AdministeredObject(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "administered-object", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_Id(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "id" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_MetadataComplete(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "metadata-complete" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClient_Version(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "version" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (applicationClientDeploymentDescriptorEClass, source, new String[] { "name", "", //$NON-NLS-1$ //$NON-NLS-2$ "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClientDeploymentDescriptor_Mixed(), source, new String[] { "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$ "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClientDeploymentDescriptor_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClientDeploymentDescriptor_XSISchemaLocation(), source, new String[] { "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$ "name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$ }); addAnnotation (getApplicationClientDeploymentDescriptor_ApplicationClient(), source, new String[] { "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$ "name", "application-client", //$NON-NLS-1$ //$NON-NLS-2$ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ }); } @Override public void freeze() { // since EClassImpl.freeze() does a clear() on all of the subClasses, we need to protect initializePackageContents() against it. boolean hasLock = false; try { hasLock = J2EEInit.aquireInitializePackageContentsLock(); } catch (InterruptedException e) { J2EECorePlugin.logError(e); } finally { super.freeze(); if( hasLock ) J2EEInit.releaseInitializePackageContentsLock(); } } } //ApplicationclientPackageImpl