blob: bfe8df8bbb6235f4711c3880112ca6784e77098e [file] [log] [blame]
/*******************************************************************************
* 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.application.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.javaee.application.Application;
import org.eclipse.jst.javaee.application.ApplicationDeploymentDescriptor;
import org.eclipse.jst.javaee.application.ApplicationFactory;
import org.eclipse.jst.javaee.application.Module;
import org.eclipse.jst.javaee.application.Web;
import org.eclipse.jst.javaee.application.internal.metadata.ApplicationPackage;
import org.eclipse.jst.javaee.applicationclient.internal.impl.ApplicationclientPackageImpl;
import org.eclipse.jst.javaee.applicationclient.internal.metadata.ApplicationclientPackage;
import org.eclipse.jst.javaee.core.internal.impl.JavaeePackageImpl;
import org.eclipse.jst.javaee.core.internal.metadata.JavaeePackage;
import org.eclipse.jst.javaee.ejb.internal.impl.EjbPackageImpl;
import org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage;
import org.eclipse.jst.javaee.jca.internal.impl.JcaPackageImpl;
import org.eclipse.jst.javaee.jca.internal.metadata.JcaPackage;
import org.eclipse.jst.javaee.jsp.internal.impl.JspPackageImpl;
import org.eclipse.jst.javaee.jsp.internal.metadata.JspPackage;
import org.eclipse.jst.javaee.web.internal.impl.WebPackageImpl;
import org.eclipse.jst.javaee.web.internal.metadata.WebPackage;
import org.eclipse.jst.javaee.webapp.internal.impl.WebappPackageImpl;
import org.eclipse.jst.javaee.webapp.internal.metadata.WebappPackage;
import org.eclipse.jst.javaee.webfragment.internal.impl.WebfragmentPackageImpl;
import org.eclipse.jst.javaee.webfragment.internal.metadata.WebfragmentPackage;
/**
* <!-- 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 applicationEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass applicationDeploymentDescriptorEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass moduleEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass webEClass = 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.application.internal.metadata.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.
*
* <p>This method is used to initialize {@link ApplicationPackage#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 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.get(eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplicationPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLNamespacePackage.eINSTANCE.eClass();
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
JavaeePackageImpl theJavaeePackage = (JavaeePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) instanceof JavaeePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI) : JavaeePackage.eINSTANCE);
ApplicationclientPackageImpl theApplicationclientPackage = (ApplicationclientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) instanceof ApplicationclientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationclientPackage.eNS_URI) : ApplicationclientPackage.eINSTANCE);
JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
WebPackageImpl theWebPackage = (WebPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) instanceof WebPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI) : WebPackage.eINSTANCE);
WebappPackageImpl theWebappPackage = (WebappPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebappPackage.eNS_URI) instanceof WebappPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebappPackage.eNS_URI) : WebappPackage.eINSTANCE);
WebfragmentPackageImpl theWebfragmentPackage = (WebfragmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebfragmentPackage.eNS_URI) instanceof WebfragmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebfragmentPackage.eNS_URI) : WebfragmentPackage.eINSTANCE);
// Create package meta-data objects
theApplicationPackage.createPackageContents();
theJavaeePackage.createPackageContents();
theApplicationclientPackage.createPackageContents();
theJcaPackage.createPackageContents();
theEjbPackage.createPackageContents();
theJspPackage.createPackageContents();
theWebPackage.createPackageContents();
theWebappPackage.createPackageContents();
theWebfragmentPackage.createPackageContents();
// Initialize created meta-data
theApplicationPackage.initializePackageContents();
theJavaeePackage.initializePackageContents();
theApplicationclientPackage.initializePackageContents();
theJcaPackage.initializePackageContents();
theEjbPackage.initializePackageContents();
theJspPackage.initializePackageContents();
theWebPackage.initializePackageContents();
theWebappPackage.initializePackageContents();
theWebfragmentPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theApplicationPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(ApplicationPackage.eNS_URI, theApplicationPackage);
EPackage.Registry.INSTANCE.put(ApplicationPackage.eNS_URI2, theApplicationPackage);
return theApplicationPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getApplication() {
return applicationEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplication_ApplicationName() {
return (EAttribute)applicationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_Descriptions() {
return (EReference)applicationEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_DisplayNames() {
return (EReference)applicationEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_Icons() {
return (EReference)applicationEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplication_InitializeInOrder() {
return (EAttribute)applicationEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_Modules() {
return (EReference)applicationEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_SecurityRoles() {
return (EReference)applicationEClass.getEStructuralFeatures().get(6);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplication_LibraryDirectory() {
return (EAttribute)applicationEClass.getEStructuralFeatures().get(7);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_EnvEntry() {
return (EReference)applicationEClass.getEStructuralFeatures().get(8);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_EjbRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(9);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_EjbLocalRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(10);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_ServiceRefs() {
return (EReference)applicationEClass.getEStructuralFeatures().get(11);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_ResourceRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(12);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_ResourceEnvRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(13);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_MessageDestinationRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(14);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_PersistenceContextRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(15);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_PersistenceUnitRef() {
return (EReference)applicationEClass.getEStructuralFeatures().get(16);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_MessageDestination() {
return (EReference)applicationEClass.getEStructuralFeatures().get(17);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplication_DataSource() {
return (EReference)applicationEClass.getEStructuralFeatures().get(18);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplication_Id() {
return (EAttribute)applicationEClass.getEStructuralFeatures().get(19);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplication_Version() {
return (EAttribute)applicationEClass.getEStructuralFeatures().get(20);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getApplicationDeploymentDescriptor() {
return applicationDeploymentDescriptorEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getApplicationDeploymentDescriptor_Mixed() {
return (EAttribute)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplicationDeploymentDescriptor_XMLNSPrefixMap() {
return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplicationDeploymentDescriptor_XSISchemaLocation() {
return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getApplicationDeploymentDescriptor_Application() {
return (EReference)applicationDeploymentDescriptorEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getModule() {
return moduleEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getModule_Connector() {
return (EAttribute)moduleEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getModule_Ejb() {
return (EAttribute)moduleEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getModule_Java() {
return (EAttribute)moduleEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getModule_Web() {
return (EReference)moduleEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getModule_AltDd() {
return (EAttribute)moduleEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getModule_Id() {
return (EAttribute)moduleEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getWeb() {
return webEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWeb_WebUri() {
return (EAttribute)webEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWeb_ContextRoot() {
return (EAttribute)webEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWeb_Id() {
return (EAttribute)webEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- 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
applicationEClass = createEClass(APPLICATION);
createEAttribute(applicationEClass, APPLICATION__APPLICATION_NAME);
createEReference(applicationEClass, APPLICATION__DESCRIPTIONS);
createEReference(applicationEClass, APPLICATION__DISPLAY_NAMES);
createEReference(applicationEClass, APPLICATION__ICONS);
createEAttribute(applicationEClass, APPLICATION__INITIALIZE_IN_ORDER);
createEReference(applicationEClass, APPLICATION__MODULES);
createEReference(applicationEClass, APPLICATION__SECURITY_ROLES);
createEAttribute(applicationEClass, APPLICATION__LIBRARY_DIRECTORY);
createEReference(applicationEClass, APPLICATION__ENV_ENTRY);
createEReference(applicationEClass, APPLICATION__EJB_REF);
createEReference(applicationEClass, APPLICATION__EJB_LOCAL_REF);
createEReference(applicationEClass, APPLICATION__SERVICE_REFS);
createEReference(applicationEClass, APPLICATION__RESOURCE_REF);
createEReference(applicationEClass, APPLICATION__RESOURCE_ENV_REF);
createEReference(applicationEClass, APPLICATION__MESSAGE_DESTINATION_REF);
createEReference(applicationEClass, APPLICATION__PERSISTENCE_CONTEXT_REF);
createEReference(applicationEClass, APPLICATION__PERSISTENCE_UNIT_REF);
createEReference(applicationEClass, APPLICATION__MESSAGE_DESTINATION);
createEReference(applicationEClass, APPLICATION__DATA_SOURCE);
createEAttribute(applicationEClass, APPLICATION__ID);
createEAttribute(applicationEClass, APPLICATION__VERSION);
applicationDeploymentDescriptorEClass = createEClass(APPLICATION_DEPLOYMENT_DESCRIPTOR);
createEAttribute(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__MIXED);
createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__XMLNS_PREFIX_MAP);
createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__XSI_SCHEMA_LOCATION);
createEReference(applicationDeploymentDescriptorEClass, APPLICATION_DEPLOYMENT_DESCRIPTOR__APPLICATION);
moduleEClass = createEClass(MODULE);
createEAttribute(moduleEClass, MODULE__CONNECTOR);
createEAttribute(moduleEClass, MODULE__EJB);
createEAttribute(moduleEClass, MODULE__JAVA);
createEReference(moduleEClass, MODULE__WEB);
createEAttribute(moduleEClass, MODULE__ALT_DD);
createEAttribute(moduleEClass, MODULE__ID);
webEClass = createEClass(WEB);
createEAttribute(webEClass, WEB__WEB_URI);
createEAttribute(webEClass, WEB__CONTEXT_ROOT);
createEAttribute(webEClass, WEB__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
XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
JavaeePackage theJavaeePackage = (JavaeePackage)EPackage.Registry.INSTANCE.getEPackage(JavaeePackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
// Initialize classes and features; add operations and parameters
initEClass(applicationEClass, Application.class, "Application", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getApplication_ApplicationName(), theXMLTypePackage.getToken(), "applicationName", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_Descriptions(), theJavaeePackage.getDescription(), null, "descriptions", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_DisplayNames(), theJavaeePackage.getDisplayName(), null, "displayNames", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_Icons(), theJavaeePackage.getIcon(), null, "icons", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getApplication_InitializeInOrder(), theJavaeePackage.getGenericBooleanType(), "initializeInOrder", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_Modules(), this.getModule(), null, "modules", null, 1, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_SecurityRoles(), theJavaeePackage.getSecurityRole(), null, "securityRoles", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getApplication_LibraryDirectory(), theJavaeePackage.getPathType(), "libraryDirectory", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_EnvEntry(), theJavaeePackage.getEnvEntry(), null, "envEntry", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_EjbRef(), theJavaeePackage.getEjbRef(), null, "ejbRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_EjbLocalRef(), theJavaeePackage.getEjbLocalRef(), null, "ejbLocalRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_ServiceRefs(), theJavaeePackage.getServiceRef(), null, "serviceRefs", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_ResourceRef(), theJavaeePackage.getResourceRef(), null, "resourceRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_ResourceEnvRef(), theJavaeePackage.getResourceEnvRef(), null, "resourceEnvRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_MessageDestinationRef(), theJavaeePackage.getMessageDestinationRef(), null, "messageDestinationRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_PersistenceContextRef(), theJavaeePackage.getPersistenceContextRef(), null, "persistenceContextRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_PersistenceUnitRef(), theJavaeePackage.getPersistenceUnitRef(), null, "persistenceUnitRef", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_MessageDestination(), theJavaeePackage.getMessageDestination(), null, "messageDestination", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getApplication_DataSource(), theJavaeePackage.getDataSourceType(), null, "dataSource", null, 0, -1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getApplication_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getApplication_Version(), theJavaeePackage.getDeweyVersionType(), "version", "6", 1, 1, Application.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
initEClass(applicationDeploymentDescriptorEClass, ApplicationDeploymentDescriptor.class, "ApplicationDeploymentDescriptor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getApplicationDeploymentDescriptor_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(getApplicationDeploymentDescriptor_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(getApplicationDeploymentDescriptor_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(getApplicationDeploymentDescriptor_Application(), this.getApplication(), 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); //$NON-NLS-1$
initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getModule_Connector(), theJavaeePackage.getPathType(), "connector", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModule_Ejb(), theJavaeePackage.getPathType(), "ejb", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModule_Java(), theJavaeePackage.getPathType(), "java", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getModule_Web(), this.getWeb(), null, "web", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModule_AltDd(), theJavaeePackage.getPathType(), "altDd", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getModule_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(webEClass, Web.class, "Web", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getWeb_WebUri(), theJavaeePackage.getPathType(), "webUri", null, 1, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getWeb_ContextRoot(), theXMLTypePackage.getToken(), "contextRoot", null, 1, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getWeb_Id(), theXMLTypePackage.getID(), "id", null, 0, 1, Web.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
// 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"; //$NON-NLS-1$
addAnnotation
(applicationEClass,
source,
new String[] {
"name", "applicationType", //$NON-NLS-1$ //$NON-NLS-2$
"kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_ApplicationName(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "application-name", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_Descriptions(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "description", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_DisplayNames(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "display-name", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_Icons(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "icon", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_InitializeInOrder(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "initialize-in-order", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_Modules(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "module", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_SecurityRoles(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "security-role", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_LibraryDirectory(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "library-directory", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_EnvEntry(),
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
(getApplication_EjbRef(),
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
(getApplication_EjbLocalRef(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "ejb-local-ref", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_ServiceRefs(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "service-ref", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "http://java.sun.com/xml/ns/javaee" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_ResourceRef(),
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
(getApplication_ResourceEnvRef(),
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
(getApplication_MessageDestinationRef(),
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
(getApplication_PersistenceContextRef(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "persistence-context-ref", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_PersistenceUnitRef(),
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
(getApplication_MessageDestination(),
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
(getApplication_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
(getApplication_Id(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "id" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplication_Version(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "version" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(applicationDeploymentDescriptorEClass,
source,
new String[] {
"name", "", //$NON-NLS-1$ //$NON-NLS-2$
"kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplicationDeploymentDescriptor_Mixed(),
source,
new String[] {
"kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$
"name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplicationDeploymentDescriptor_XMLNSPrefixMap(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "xmlns:prefix" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplicationDeploymentDescriptor_XSISchemaLocation(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "xsi:schemaLocation" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getApplicationDeploymentDescriptor_Application(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "application", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(moduleEClass,
source,
new String[] {
"name", "moduleType", //$NON-NLS-1$ //$NON-NLS-2$
"kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_Connector(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "connector", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_Ejb(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "ejb", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_Java(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "java", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_Web(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "web", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_AltDd(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "alt-dd", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getModule_Id(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "id" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(webEClass,
source,
new String[] {
"name", "webType", //$NON-NLS-1$ //$NON-NLS-2$
"kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getWeb_WebUri(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "web-uri", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getWeb_ContextRoot(),
source,
new String[] {
"kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
"name", "context-root", //$NON-NLS-1$ //$NON-NLS-2$
"namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getWeb_Id(),
source,
new String[] {
"kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
"name", "id" //$NON-NLS-1$ //$NON-NLS-2$
});
}
} //ApplicationPackageImpl