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 [36/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/web/impl/WebAppTypeImpl.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/web/impl/WebAppTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebAppTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebAppTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,811 @@
+/**
+ * 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.web.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.naming.EjbLocalRefType;
+import org.apache.geronimo.xml.ns.naming.EjbRefType;
+import org.apache.geronimo.xml.ns.naming.ResourceEnvRefType;
+import org.apache.geronimo.xml.ns.naming.ResourceRefType;
+import org.apache.geronimo.xml.ns.naming.ServiceRefType;
+
+import org.apache.geronimo.xml.ns.security.SecurityType;
+
+import org.apache.geronimo.xml.ns.web.ContainerConfigType;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.apache.geronimo.xml.ns.web.WebPackage;
+
+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>App Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getDependency <em>Dependency</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getContextRoot <em>Context Root</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#isContextPriorityClassloader <em>Context Priority Classloader</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getContainerConfig <em>Container Config</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getSecurityRealmName <em>Security Realm Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getSecurity <em>Security</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getEjbRef <em>Ejb Ref</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getEjbLocalRef <em>Ejb Local Ref</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getServiceRef <em>Service Ref</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getResourceRef <em>Resource Ref</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getResourceEnvRef <em>Resource Env Ref</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getGbean <em>Gbean</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getConfigId <em>Config Id</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.web.impl.WebAppTypeImpl#getParentId <em>Parent Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class WebAppTypeImpl extends EObjectImpl implements WebAppType {
+ /**
+ * 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 default value of the '{@link #getContextRoot() <em>Context Root</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContextRoot()
+ * @generated
+ * @ordered
+ */
+ protected static final String CONTEXT_ROOT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getContextRoot() <em>Context Root</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContextRoot()
+ * @generated
+ * @ordered
+ */
+ protected String contextRoot = CONTEXT_ROOT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isContextPriorityClassloader() <em>Context Priority Classloader</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isContextPriorityClassloader()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean CONTEXT_PRIORITY_CLASSLOADER_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isContextPriorityClassloader() <em>Context Priority Classloader</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isContextPriorityClassloader()
+ * @generated
+ * @ordered
+ */
+ protected boolean contextPriorityClassloader = CONTEXT_PRIORITY_CLASSLOADER_EDEFAULT;
+
+ /**
+ * This is true if the Context Priority Classloader attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean contextPriorityClassloaderESet = false;
+
+ /**
+ * The cached value of the '{@link #getContainerConfig() <em>Container Config</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContainerConfig()
+ * @generated
+ * @ordered
+ */
+ protected EList containerConfig = null;
+
+ /**
+ * The default value of the '{@link #getSecurityRealmName() <em>Security Realm Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityRealmName()
+ * @generated
+ * @ordered
+ */
+ protected static final String SECURITY_REALM_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSecurityRealmName() <em>Security Realm Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityRealmName()
+ * @generated
+ * @ordered
+ */
+ protected String securityRealmName = SECURITY_REALM_NAME_EDEFAULT;
+
+ /**
+ * 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 #getEjbRef() <em>Ejb Ref</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEjbRef()
+ * @generated
+ * @ordered
+ */
+ protected EList ejbRef = null;
+
+ /**
+ * The cached value of the '{@link #getEjbLocalRef() <em>Ejb Local Ref</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEjbLocalRef()
+ * @generated
+ * @ordered
+ */
+ protected EList ejbLocalRef = null;
+
+ /**
+ * The cached value of the '{@link #getServiceRef() <em>Service Ref</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getServiceRef()
+ * @generated
+ * @ordered
+ */
+ protected EList serviceRef = null;
+
+ /**
+ * The cached value of the '{@link #getResourceRef() <em>Resource Ref</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceRef()
+ * @generated
+ * @ordered
+ */
+ protected EList resourceRef = null;
+
+ /**
+ * The cached value of the '{@link #getResourceEnvRef() <em>Resource Env Ref</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceEnvRef()
+ * @generated
+ * @ordered
+ */
+ protected EList resourceEnvRef = 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 #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 WebAppTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return WebPackage.eINSTANCE.getWebAppType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getDependency() {
+ if (dependency == null) {
+ dependency = new EObjectContainmentEList(DependencyType.class, this, WebPackage.WEB_APP_TYPE__DEPENDENCY);
+ }
+ return dependency;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getContextRoot() {
+ return contextRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setContextRoot(String newContextRoot) {
+ String oldContextRoot = contextRoot;
+ contextRoot = newContextRoot;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP_TYPE__CONTEXT_ROOT, oldContextRoot, contextRoot));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isContextPriorityClassloader() {
+ return contextPriorityClassloader;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setContextPriorityClassloader(boolean newContextPriorityClassloader) {
+ boolean oldContextPriorityClassloader = contextPriorityClassloader;
+ contextPriorityClassloader = newContextPriorityClassloader;
+ boolean oldContextPriorityClassloaderESet = contextPriorityClassloaderESet;
+ contextPriorityClassloaderESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER, oldContextPriorityClassloader, contextPriorityClassloader, !oldContextPriorityClassloaderESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetContextPriorityClassloader() {
+ boolean oldContextPriorityClassloader = contextPriorityClassloader;
+ boolean oldContextPriorityClassloaderESet = contextPriorityClassloaderESet;
+ contextPriorityClassloader = CONTEXT_PRIORITY_CLASSLOADER_EDEFAULT;
+ contextPriorityClassloaderESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER, oldContextPriorityClassloader, CONTEXT_PRIORITY_CLASSLOADER_EDEFAULT, oldContextPriorityClassloaderESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetContextPriorityClassloader() {
+ return contextPriorityClassloaderESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getContainerConfig() {
+ if (containerConfig == null) {
+ containerConfig = new EObjectContainmentEList(ContainerConfigType.class, this, WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG);
+ }
+ return containerConfig;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSecurityRealmName() {
+ return securityRealmName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSecurityRealmName(String newSecurityRealmName) {
+ String oldSecurityRealmName = securityRealmName;
+ securityRealmName = newSecurityRealmName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP_TYPE__SECURITY_REALM_NAME, oldSecurityRealmName, securityRealmName));
+ }
+
+ /**
+ * <!-- 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, WebPackage.WEB_APP_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 - WebPackage.WEB_APP_TYPE__SECURITY, null, msgs);
+ if (newSecurity != null)
+ msgs = ((InternalEObject)newSecurity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WebPackage.WEB_APP_TYPE__SECURITY, null, msgs);
+ msgs = basicSetSecurity(newSecurity, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, WebPackage.WEB_APP_TYPE__SECURITY, newSecurity, newSecurity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getEjbRef() {
+ if (ejbRef == null) {
+ ejbRef = new EObjectContainmentEList(EjbRefType.class, this, WebPackage.WEB_APP_TYPE__EJB_REF);
+ }
+ return ejbRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getEjbLocalRef() {
+ if (ejbLocalRef == null) {
+ ejbLocalRef = new EObjectContainmentEList(EjbLocalRefType.class, this, WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF);
+ }
+ return ejbLocalRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getServiceRef() {
+ if (serviceRef == null) {
+ serviceRef = new EObjectContainmentEList(ServiceRefType.class, this, WebPackage.WEB_APP_TYPE__SERVICE_REF);
+ }
+ return serviceRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getResourceRef() {
+ if (resourceRef == null) {
+ resourceRef = new EObjectContainmentEList(ResourceRefType.class, this, WebPackage.WEB_APP_TYPE__RESOURCE_REF);
+ }
+ return resourceRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getResourceEnvRef() {
+ if (resourceEnvRef == null) {
+ resourceEnvRef = new EObjectContainmentEList(ResourceEnvRefType.class, this, WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF);
+ }
+ return resourceEnvRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getGbean() {
+ if (gbean == null) {
+ gbean = new EObjectContainmentEList(GbeanType.class, this, WebPackage.WEB_APP_TYPE__GBEAN);
+ }
+ return gbean;
+ }
+
+ /**
+ * <!-- 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, WebPackage.WEB_APP_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, WebPackage.WEB_APP_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 WebPackage.WEB_APP_TYPE__DEPENDENCY:
+ return ((InternalEList)getDependency()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG:
+ return ((InternalEList)getContainerConfig()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__SECURITY:
+ return basicSetSecurity(null, msgs);
+ case WebPackage.WEB_APP_TYPE__EJB_REF:
+ return ((InternalEList)getEjbRef()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF:
+ return ((InternalEList)getEjbLocalRef()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__SERVICE_REF:
+ return ((InternalEList)getServiceRef()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__RESOURCE_REF:
+ return ((InternalEList)getResourceRef()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF:
+ return ((InternalEList)getResourceEnvRef()).basicRemove(otherEnd, msgs);
+ case WebPackage.WEB_APP_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 WebPackage.WEB_APP_TYPE__DEPENDENCY:
+ return getDependency();
+ case WebPackage.WEB_APP_TYPE__CONTEXT_ROOT:
+ return getContextRoot();
+ case WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER:
+ return isContextPriorityClassloader() ? Boolean.TRUE : Boolean.FALSE;
+ case WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG:
+ return getContainerConfig();
+ case WebPackage.WEB_APP_TYPE__SECURITY_REALM_NAME:
+ return getSecurityRealmName();
+ case WebPackage.WEB_APP_TYPE__SECURITY:
+ return getSecurity();
+ case WebPackage.WEB_APP_TYPE__EJB_REF:
+ return getEjbRef();
+ case WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF:
+ return getEjbLocalRef();
+ case WebPackage.WEB_APP_TYPE__SERVICE_REF:
+ return getServiceRef();
+ case WebPackage.WEB_APP_TYPE__RESOURCE_REF:
+ return getResourceRef();
+ case WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF:
+ return getResourceEnvRef();
+ case WebPackage.WEB_APP_TYPE__GBEAN:
+ return getGbean();
+ case WebPackage.WEB_APP_TYPE__CONFIG_ID:
+ return getConfigId();
+ case WebPackage.WEB_APP_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 WebPackage.WEB_APP_TYPE__DEPENDENCY:
+ getDependency().clear();
+ getDependency().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTEXT_ROOT:
+ setContextRoot((String)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER:
+ setContextPriorityClassloader(((Boolean)newValue).booleanValue());
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG:
+ getContainerConfig().clear();
+ getContainerConfig().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__SECURITY_REALM_NAME:
+ setSecurityRealmName((String)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__SECURITY:
+ setSecurity((SecurityType)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__EJB_REF:
+ getEjbRef().clear();
+ getEjbRef().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF:
+ getEjbLocalRef().clear();
+ getEjbLocalRef().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__SERVICE_REF:
+ getServiceRef().clear();
+ getServiceRef().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__RESOURCE_REF:
+ getResourceRef().clear();
+ getResourceRef().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF:
+ getResourceEnvRef().clear();
+ getResourceEnvRef().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__GBEAN:
+ getGbean().clear();
+ getGbean().addAll((Collection)newValue);
+ return;
+ case WebPackage.WEB_APP_TYPE__CONFIG_ID:
+ setConfigId((String)newValue);
+ return;
+ case WebPackage.WEB_APP_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 WebPackage.WEB_APP_TYPE__DEPENDENCY:
+ getDependency().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTEXT_ROOT:
+ setContextRoot(CONTEXT_ROOT_EDEFAULT);
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER:
+ unsetContextPriorityClassloader();
+ return;
+ case WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG:
+ getContainerConfig().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__SECURITY_REALM_NAME:
+ setSecurityRealmName(SECURITY_REALM_NAME_EDEFAULT);
+ return;
+ case WebPackage.WEB_APP_TYPE__SECURITY:
+ setSecurity((SecurityType)null);
+ return;
+ case WebPackage.WEB_APP_TYPE__EJB_REF:
+ getEjbRef().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF:
+ getEjbLocalRef().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__SERVICE_REF:
+ getServiceRef().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__RESOURCE_REF:
+ getResourceRef().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF:
+ getResourceEnvRef().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__GBEAN:
+ getGbean().clear();
+ return;
+ case WebPackage.WEB_APP_TYPE__CONFIG_ID:
+ setConfigId(CONFIG_ID_EDEFAULT);
+ return;
+ case WebPackage.WEB_APP_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 WebPackage.WEB_APP_TYPE__DEPENDENCY:
+ return dependency != null && !dependency.isEmpty();
+ case WebPackage.WEB_APP_TYPE__CONTEXT_ROOT:
+ return CONTEXT_ROOT_EDEFAULT == null ? contextRoot != null : !CONTEXT_ROOT_EDEFAULT.equals(contextRoot);
+ case WebPackage.WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER:
+ return isSetContextPriorityClassloader();
+ case WebPackage.WEB_APP_TYPE__CONTAINER_CONFIG:
+ return containerConfig != null && !containerConfig.isEmpty();
+ case WebPackage.WEB_APP_TYPE__SECURITY_REALM_NAME:
+ return SECURITY_REALM_NAME_EDEFAULT == null ? securityRealmName != null : !SECURITY_REALM_NAME_EDEFAULT.equals(securityRealmName);
+ case WebPackage.WEB_APP_TYPE__SECURITY:
+ return security != null;
+ case WebPackage.WEB_APP_TYPE__EJB_REF:
+ return ejbRef != null && !ejbRef.isEmpty();
+ case WebPackage.WEB_APP_TYPE__EJB_LOCAL_REF:
+ return ejbLocalRef != null && !ejbLocalRef.isEmpty();
+ case WebPackage.WEB_APP_TYPE__SERVICE_REF:
+ return serviceRef != null && !serviceRef.isEmpty();
+ case WebPackage.WEB_APP_TYPE__RESOURCE_REF:
+ return resourceRef != null && !resourceRef.isEmpty();
+ case WebPackage.WEB_APP_TYPE__RESOURCE_ENV_REF:
+ return resourceEnvRef != null && !resourceEnvRef.isEmpty();
+ case WebPackage.WEB_APP_TYPE__GBEAN:
+ return gbean != null && !gbean.isEmpty();
+ case WebPackage.WEB_APP_TYPE__CONFIG_ID:
+ return CONFIG_ID_EDEFAULT == null ? configId != null : !CONFIG_ID_EDEFAULT.equals(configId);
+ case WebPackage.WEB_APP_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(" (contextRoot: ");
+ result.append(contextRoot);
+ result.append(", contextPriorityClassloader: ");
+ if (contextPriorityClassloaderESet) result.append(contextPriorityClassloader); else result.append("<unset>");
+ result.append(", securityRealmName: ");
+ result.append(securityRealmName);
+ result.append(", configId: ");
+ result.append(configId);
+ result.append(", parentId: ");
+ result.append(parentId);
+ result.append(')');
+ return result.toString();
+ }
+
+} //WebAppTypeImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebFactoryImpl.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/web/impl/WebFactoryImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebFactoryImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebFactoryImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,171 @@
+/**
+ * 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.web.impl;
+
+import org.apache.geronimo.xml.ns.web.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class WebFactoryImpl extends EFactoryImpl implements WebFactory {
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case WebPackage.CONFIG_PARAM_TYPE: return createConfigParamType();
+ case WebPackage.CONTAINER_CONFIG_TYPE: return createContainerConfigType();
+ case WebPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case WebPackage.WEB_APP_TYPE: return createWebAppType();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case WebPackage.WEB_CONTAINER_TYPE: {
+ WebContainerType result = WebContainerType.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+ case WebPackage.WEB_CONTAINER_TYPE_OBJECT:
+ return createWebContainerTypeObjectFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case WebPackage.WEB_CONTAINER_TYPE:
+ return instanceValue == null ? null : instanceValue.toString();
+ case WebPackage.WEB_CONTAINER_TYPE_OBJECT:
+ return convertWebContainerTypeObjectToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ConfigParamType createConfigParamType() {
+ ConfigParamTypeImpl configParamType = new ConfigParamTypeImpl();
+ return configParamType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ContainerConfigType createContainerConfigType() {
+ ContainerConfigTypeImpl containerConfigType = new ContainerConfigTypeImpl();
+ return containerConfigType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebAppType createWebAppType() {
+ WebAppTypeImpl webAppType = new WebAppTypeImpl();
+ return webAppType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebContainerType createWebContainerTypeObjectFromString(EDataType eDataType, String initialValue) {
+ return (WebContainerType)WebFactory.eINSTANCE.createFromString(WebPackage.eINSTANCE.getWebContainerType(), initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertWebContainerTypeObjectToString(EDataType eDataType, Object instanceValue) {
+ return WebFactory.eINSTANCE.convertToString(WebPackage.eINSTANCE.getWebContainerType(), instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebPackage getWebPackage() {
+ return (WebPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ public static WebPackage getPackage() {
+ return WebPackage.eINSTANCE;
+ }
+
+} //WebFactoryImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebPackageImpl.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/web/impl/WebPackageImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebPackageImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/impl/WebPackageImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,796 @@
+/**
+ * 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.web.impl;
+
+import org.apache.geronimo.xml.ns.deployment.DeploymentPackage;
+
+import org.apache.geronimo.xml.ns.deployment.impl.DeploymentPackageImpl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+
+import org.apache.geronimo.xml.ns.naming.impl.NamingPackageImpl;
+
+import org.apache.geronimo.xml.ns.security.SecurityPackage;
+
+import org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl;
+
+import org.apache.geronimo.xml.ns.web.ConfigParamType;
+import org.apache.geronimo.xml.ns.web.ContainerConfigType;
+import org.apache.geronimo.xml.ns.web.DocumentRoot;
+import org.apache.geronimo.xml.ns.web.WebAppType;
+import org.apache.geronimo.xml.ns.web.WebContainerType;
+import org.apache.geronimo.xml.ns.web.WebFactory;
+import org.apache.geronimo.xml.ns.web.WebPackage;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+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 WebPackageImpl extends EPackageImpl implements WebPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass configParamTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass containerConfigTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass webAppTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum webContainerTypeEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType webContainerTypeObjectEDataType = 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.web.WebPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private WebPackageImpl() {
+ super(eNS_URI, WebFactory.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 WebPackage init() {
+ if (isInited) return (WebPackage)EPackage.Registry.INSTANCE.getEPackage(WebPackage.eNS_URI);
+
+ // Obtain or create and register package
+ WebPackageImpl theWebPackage = (WebPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof WebPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WebPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackageImpl.init();
+
+ // Obtain or create and register interdependencies
+ NamingPackageImpl theNamingPackage = (NamingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NamingPackage.eNS_URI) instanceof NamingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NamingPackage.eNS_URI) : NamingPackage.eINSTANCE);
+ DeploymentPackageImpl theDeploymentPackage = (DeploymentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI) instanceof DeploymentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI) : DeploymentPackage.eINSTANCE);
+ SecurityPackageImpl theSecurityPackage = (SecurityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SecurityPackage.eNS_URI) instanceof SecurityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SecurityPackage.eNS_URI) : SecurityPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theWebPackage.createPackageContents();
+ theNamingPackage.createPackageContents();
+ theDeploymentPackage.createPackageContents();
+ theSecurityPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theWebPackage.initializePackageContents();
+ theNamingPackage.initializePackageContents();
+ theDeploymentPackage.initializePackageContents();
+ theSecurityPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theWebPackage.freeze();
+
+ return theWebPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getConfigParamType() {
+ return configParamTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getConfigParamType_Value() {
+ return (EAttribute)configParamTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getConfigParamType_Name() {
+ return (EAttribute)configParamTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getContainerConfigType() {
+ return containerConfigTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getContainerConfigType_ConfigParam() {
+ return (EReference)containerConfigTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getContainerConfigType_Container() {
+ return (EAttribute)containerConfigTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- 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_WebApp() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getWebAppType() {
+ return webAppTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_Dependency() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getWebAppType_ContextRoot() {
+ return (EAttribute)webAppTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getWebAppType_ContextPriorityClassloader() {
+ return (EAttribute)webAppTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_ContainerConfig() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getWebAppType_SecurityRealmName() {
+ return (EAttribute)webAppTypeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_Security() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_EjbRef() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_EjbLocalRef() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_ServiceRef() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_ResourceRef() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_ResourceEnvRef() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getWebAppType_Gbean() {
+ return (EReference)webAppTypeEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getWebAppType_ConfigId() {
+ return (EAttribute)webAppTypeEClass.getEStructuralFeatures().get(12);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getWebAppType_ParentId() {
+ return (EAttribute)webAppTypeEClass.getEStructuralFeatures().get(13);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getWebContainerType() {
+ return webContainerTypeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getWebContainerTypeObject() {
+ return webContainerTypeObjectEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebFactory getWebFactory() {
+ return (WebFactory)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
+ configParamTypeEClass = createEClass(CONFIG_PARAM_TYPE);
+ createEAttribute(configParamTypeEClass, CONFIG_PARAM_TYPE__VALUE);
+ createEAttribute(configParamTypeEClass, CONFIG_PARAM_TYPE__NAME);
+
+ containerConfigTypeEClass = createEClass(CONTAINER_CONFIG_TYPE);
+ createEReference(containerConfigTypeEClass, CONTAINER_CONFIG_TYPE__CONFIG_PARAM);
+ createEAttribute(containerConfigTypeEClass, CONTAINER_CONFIG_TYPE__CONTAINER);
+
+ 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__WEB_APP);
+
+ webAppTypeEClass = createEClass(WEB_APP_TYPE);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__DEPENDENCY);
+ createEAttribute(webAppTypeEClass, WEB_APP_TYPE__CONTEXT_ROOT);
+ createEAttribute(webAppTypeEClass, WEB_APP_TYPE__CONTEXT_PRIORITY_CLASSLOADER);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__CONTAINER_CONFIG);
+ createEAttribute(webAppTypeEClass, WEB_APP_TYPE__SECURITY_REALM_NAME);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__SECURITY);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__EJB_REF);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__EJB_LOCAL_REF);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__SERVICE_REF);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__RESOURCE_REF);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__RESOURCE_ENV_REF);
+ createEReference(webAppTypeEClass, WEB_APP_TYPE__GBEAN);
+ createEAttribute(webAppTypeEClass, WEB_APP_TYPE__CONFIG_ID);
+ createEAttribute(webAppTypeEClass, WEB_APP_TYPE__PARENT_ID);
+
+ // Create enums
+ webContainerTypeEEnum = createEEnum(WEB_CONTAINER_TYPE);
+
+ // Create data types
+ webContainerTypeObjectEDataType = createEDataType(WEB_CONTAINER_TYPE_OBJECT);
+ }
+
+ /**
+ * <!-- 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
+ XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+ DeploymentPackageImpl theDeploymentPackage = (DeploymentPackageImpl)EPackage.Registry.INSTANCE.getEPackage(DeploymentPackage.eNS_URI);
+ SecurityPackageImpl theSecurityPackage = (SecurityPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SecurityPackage.eNS_URI);
+ NamingPackageImpl theNamingPackage = (NamingPackageImpl)EPackage.Registry.INSTANCE.getEPackage(NamingPackage.eNS_URI);
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(configParamTypeEClass, ConfigParamType.class, "ConfigParamType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getConfigParamType_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, ConfigParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getConfigParamType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ConfigParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(containerConfigTypeEClass, ContainerConfigType.class, "ContainerConfigType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getContainerConfigType_ConfigParam(), this.getConfigParamType(), null, "configParam", null, 0, -1, ContainerConfigType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getContainerConfigType_Container(), this.getWebContainerType(), "container", "Tomcat", 1, 1, ContainerConfigType.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_WebApp(), this.getWebAppType(), null, "webApp", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(webAppTypeEClass, WebAppType.class, "WebAppType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getWebAppType_Dependency(), theDeploymentPackage.getDependencyType(), null, "dependency", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getWebAppType_ContextRoot(), theXMLTypePackage.getString(), "contextRoot", null, 0, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getWebAppType_ContextPriorityClassloader(), theXMLTypePackage.getBoolean(), "contextPriorityClassloader", null, 1, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_ContainerConfig(), this.getContainerConfigType(), null, "containerConfig", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getWebAppType_SecurityRealmName(), theXMLTypePackage.getString(), "securityRealmName", null, 0, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_Security(), theSecurityPackage.getSecurityType(), null, "security", null, 0, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_EjbRef(), theNamingPackage.getEjbRefType(), null, "ejbRef", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_EjbLocalRef(), theNamingPackage.getEjbLocalRefType(), null, "ejbLocalRef", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_ServiceRef(), theNamingPackage.getServiceRefType(), null, "serviceRef", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_ResourceRef(), theNamingPackage.getResourceRefType(), null, "resourceRef", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_ResourceEnvRef(), theNamingPackage.getResourceEnvRefType(), null, "resourceEnvRef", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getWebAppType_Gbean(), theDeploymentPackage.getGbeanType(), null, "gbean", null, 0, -1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getWebAppType_ConfigId(), theXMLTypePackage.getString(), "configId", null, 1, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getWebAppType_ParentId(), theXMLTypePackage.getString(), "parentId", null, 0, 1, WebAppType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(webContainerTypeEEnum, WebContainerType.class, "WebContainerType");
+ addEEnumLiteral(webContainerTypeEEnum, WebContainerType.TOMCAT_LITERAL);
+ addEEnumLiteral(webContainerTypeEEnum, WebContainerType.JETTY_LITERAL);
+
+ // Initialize data types
+ initEDataType(webContainerTypeObjectEDataType, WebContainerType.class, "WebContainerTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
+
+ // 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
+ (configParamTypeEClass,
+ source,
+ new String[] {
+ "name", "config-paramType",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getConfigParamType_Value(),
+ source,
+ new String[] {
+ "name", ":0",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getConfigParamType_Name(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "name"
+ });
+ addAnnotation
+ (containerConfigTypeEClass,
+ source,
+ new String[] {
+ "name", "container-configType",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getContainerConfigType_ConfigParam(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "config-param",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getContainerConfigType_Container(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "container"
+ });
+ 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_WebApp(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "web-app",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (webAppTypeEClass,
+ source,
+ new String[] {
+ "name", "web-appType",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getWebAppType_Dependency(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "dependency",
+ "namespace", "http://geronimo.apache.org/xml/ns/deployment"
+ });
+ addAnnotation
+ (getWebAppType_ContextRoot(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "context-root",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getWebAppType_ContextPriorityClassloader(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "context-priority-classloader",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getWebAppType_ContainerConfig(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "container-config",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getWebAppType_SecurityRealmName(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "security-realm-name",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getWebAppType_Security(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "security",
+ "namespace", "http://geronimo.apache.org/xml/ns/security"
+ });
+ addAnnotation
+ (getWebAppType_EjbRef(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "ejb-ref",
+ "namespace", "http://geronimo.apache.org/xml/ns/naming"
+ });
+ addAnnotation
+ (getWebAppType_EjbLocalRef(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "ejb-local-ref",
+ "namespace", "http://geronimo.apache.org/xml/ns/naming"
+ });
+ addAnnotation
+ (getWebAppType_ServiceRef(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "service-ref",
+ "namespace", "http://geronimo.apache.org/xml/ns/naming"
+ });
+ addAnnotation
+ (getWebAppType_ResourceRef(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "resource-ref",
+ "namespace", "http://geronimo.apache.org/xml/ns/naming"
+ });
+ addAnnotation
+ (getWebAppType_ResourceEnvRef(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "resource-env-ref",
+ "namespace", "http://geronimo.apache.org/xml/ns/naming"
+ });
+ addAnnotation
+ (getWebAppType_Gbean(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "gbean",
+ "namespace", "http://geronimo.apache.org/xml/ns/deployment"
+ });
+ addAnnotation
+ (getWebAppType_ConfigId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "configId"
+ });
+ addAnnotation
+ (getWebAppType_ParentId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "parentId"
+ });
+ addAnnotation
+ (webContainerTypeEEnum,
+ source,
+ new String[] {
+ "name", "web-containerType"
+ });
+ addAnnotation
+ (webContainerTypeObjectEDataType,
+ source,
+ new String[] {
+ "name", "web-containerType:Object",
+ "baseType", "web-containerType"
+ });
+ }
+
+} //WebPackageImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebAdapterFactory.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/web/util/WebAdapterFactory.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebAdapterFactory.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebAdapterFactory.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,180 @@
+/**
+ * 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.web.util;
+
+import org.apache.geronimo.xml.ns.web.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.web.WebPackage
+ * @generated
+ */
+public class WebAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static WebPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = WebPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch the delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected WebSwitch modelSwitch =
+ new WebSwitch() {
+ public Object caseConfigParamType(ConfigParamType object) {
+ return createConfigParamTypeAdapter();
+ }
+ public Object caseContainerConfigType(ContainerConfigType object) {
+ return createContainerConfigTypeAdapter();
+ }
+ public Object caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ public Object caseWebAppType(WebAppType object) {
+ return createWebAppTypeAdapter();
+ }
+ public Object defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ public Adapter createAdapter(Notifier target) {
+ return (Adapter)modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.web.ConfigParamType <em>Config Param Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.apache.geronimo.xml.ns.web.ConfigParamType
+ * @generated
+ */
+ public Adapter createConfigParamTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.web.ContainerConfigType <em>Container Config Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.apache.geronimo.xml.ns.web.ContainerConfigType
+ * @generated
+ */
+ public Adapter createContainerConfigTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.web.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.apache.geronimo.xml.ns.web.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.apache.geronimo.xml.ns.web.WebAppType <em>App Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.apache.geronimo.xml.ns.web.WebAppType
+ * @generated
+ */
+ public Adapter createWebAppTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //WebAdapterFactory
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceFactoryImpl.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/web/util/WebResourceFactoryImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceFactoryImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceFactoryImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,62 @@
+/**
+ * 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.web.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.web.util.WebResourceImpl
+ * @generated
+ */
+public class WebResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public WebResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Resource createResource(URI uri) {
+ XMLResource result = new WebResourceImpl(uri);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+ return result;
+ }
+
+} //WebResourceFactoryImpl
Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceImpl.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/web/util/WebResourceImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/web/util/WebResourceImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,41 @@
+/**
+ * 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.web.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.geronimo.xml.ns.web.util.WebResourceFactoryImpl
+ * @generated
+ */
+public class WebResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public WebResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //WebResourceImpl