Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java516
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java1568
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java541
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java119
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java225
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java216
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java216
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java238
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java517
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java371
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java270
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java247
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEAttributeImpl.java48
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEObjectImpl.java46
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java30
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java370
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java174
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java162
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java405
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java325
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java434
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java323
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java508
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java167
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java213
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java294
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java288
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java48
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java285
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java592
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java761
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java21
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java77
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java31
40 files changed, 0 insertions, 10988 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java
deleted file mode 100644
index 084b9b643..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonFactoryImpl.java
+++ /dev/null
@@ -1,516 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.jst.j2ee.common.*;
-
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EjbRefType;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.EnvEntryType;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.common.Identity;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.MessageDestinationUsageType;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.common.ResAuthTypeBase;
-import org.eclipse.jst.j2ee.common.ResSharingScopeType;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.UseCallerIdentity;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class CommonFactoryImpl extends EFactoryImpl implements CommonFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static CommonFactory init() {
- try {
- CommonFactory theCommonFactory = (CommonFactory)EPackage.Registry.INSTANCE.getEFactory("common.xmi");
- if (theCommonFactory != null) {
- return theCommonFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new CommonFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public CommonFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case CommonPackage.EJB_REF: return createEjbRef();
- case CommonPackage.ENV_ENTRY: return createEnvEntry();
- case CommonPackage.RESOURCE_REF: return createResourceRef();
- case CommonPackage.SECURITY_ROLE_REF: return createSecurityRoleRef();
- case CommonPackage.SECURITY_ROLE: return createSecurityRole();
- case CommonPackage.RESOURCE_ENV_REF: return createResourceEnvRef();
- case CommonPackage.EJB_LOCAL_REF: return createEJBLocalRef();
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY: return createRunAsSpecifiedIdentity();
- case CommonPackage.IDENTITY: return createIdentity();
- case CommonPackage.ICON_TYPE: return createIconType();
- case CommonPackage.DISPLAY_NAME: return createDisplayName();
- case CommonPackage.MESSAGE_DESTINATION_REF: return createMessageDestinationRef();
- case CommonPackage.MESSAGE_DESTINATION: return createMessageDestination();
- case CommonPackage.PARAM_VALUE: return createParamValue();
- case CommonPackage.DESCRIPTION_GROUP: return createDescriptionGroup();
- case CommonPackage.SECURITY_IDENTITY: return createSecurityIdentity();
- case CommonPackage.USE_CALLER_IDENTITY: return createUseCallerIdentity();
- case CommonPackage.DESCRIPTION: return createDescription();
- case CommonPackage.QNAME: return createQName();
- case CommonPackage.LISTENER: return createListener();
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP: return createCompatibilityDescriptionGroup();
- case CommonPackage.J2EEE_OBJECT: return createJ2EEEObject();
- case CommonPackage.J2EEE_ATTRIBUTE: return createJ2EEEAttribute();
- 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 CommonPackage.ENV_ENTRY_TYPE:
- return createEnvEntryTypeFromString(eDataType, initialValue);
- case CommonPackage.RES_AUTH_TYPE_BASE:
- return createResAuthTypeBaseFromString(eDataType, initialValue);
- case CommonPackage.EJB_REF_TYPE:
- return createEjbRefTypeFromString(eDataType, initialValue);
- case CommonPackage.RES_SHARING_SCOPE_TYPE:
- return createResSharingScopeTypeFromString(eDataType, initialValue);
- case CommonPackage.MESSAGE_DESTINATION_USAGE_TYPE:
- return createMessageDestinationUsageTypeFromString(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 CommonPackage.ENV_ENTRY_TYPE:
- return convertEnvEntryTypeToString(eDataType, instanceValue);
- case CommonPackage.RES_AUTH_TYPE_BASE:
- return convertResAuthTypeBaseToString(eDataType, instanceValue);
- case CommonPackage.EJB_REF_TYPE:
- return convertEjbRefTypeToString(eDataType, instanceValue);
- case CommonPackage.RES_SHARING_SCOPE_TYPE:
- return convertResSharingScopeTypeToString(eDataType, instanceValue);
- case CommonPackage.MESSAGE_DESTINATION_USAGE_TYPE:
- return convertMessageDestinationUsageTypeToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EjbRef createEjbRef() {
- EjbRefImpl ejbRef = new EjbRefImpl();
- return ejbRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EnvEntry createEnvEntry() {
- EnvEntryImpl envEntry = new EnvEntryImpl();
- return envEntry;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceRef createResourceRef() {
- ResourceRefImpl resourceRef = new ResourceRefImpl();
- return resourceRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SecurityRoleRef createSecurityRoleRef() {
- SecurityRoleRefImpl securityRoleRef = new SecurityRoleRefImpl();
- return securityRoleRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SecurityRole createSecurityRole() {
- SecurityRoleImpl securityRole = new SecurityRoleImpl();
- return securityRole;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceEnvRef createResourceEnvRef() {
- ResourceEnvRefImpl resourceEnvRef = new ResourceEnvRefImpl();
- return resourceEnvRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EJBLocalRef createEJBLocalRef() {
- EJBLocalRefImpl ejbLocalRef = new EJBLocalRefImpl();
- return ejbLocalRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RunAsSpecifiedIdentity createRunAsSpecifiedIdentity() {
- RunAsSpecifiedIdentityImpl runAsSpecifiedIdentity = new RunAsSpecifiedIdentityImpl();
- return runAsSpecifiedIdentity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Identity createIdentity() {
- IdentityImpl identity = new IdentityImpl();
- return identity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public IconType createIconType() {
- IconTypeImpl iconType = new IconTypeImpl();
- return iconType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DisplayName createDisplayName() {
- DisplayNameImpl displayName = new DisplayNameImpl();
- return displayName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageDestinationRef createMessageDestinationRef() {
- MessageDestinationRefImpl messageDestinationRef = new MessageDestinationRefImpl();
- return messageDestinationRef;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageDestination createMessageDestination() {
- MessageDestinationImpl messageDestination = new MessageDestinationImpl();
- return messageDestination;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ParamValue createParamValue() {
- ParamValueImpl paramValue = new ParamValueImpl();
- return paramValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DescriptionGroup createDescriptionGroup() {
- DescriptionGroupImpl descriptionGroup = new DescriptionGroupImpl();
- return descriptionGroup;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SecurityIdentity createSecurityIdentity() {
- SecurityIdentityImpl securityIdentity = new SecurityIdentityImpl();
- return securityIdentity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public UseCallerIdentity createUseCallerIdentity() {
- UseCallerIdentityImpl useCallerIdentity = new UseCallerIdentityImpl();
- return useCallerIdentity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Description createDescription() {
- DescriptionImpl description = new DescriptionImpl();
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public QName createQName() {
- QNameImpl qName = new QNameImpl();
- return qName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Listener createListener() {
- ListenerImpl listener = new ListenerImpl();
- return listener;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public CompatibilityDescriptionGroup createCompatibilityDescriptionGroup() {
- CompatibilityDescriptionGroupImpl compatibilityDescriptionGroup = new CompatibilityDescriptionGroupImpl();
- return compatibilityDescriptionGroup;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public J2EEEObject createJ2EEEObject() {
- J2EEEObjectImpl j2EEEObject = new J2EEEObjectImpl();
- return j2EEEObject;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public J2EEEAttribute createJ2EEEAttribute() {
- J2EEEAttributeImpl j2EEEAttribute = new J2EEEAttributeImpl();
- return j2EEEAttribute;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EnvEntryType createEnvEntryTypeFromString(EDataType eDataType, String initialValue) {
- EnvEntryType result = EnvEntryType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertEnvEntryTypeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResAuthTypeBase createResAuthTypeBaseFromString(EDataType eDataType, String initialValue) {
- ResAuthTypeBase result = ResAuthTypeBase.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertResAuthTypeBaseToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EjbRefType createEjbRefTypeFromString(EDataType eDataType, String initialValue) {
- EjbRefType result = EjbRefType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertEjbRefTypeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResSharingScopeType createResSharingScopeTypeFromString(EDataType eDataType, String initialValue) {
- ResSharingScopeType result = ResSharingScopeType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertResSharingScopeTypeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageDestinationUsageType createMessageDestinationUsageTypeFromString(EDataType eDataType, String initialValue) {
- MessageDestinationUsageType result = MessageDestinationUsageType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertMessageDestinationUsageTypeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public CommonPackage getCommonPackage() {
- return (CommonPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- public static CommonPackage getPackage() {
- return CommonPackage.eINSTANCE;
- }
-
-} //CommonFactoryImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java
deleted file mode 100644
index b695bf56b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CommonPackageImpl.java
+++ /dev/null
@@ -1,1568 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EcorePackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.jem.java.JavaRefPackage;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.internal.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.internal.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EjbRefType;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.EnvEntryType;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.common.Identity;
-import org.eclipse.jst.j2ee.common.J2EEEAttribute;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.MessageDestinationUsageType;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.common.ResAuthTypeBase;
-import org.eclipse.jst.j2ee.common.ResSharingScopeType;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.UseCallerIdentity;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.internal.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.internal.impl.JspPackageImpl;
-
-import org.eclipse.jst.j2ee.taglib.internal.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.internal.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.internal.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.internal.impl.WsddPackageImpl;
-
-
-public class CommonPackageImpl extends EPackageImpl implements CommonPackage, EPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass ejbRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass envEntryEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass resourceRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass securityRoleRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass securityRoleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass resourceEnvRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass ejbLocalRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass runAsSpecifiedIdentityEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass securityIdentityEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass identityEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass iconTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass displayNameEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass messageDestinationRefEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass messageDestinationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass paramValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass descriptionGroupEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass jndiEnvRefsGroupEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass useCallerIdentityEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass descriptionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass qNameEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass listenerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass compatibilityDescriptionGroupEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass j2EEEObjectEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass j2EEEAttributeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum envEntryTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum resAuthTypeBaseEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum ejbRefTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum resSharingScopeTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum messageDestinationUsageTypeEEnum = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- private CommonPackageImpl() {
- super(eNS_URI, CommonFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static CommonPackage init() {
- if (isInited) return (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
-
- // Obtain or create and register package
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CommonPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackage.eINSTANCE.eClass();
- JavaRefPackage.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof ClientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage_1 = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof ApplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EjbPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof TaglibPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof WebapplicationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof Webservice_clientPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof JspPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof WscommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof WsddPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
-
- // Create package meta-data objects
- theCommonPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theApplicationPackage_1.createPackageContents();
- theEjbPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
-
- // Initialize created meta-data
- theCommonPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theApplicationPackage_1.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theCommonPackage.freeze();
-
- return theCommonPackage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSecurityRole() {
- return securityRoleEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityRole_Description() {
- return (EAttribute)securityRoleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityRole_RoleName() {
- return (EAttribute)securityRoleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSecurityRole_Descriptions() {
- return (EReference)securityRoleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getResourceRef() {
- return resourceRefEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_Description() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_Name() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_Type() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_Auth() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_Link() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceRef_ResSharingScope() {
- return (EAttribute)resourceRefEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getResourceRef_Descriptions() {
- return (EReference)resourceRefEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getEjbRef() {
- return ejbRefEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Name() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Type() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Home() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Remote() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Link() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEjbRef_Description() {
- return (EAttribute)ejbRefEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getEjbRef_Descriptions() {
- return (EReference)ejbRefEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getEJBLocalRef() {
- return ejbLocalRefEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getEJBLocalRef_LocalHome() {
- return (EAttribute)ejbLocalRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getEJBLocalRef_Local() {
- return (EAttribute)ejbLocalRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getEnvEntry() {
- return envEntryEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEnvEntry_Description() {
- return (EAttribute)envEntryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEnvEntry_Name() {
- return (EAttribute)envEntryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEnvEntry_Value() {
- return (EAttribute)envEntryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getEnvEntry_Type() {
- return (EAttribute)envEntryEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getEnvEntry_Descriptions() {
- return (EReference)envEntryEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSecurityRoleRef() {
- return securityRoleRefEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityRoleRef_Name() {
- return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityRoleRef_Description() {
- return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityRoleRef_Link() {
- return (EAttribute)securityRoleRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSecurityRoleRef_Descriptions() {
- return (EReference)securityRoleRefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getRunAsSpecifiedIdentity() {
- return runAsSpecifiedIdentityEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getRunAsSpecifiedIdentity_Identity() {
- return (EReference)runAsSpecifiedIdentityEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSecurityIdentity() {
- return securityIdentityEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityIdentity_Description() {
- return (EAttribute)securityIdentityEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSecurityIdentity_Descriptions() {
- return (EReference)securityIdentityEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getUseCallerIdentity() {
- return useCallerIdentityEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDescription() {
- return descriptionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDescription_Lang() {
- return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDescription_Value() {
- return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getQName() {
- return qNameEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQName_NamespaceURI() {
- return (EAttribute)qNameEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQName_LocalPart() {
- return (EAttribute)qNameEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQName_CombinedQName() {
- return (EAttribute)qNameEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQName_InternalPrefixOrNsURI() {
- return (EAttribute)qNameEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getListener() {
- return listenerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getListener_ListenerClass() {
- return (EReference)listenerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getCompatibilityDescriptionGroup() {
- return compatibilityDescriptionGroupEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCompatibilityDescriptionGroup_SmallIcon() {
- return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCompatibilityDescriptionGroup_LargeIcon() {
- return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCompatibilityDescriptionGroup_Description() {
- return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCompatibilityDescriptionGroup_DisplayName() {
- return (EAttribute)compatibilityDescriptionGroupEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getJ2EEEObject() {
- return j2EEEObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getJ2EEEAttribute() {
- return j2EEEAttributeEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getIdentity() {
- return identityEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getIdentity_Description() {
- return (EAttribute)identityEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getIdentity_RoleName() {
- return (EAttribute)identityEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getIdentity_Descriptions() {
- return (EReference)identityEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getIconType() {
- return iconTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIconType_SmallIcon() {
- return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIconType_LargeIcon() {
- return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getIconType_Lang() {
- return (EAttribute)iconTypeEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDisplayName() {
- return displayNameEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDisplayName_Lang() {
- return (EAttribute)displayNameEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDisplayName_Value() {
- return (EAttribute)displayNameEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMessageDestinationRef() {
- return messageDestinationRefEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageDestinationRef_Name() {
- return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageDestinationRef_Type() {
- return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageDestinationRef_Usage() {
- return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageDestinationRef_Link() {
- return (EAttribute)messageDestinationRefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getMessageDestinationRef_Descriptions() {
- return (EReference)messageDestinationRefEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMessageDestination() {
- return messageDestinationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageDestination_Name() {
- return (EAttribute)messageDestinationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getParamValue() {
- return paramValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParamValue_Name() {
- return (EAttribute)paramValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParamValue_Value() {
- return (EAttribute)paramValueEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParamValue_Description() {
- return (EAttribute)paramValueEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getParamValue_Descriptions() {
- return (EReference)paramValueEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDescriptionGroup() {
- return descriptionGroupEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDescriptionGroup_Icons() {
- return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDescriptionGroup_DisplayNames() {
- return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDescriptionGroup_Descriptions() {
- return (EReference)descriptionGroupEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getJNDIEnvRefsGroup() {
- return jndiEnvRefsGroupEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_EnvironmentProperties() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_ResourceRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_EjbRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_ResourceEnvRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_EjbLocalRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_MessageDestinationRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getJNDIEnvRefsGroup_ServiceRefs() {
- return (EReference)jndiEnvRefsGroupEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getResourceEnvRef() {
- return resourceEnvRefEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceEnvRef_Description() {
- return (EAttribute)resourceEnvRefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceEnvRef_Name() {
- return (EAttribute)resourceEnvRefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getResourceEnvRef_Type() {
- return (EReference)resourceEnvRefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getResourceEnvRef_Descriptions() {
- return (EReference)resourceEnvRefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getEjbRefType() {
- return ejbRefTypeEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getEnvEntryType() {
- return envEntryTypeEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getResAuthTypeBase() {
- return resAuthTypeBaseEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getResSharingScopeType() {
- return resSharingScopeTypeEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getMessageDestinationUsageType() {
- return messageDestinationUsageTypeEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public CommonFactory getCommonFactory() {
- return (CommonFactory)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
- ejbRefEClass = createEClass(EJB_REF);
- createEAttribute(ejbRefEClass, EJB_REF__NAME);
- createEAttribute(ejbRefEClass, EJB_REF__TYPE);
- createEAttribute(ejbRefEClass, EJB_REF__HOME);
- createEAttribute(ejbRefEClass, EJB_REF__REMOTE);
- createEAttribute(ejbRefEClass, EJB_REF__LINK);
- createEAttribute(ejbRefEClass, EJB_REF__DESCRIPTION);
- createEReference(ejbRefEClass, EJB_REF__DESCRIPTIONS);
-
- envEntryEClass = createEClass(ENV_ENTRY);
- createEAttribute(envEntryEClass, ENV_ENTRY__DESCRIPTION);
- createEAttribute(envEntryEClass, ENV_ENTRY__NAME);
- createEAttribute(envEntryEClass, ENV_ENTRY__VALUE);
- createEAttribute(envEntryEClass, ENV_ENTRY__TYPE);
- createEReference(envEntryEClass, ENV_ENTRY__DESCRIPTIONS);
-
- resourceRefEClass = createEClass(RESOURCE_REF);
- createEAttribute(resourceRefEClass, RESOURCE_REF__DESCRIPTION);
- createEAttribute(resourceRefEClass, RESOURCE_REF__NAME);
- createEAttribute(resourceRefEClass, RESOURCE_REF__TYPE);
- createEAttribute(resourceRefEClass, RESOURCE_REF__AUTH);
- createEAttribute(resourceRefEClass, RESOURCE_REF__LINK);
- createEAttribute(resourceRefEClass, RESOURCE_REF__RES_SHARING_SCOPE);
- createEReference(resourceRefEClass, RESOURCE_REF__DESCRIPTIONS);
-
- securityRoleRefEClass = createEClass(SECURITY_ROLE_REF);
- createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__NAME);
- createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__DESCRIPTION);
- createEAttribute(securityRoleRefEClass, SECURITY_ROLE_REF__LINK);
- createEReference(securityRoleRefEClass, SECURITY_ROLE_REF__DESCRIPTIONS);
-
- securityRoleEClass = createEClass(SECURITY_ROLE);
- createEAttribute(securityRoleEClass, SECURITY_ROLE__DESCRIPTION);
- createEAttribute(securityRoleEClass, SECURITY_ROLE__ROLE_NAME);
- createEReference(securityRoleEClass, SECURITY_ROLE__DESCRIPTIONS);
-
- resourceEnvRefEClass = createEClass(RESOURCE_ENV_REF);
- createEAttribute(resourceEnvRefEClass, RESOURCE_ENV_REF__DESCRIPTION);
- createEAttribute(resourceEnvRefEClass, RESOURCE_ENV_REF__NAME);
- createEReference(resourceEnvRefEClass, RESOURCE_ENV_REF__TYPE);
- createEReference(resourceEnvRefEClass, RESOURCE_ENV_REF__DESCRIPTIONS);
-
- ejbLocalRefEClass = createEClass(EJB_LOCAL_REF);
- createEAttribute(ejbLocalRefEClass, EJB_LOCAL_REF__LOCAL_HOME);
- createEAttribute(ejbLocalRefEClass, EJB_LOCAL_REF__LOCAL);
-
- runAsSpecifiedIdentityEClass = createEClass(RUN_AS_SPECIFIED_IDENTITY);
- createEReference(runAsSpecifiedIdentityEClass, RUN_AS_SPECIFIED_IDENTITY__IDENTITY);
-
- identityEClass = createEClass(IDENTITY);
- createEAttribute(identityEClass, IDENTITY__DESCRIPTION);
- createEAttribute(identityEClass, IDENTITY__ROLE_NAME);
- createEReference(identityEClass, IDENTITY__DESCRIPTIONS);
-
- iconTypeEClass = createEClass(ICON_TYPE);
- createEAttribute(iconTypeEClass, ICON_TYPE__SMALL_ICON);
- createEAttribute(iconTypeEClass, ICON_TYPE__LARGE_ICON);
- createEAttribute(iconTypeEClass, ICON_TYPE__LANG);
-
- displayNameEClass = createEClass(DISPLAY_NAME);
- createEAttribute(displayNameEClass, DISPLAY_NAME__LANG);
- createEAttribute(displayNameEClass, DISPLAY_NAME__VALUE);
-
- messageDestinationRefEClass = createEClass(MESSAGE_DESTINATION_REF);
- createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__NAME);
- createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__TYPE);
- createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__USAGE);
- createEAttribute(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__LINK);
- createEReference(messageDestinationRefEClass, MESSAGE_DESTINATION_REF__DESCRIPTIONS);
-
- messageDestinationEClass = createEClass(MESSAGE_DESTINATION);
- createEAttribute(messageDestinationEClass, MESSAGE_DESTINATION__NAME);
-
- paramValueEClass = createEClass(PARAM_VALUE);
- createEAttribute(paramValueEClass, PARAM_VALUE__NAME);
- createEAttribute(paramValueEClass, PARAM_VALUE__VALUE);
- createEAttribute(paramValueEClass, PARAM_VALUE__DESCRIPTION);
- createEReference(paramValueEClass, PARAM_VALUE__DESCRIPTIONS);
-
- descriptionGroupEClass = createEClass(DESCRIPTION_GROUP);
- createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__ICONS);
- createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__DISPLAY_NAMES);
- createEReference(descriptionGroupEClass, DESCRIPTION_GROUP__DESCRIPTIONS);
-
- jndiEnvRefsGroupEClass = createEClass(JNDI_ENV_REFS_GROUP);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__RESOURCE_REFS);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__EJB_REFS);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS);
- createEReference(jndiEnvRefsGroupEClass, JNDI_ENV_REFS_GROUP__SERVICE_REFS);
-
- securityIdentityEClass = createEClass(SECURITY_IDENTITY);
- createEAttribute(securityIdentityEClass, SECURITY_IDENTITY__DESCRIPTION);
- createEReference(securityIdentityEClass, SECURITY_IDENTITY__DESCRIPTIONS);
-
- useCallerIdentityEClass = createEClass(USE_CALLER_IDENTITY);
-
- descriptionEClass = createEClass(DESCRIPTION);
- createEAttribute(descriptionEClass, DESCRIPTION__LANG);
- createEAttribute(descriptionEClass, DESCRIPTION__VALUE);
-
- qNameEClass = createEClass(QNAME);
- createEAttribute(qNameEClass, QNAME__NAMESPACE_URI);
- createEAttribute(qNameEClass, QNAME__LOCAL_PART);
- createEAttribute(qNameEClass, QNAME__COMBINED_QNAME);
- createEAttribute(qNameEClass, QNAME__INTERNAL_PREFIX_OR_NS_URI);
-
- listenerEClass = createEClass(LISTENER);
- createEReference(listenerEClass, LISTENER__LISTENER_CLASS);
-
- compatibilityDescriptionGroupEClass = createEClass(COMPATIBILITY_DESCRIPTION_GROUP);
- createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON);
- createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON);
- createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION);
- createEAttribute(compatibilityDescriptionGroupEClass, COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME);
-
- j2EEEObjectEClass = createEClass(J2EEE_OBJECT);
-
- j2EEEAttributeEClass = createEClass(J2EEE_ATTRIBUTE);
-
- // Create enums
- envEntryTypeEEnum = createEEnum(ENV_ENTRY_TYPE);
- resAuthTypeBaseEEnum = createEEnum(RES_AUTH_TYPE_BASE);
- ejbRefTypeEEnum = createEEnum(EJB_REF_TYPE);
- resSharingScopeTypeEEnum = createEEnum(RES_SHARING_SCOPE_TYPE);
- messageDestinationUsageTypeEEnum = createEEnum(MESSAGE_DESTINATION_USAGE_TYPE);
- }
-
- /**
- * <!-- 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
- JavaRefPackage theJavaRefPackage = (JavaRefPackage)EPackage.Registry.INSTANCE.getEPackage(JavaRefPackage.eNS_URI);
- Webservice_clientPackage theWebservice_clientPackage = (Webservice_clientPackage)EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
-
- // Add supertypes to classes
- ejbRefEClass.getESuperTypes().add(this.getJ2EEEObject());
- envEntryEClass.getESuperTypes().add(this.getJ2EEEObject());
- resourceRefEClass.getESuperTypes().add(this.getJ2EEEObject());
- securityRoleRefEClass.getESuperTypes().add(this.getJ2EEEObject());
- securityRoleEClass.getESuperTypes().add(this.getJ2EEEObject());
- resourceEnvRefEClass.getESuperTypes().add(this.getJ2EEEObject());
- ejbLocalRefEClass.getESuperTypes().add(this.getEjbRef());
- runAsSpecifiedIdentityEClass.getESuperTypes().add(this.getSecurityIdentity());
- identityEClass.getESuperTypes().add(this.getJ2EEEObject());
- iconTypeEClass.getESuperTypes().add(this.getJ2EEEObject());
- displayNameEClass.getESuperTypes().add(this.getJ2EEEObject());
- messageDestinationRefEClass.getESuperTypes().add(this.getJ2EEEObject());
- messageDestinationEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup());
- paramValueEClass.getESuperTypes().add(this.getJ2EEEObject());
- descriptionGroupEClass.getESuperTypes().add(this.getJ2EEEObject());
- jndiEnvRefsGroupEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup());
- securityIdentityEClass.getESuperTypes().add(this.getJ2EEEObject());
- useCallerIdentityEClass.getESuperTypes().add(this.getSecurityIdentity());
- descriptionEClass.getESuperTypes().add(this.getJ2EEEObject());
- qNameEClass.getESuperTypes().add(this.getJ2EEEObject());
- listenerEClass.getESuperTypes().add(this.getCompatibilityDescriptionGroup());
- compatibilityDescriptionGroupEClass.getESuperTypes().add(this.getDescriptionGroup());
- j2EEEAttributeEClass.getESuperTypes().add(theEcorePackage.getEAttribute());
-
- // Initialize classes and features; add operations and parameters
- initEClass(ejbRefEClass, EjbRef.class, "EjbRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getEjbRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEjbRef_Type(), this.getEjbRefType(), "type", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEjbRef_Home(), ecorePackage.getEString(), "home", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEjbRef_Remote(), ecorePackage.getEString(), "remote", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEjbRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEjbRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getEjbRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, EjbRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(envEntryEClass, EnvEntry.class, "EnvEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getEnvEntry_Description(), ecorePackage.getEString(), "description", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEnvEntry_Name(), ecorePackage.getEString(), "name", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEnvEntry_Value(), ecorePackage.getEString(), "value", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEnvEntry_Type(), this.getEnvEntryType(), "type", null, 0, 1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getEnvEntry_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, EnvEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(resourceRefEClass, ResourceRef.class, "ResourceRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getResourceRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceRef_Auth(), this.getResAuthTypeBase(), "auth", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceRef_ResSharingScope(), this.getResSharingScopeType(), "resSharingScope", null, 0, 1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ResourceRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(securityRoleRefEClass, SecurityRoleRef.class, "SecurityRoleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSecurityRoleRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSecurityRoleRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSecurityRoleRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityRoleRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityRoleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(securityRoleEClass, SecurityRole.class, "SecurityRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSecurityRole_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSecurityRole_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityRole_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(resourceEnvRefEClass, ResourceEnvRef.class, "ResourceEnvRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getResourceEnvRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceEnvRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceEnvRef_Type(), theJavaRefPackage.getJavaClass(), null, "type", null, 1, 1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceEnvRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ResourceEnvRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(ejbLocalRefEClass, EJBLocalRef.class, "EJBLocalRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getEJBLocalRef_LocalHome(), ecorePackage.getEString(), "localHome", null, 0, 1, EJBLocalRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getEJBLocalRef_Local(), ecorePackage.getEString(), "local", null, 0, 1, EJBLocalRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(runAsSpecifiedIdentityEClass, RunAsSpecifiedIdentity.class, "RunAsSpecifiedIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRunAsSpecifiedIdentity_Identity(), this.getIdentity(), null, "identity", null, 0, 1, RunAsSpecifiedIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(identityEClass, Identity.class, "Identity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getIdentity_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, Identity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(iconTypeEClass, IconType.class, "IconType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIconType_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getIconType_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getIconType_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, IconType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(displayNameEClass, DisplayName.class, "DisplayName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDisplayName_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, DisplayName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDisplayName_Value(), ecorePackage.getEString(), "value", null, 0, 1, DisplayName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(messageDestinationRefEClass, MessageDestinationRef.class, "MessageDestinationRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMessageDestinationRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMessageDestinationRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMessageDestinationRef_Usage(), this.getMessageDestinationUsageType(), "usage", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getMessageDestinationRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMessageDestinationRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, MessageDestinationRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(messageDestinationEClass, MessageDestination.class, "MessageDestination", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMessageDestination_Name(), ecorePackage.getEString(), "name", null, 0, 1, MessageDestination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(paramValueEClass, ParamValue.class, "ParamValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getParamValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParamValue_Value(), ecorePackage.getEString(), "value", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParamValue_Description(), ecorePackage.getEString(), "description", null, 0, 1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getParamValue_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, ParamValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(descriptionGroupEClass, DescriptionGroup.class, "DescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDescriptionGroup_Icons(), this.getIconType(), null, "icons", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDescriptionGroup_DisplayNames(), this.getDisplayName(), null, "displayNames", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDescriptionGroup_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, DescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(jndiEnvRefsGroupEClass, JNDIEnvRefsGroup.class, "JNDIEnvRefsGroup", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getJNDIEnvRefsGroup_EnvironmentProperties(), this.getEnvEntry(), null, "environmentProperties", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_ResourceRefs(), this.getResourceRef(), null, "resourceRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_EjbRefs(), this.getEjbRef(), null, "ejbRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_ResourceEnvRefs(), this.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_EjbLocalRefs(), this.getEJBLocalRef(), null, "ejbLocalRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_MessageDestinationRefs(), this.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getJNDIEnvRefsGroup_ServiceRefs(), theWebservice_clientPackage.getServiceRef(), null, "serviceRefs", null, 0, -1, JNDIEnvRefsGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(securityIdentityEClass, SecurityIdentity.class, "SecurityIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSecurityIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, SecurityIdentity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(useCallerIdentityEClass, UseCallerIdentity.class, "UseCallerIdentity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDescription_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDescription_Value(), ecorePackage.getEString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(qNameEClass, QName.class, "QName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getQName_NamespaceURI(), ecorePackage.getEString(), "namespaceURI", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQName_LocalPart(), ecorePackage.getEString(), "localPart", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQName_CombinedQName(), ecorePackage.getEString(), "combinedQName", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getQName_InternalPrefixOrNsURI(), ecorePackage.getEString(), "internalPrefixOrNsURI", null, 0, 1, QName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(listenerEClass, Listener.class, "Listener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getListener_ListenerClass(), theJavaRefPackage.getJavaClass(), null, "listenerClass", null, 1, 1, Listener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(compatibilityDescriptionGroupEClass, CompatibilityDescriptionGroup.class, "CompatibilityDescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getCompatibilityDescriptionGroup_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCompatibilityDescriptionGroup_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCompatibilityDescriptionGroup_Description(), ecorePackage.getEString(), "description", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getCompatibilityDescriptionGroup_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, CompatibilityDescriptionGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(j2EEEObjectEClass, J2EEEObject.class, "J2EEEObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(j2EEEAttributeEClass, J2EEEAttribute.class, "J2EEEAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Initialize enums and add enum literals
- initEEnum(envEntryTypeEEnum, EnvEntryType.class, "EnvEntryType");
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.STRING_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.INTEGER_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.BOOLEAN_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.DOUBLE_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.BYTE_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.SHORT_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.LONG_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.FLOAT_LITERAL);
- addEEnumLiteral(envEntryTypeEEnum, EnvEntryType.CHARACTER_LITERAL);
-
- initEEnum(resAuthTypeBaseEEnum, ResAuthTypeBase.class, "ResAuthTypeBase");
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.CONTAINER_LITERAL);
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.APPLICATION_LITERAL);
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.SERVLET_LITERAL);
-
- initEEnum(ejbRefTypeEEnum, EjbRefType.class, "EjbRefType");
- addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.SESSION_LITERAL);
- addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.ENTITY_LITERAL);
-
- initEEnum(resSharingScopeTypeEEnum, ResSharingScopeType.class, "ResSharingScopeType");
- addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.SHAREABLE_LITERAL);
- addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- initEEnum(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.class, "MessageDestinationUsageType");
- addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.CONSUMES_LITERAL);
- addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.PRODUCES_LITERAL);
- addEEnumLiteral(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.CONSUMES_PRODUCES_LITERAL);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //CommonPackageImpl
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java
deleted file mode 100644
index e62f4edf3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/CompatibilityDescriptionGroupImpl.java
+++ /dev/null
@@ -1,541 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Compatibility Description Group</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.CompatibilityDescriptionGroupImpl#getDisplayName <em>Display Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CompatibilityDescriptionGroupImpl extends DescriptionGroupImpl implements CompatibilityDescriptionGroup {
- /**
- * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSmallIcon()
- * @generated
- * @ordered
- */
- protected static final String SMALL_ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSmallIcon()
- * @generated
- * @ordered
- */
- protected String smallIcon = SMALL_ICON_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLargeIcon()
- * @generated
- * @ordered
- */
- protected static final String LARGE_ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLargeIcon()
- * @generated
- * @ordered
- */
- protected String largeIcon = LARGE_ICON_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected static final String DISPLAY_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected String displayName = DISPLAY_NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- */
- protected CompatibilityDescriptionGroupImpl() {
- super();
- eAdapters().add(new DescriptionGroupAdapter());
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.COMPATIBILITY_DESCRIPTION_GROUP;
- }
-
- public String getSmallIcon() {
- if(eResource() == null)
- return getSmallIconGen();
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- return getSmallIconGen();
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- if (getIcons().size() > 0)
- return ((IconType)getIcons().get(0)).getSmallIcon();
- }
- return null;
- }
-
- public void setSmallIcon(String newSmallIcon) {
- if(eResource() == null) {
- setSmallIconGen(newSmallIcon);
- internalSetSmallIconInList(newSmallIcon);
- return;
- }
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- setSmallIconGen(newSmallIcon);
- break;
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- internalSetSmallIconInList(newSmallIcon);
- break;
- }
- }
- /**
- * @param newSmallIcon
- */
- protected void internalSetSmallIconInList(String newSmallIcon) {
- IconType newValue = null;
- if(getIcons().size() > 0) {
- newValue = (IconType) getIcons().get(0);
- newValue.setSmallIcon(newSmallIcon);
- }
- else {
- newValue = CommonFactory.eINSTANCE.createIconType();
- newValue.setSmallIcon(newSmallIcon);
- getIcons().add(newValue);
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSmallIconGen() {
- return smallIcon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSmallIconGen(String newSmallIcon) {
- String oldSmallIcon = smallIcon;
- smallIcon = newSmallIcon;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON, oldSmallIcon, smallIcon));
- }
-
- public String getLargeIcon() {
- if(eResource() == null)
- return getLargeIconGen();
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- return getLargeIconGen();
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- if (getIcons().size() > 0)
- return ((IconType)getIcons().get(0)).getLargeIcon();
- }
- return null;
- }
-
- public void setLargeIcon(String newLargeIcon) {
- if(eResource() == null) {
- setLargeIconGen(newLargeIcon);
- internalSetLargeIconInList(newLargeIcon);
- return;
- }
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- setLargeIconGen(newLargeIcon);
- break;
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- internalSetLargeIconInList(newLargeIcon);
- break;
- }
- }
-
- /**
- * @param newLargeIcon
- */
- protected void internalSetLargeIconInList(String newLargeIcon) {
- IconType newValue = null;
- if(getIcons().size() > 0) {
- newValue = (IconType) getIcons().get(0);
- newValue.setLargeIcon(newLargeIcon);
- }
- else {
- newValue = CommonFactory.eINSTANCE.createIconType();
- newValue.setLargeIcon(newLargeIcon);
- getIcons().add(newValue);
- }
-
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLargeIconGen() {
- return largeIcon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLargeIconGen(String newLargeIcon) {
- String oldLargeIcon = largeIcon;
- largeIcon = newLargeIcon;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON, oldLargeIcon, largeIcon));
- }
-
- public String getDescription() {
- if(eResource() == null)
- return getDescriptionGen();
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- return getDescriptionGen();
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- if (getDescriptions().size() > 0)
- return ((Description)getDescriptions().get(0)).getValue();
- }
- return null;
- }
-
- public void setDescription(String newDescription) {
- if(eResource() == null) {
- setDescriptionGen(newDescription);
- internalSetDescriptionInList(newDescription);
- return;
- }
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- setDescriptionGen(newDescription);
- break;
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- internalSetDescriptionInList(newDescription);
- break;
- }
- }
-
- /**
- * @param newDescription
- */
- protected void internalSetDescriptionInList(String newDescription) {
- Description newValue = null;
- if(getDescriptions().size() > 0) {
- newValue = (Description) getDescriptions().get(0);
- newValue.setValue(newDescription);
- }
- else {
- newValue = CommonFactory.eINSTANCE.createDescription();
- newValue.setValue(newDescription);
- getDescriptions().add(newValue);
- }
-
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDescriptionGen() {
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDescriptionGen(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION, oldDescription, description));
- }
-
- public String getDisplayName() {
- if(eResource() == null)
- return getDisplayNameGen();
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- return getDisplayNameGen();
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- if (getDisplayNames().size() > 0)
- return ((DisplayName)getDisplayNames().get(0)).getValue();
- }
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.common.DescriptionGroup#setDisplayName(java.lang.String)
- */
- public void setDisplayName(String newDisplayName) {
- if(eResource() == null) {
- setDisplayNameGen(newDisplayName);
- internalSetDisplayNameInList(newDisplayName);
- return;
- }
-
- switch (getJ2EEVersionID()) {
- case J2EEVersionConstants.J2EE_1_2_ID :
- case J2EEVersionConstants.J2EE_1_3_ID :
- setDisplayNameGen(newDisplayName);
- break;
- case J2EEVersionConstants.J2EE_1_4_ID :
- default :
- internalSetDisplayNameInList(newDisplayName);
- break;
- }
- }
-
- /**
- * @param newDisplayName
- */
- protected void internalSetDisplayNameInList(String newDisplayName) {
- DisplayName newValue = null;
- if(getDisplayNames().size() > 0) {
- newValue = (DisplayName) getDisplayNames().get(0);
- newValue.setValue(newDisplayName);
- }
- else {
- newValue = CommonFactory.eINSTANCE.createDisplayName();
- newValue.setValue(newDisplayName);
- getDisplayNames().add(newValue);
- }
-
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDisplayNameGen() {
- return displayName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDisplayNameGen(String newDisplayName) {
- String oldDisplayName = displayName;
- displayName = newDisplayName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME, oldDisplayName, displayName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON:
- return getSmallIcon();
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON:
- return getLargeIcon();
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION:
- return getDescription();
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME:
- return getDisplayName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME:
- setDisplayName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (smallIcon: ");
- result.append(smallIcon);
- result.append(", largeIcon: ");
- result.append(largeIcon);
- result.append(", description: ");
- result.append(description);
- result.append(", displayName: ");
- result.append(displayName);
- result.append(')');
- return result.toString();
- }
-
-} //CompatibilityDescriptionGroupImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java
deleted file mode 100644
index d87b2d7f5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupAdapter.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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
- *******************************************************************************/
-/*
- * Created on Mar 3, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.IconType;
-
-
-
-/**
- * @author cbridgha
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
- public class DescriptionGroupAdapter extends AdapterImpl {
-
- /* (non-Javadoc)
- * @see org.eclipse.emf.common.notify.Adapter#notifyChanged(org.eclipse.emf.common.notify.Notification)
- */
- public void notifyChanged(Notification msg) {
- if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Icons() ||
- msg.getFeature() == CommonPackage.eINSTANCE.getIconType_LargeIcon() ||
- msg.getFeature() == CommonPackage.eINSTANCE.getIconType_SmallIcon()) {
- synchIcons();
- return;
- }
- else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions() ||
- msg.getFeature() == CommonPackage.eINSTANCE.getDescription_Value()) {
- synchDescription();
- return;
- }
- else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames() ||
- msg.getFeature() == CommonPackage.eINSTANCE.getDisplayName_Value()) {
- synchDisplayName();
- return;
- }
-
- }
-
- /**
- *
- */
- private void synchDescription() {
- CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget();
- if (myTarget.getDescriptions().isEmpty())
- myTarget.setDescriptionGen(null);
- else {
- Description aDescription = (Description)myTarget.getDescriptions().get(0);
- if (!aDescription.eAdapters().contains(this))
- aDescription.eAdapters().add(this);
- else
- myTarget.setDescriptionGen(aDescription.getValue());
- }
- }
-
- /**
- *
- */
- private void synchDisplayName() {
- CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget();
- if (myTarget.getDisplayNames().isEmpty())
- myTarget.setDisplayNameGen(null);
- else {
- DisplayName aDisplayName = (DisplayName)myTarget.getDisplayNames().get(0);
- if (!aDisplayName.eAdapters().contains(this))
- aDisplayName.eAdapters().add(this);
- myTarget.setDisplayNameGen(aDisplayName.getValue());
- }
- }
-
- /**
- *
- */
- private void synchIcons() {
- CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget();
- if (myTarget.getIcons().isEmpty()) {
- myTarget.setLargeIconGen(null);
- myTarget.setSmallIconGen(null);
- }
- else {
- IconType anIcon = (IconType)myTarget.getIcons().get(0);
- if (!anIcon.eAdapters().contains(this))
- anIcon.eAdapters().add(this);
- else {
- myTarget.setLargeIconGen(anIcon.getLargeIcon());
- myTarget.setSmallIconGen(anIcon.getSmallIcon());
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.emf.common.notify.Adapter#setTarget(org.eclipse.emf.common.notify.Notifier)
- */
- public void setTarget(Notifier newTarget) {
- if (newTarget instanceof CompatibilityDescriptionGroup)
- super.setTarget(newTarget);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java
deleted file mode 100644
index 1b3fc8e55..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionGroupImpl.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource;
-
-
-/**
- * <!-- begin-user-doc -->An implementation of the model object '<em><b>Description Group</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getIcons <em>Icons</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getDisplayNames <em>Display Names</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionGroupImpl#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DescriptionGroupImpl extends J2EEEObjectImpl implements DescriptionGroup {
- /**
- * The cached value of the '{@link #getIcons() <em>Icons</em>}' containment reference list.
- * <!-- begin-user-doc --><!-- end-user-doc -->
- *
- * @see #getIcons() @generated @ordered
- */
- protected EList icons = null;
-
- /**
- * The cached value of the '{@link #getDisplayNames() <em>Display Names</em>}' containment
- * reference list. <!-- begin-user-doc --><!-- end-user-doc -->
- *
- * @see #getDisplayNames() @generated @ordered
- */
- protected EList displayNames = null;
-
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment
- * reference list. <!-- begin-user-doc --><!-- end-user-doc -->
- *
- * @see #getDescriptions() @generated @ordered
- */
- protected EList descriptions = null;
-
- /**
- * <!-- begin-user-doc --><!-- end-user-doc -->@generated
- */
- protected DescriptionGroupImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --><!-- end-user-doc -->@generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.DESCRIPTION_GROUP;
- }
-
- /**
- * <!-- begin-user-doc --><!-- end-user-doc -->@generated
- */
- public EList getIcons() {
- if (icons == null) {
- icons = new EObjectContainmentEList(IconType.class, this, CommonPackage.DESCRIPTION_GROUP__ICONS);
- }
- return icons;
- }
-
- /**
- * <!-- begin-user-doc --><!-- end-user-doc -->@generated
- */
- public EList getDisplayNames() {
- if (displayNames == null) {
- displayNames = new EObjectContainmentEList(DisplayName.class, this, CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES);
- }
- return displayNames;
- }
-
- /**
- * <!-- begin-user-doc --><!-- end-user-doc -->@generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION_GROUP__ICONS:
- return ((InternalEList)getIcons()).basicRemove(otherEnd, msgs);
- case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES:
- return ((InternalEList)getDisplayNames()).basicRemove(otherEnd, msgs);
- case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION_GROUP__ICONS:
- return getIcons();
- case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES:
- return getDisplayNames();
- case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION_GROUP__ICONS:
- getIcons().clear();
- getIcons().addAll((Collection)newValue);
- return;
- case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES:
- getDisplayNames().clear();
- getDisplayNames().addAll((Collection)newValue);
- return;
- case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION_GROUP__ICONS:
- getIcons().clear();
- return;
- case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES:
- getDisplayNames().clear();
- return;
- case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION_GROUP__ICONS:
- return icons != null && !icons.isEmpty();
- case CommonPackage.DESCRIPTION_GROUP__DISPLAY_NAMES:
- return displayNames != null && !displayNames.isEmpty();
- case CommonPackage.DESCRIPTION_GROUP__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.internal.common.DescriptionGroup#getJ2EEVersionID()
- */
- public int getJ2EEVersionID() throws IllegalStateException {
-
- try {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null)
- throw new IllegalStateException();
- return res.getJ2EEVersionID();
- } catch (ClassCastException exception) {
- return J2EEVersionConstants.J2EE_1_3_ID;
- }
-
- }
-
-} //DescriptionGroupImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java
deleted file mode 100644
index 0759cab8d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DescriptionImpl.java
+++ /dev/null
@@ -1,216 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Description</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DescriptionImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DescriptionImpl extends J2EEEObjectImpl implements Description {
- /**
- * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected static final String LANG_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected String lang = LANG_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DescriptionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.DESCRIPTION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLang() {
- return lang;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLang(String newLang) {
- String oldLang = lang;
- lang = newLang;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DESCRIPTION__LANG, oldLang, lang));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DESCRIPTION__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION__LANG:
- return getLang();
- case CommonPackage.DESCRIPTION__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION__LANG:
- setLang((String)newValue);
- return;
- case CommonPackage.DESCRIPTION__VALUE:
- setValue((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION__LANG:
- setLang(LANG_EDEFAULT);
- return;
- case CommonPackage.DESCRIPTION__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.DESCRIPTION__LANG:
- return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
- case CommonPackage.DESCRIPTION__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (lang: ");
- result.append(lang);
- result.append(", value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} //DescriptionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java
deleted file mode 100644
index 880d4aaf4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/DisplayNameImpl.java
+++ /dev/null
@@ -1,216 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.DisplayName;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Display Name</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.DisplayNameImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DisplayNameImpl extends J2EEEObjectImpl implements DisplayName {
- /**
- * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected static final String LANG_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected String lang = LANG_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DisplayNameImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.DISPLAY_NAME;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLang() {
- return lang;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLang(String newLang) {
- String oldLang = lang;
- lang = newLang;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DISPLAY_NAME__LANG, oldLang, lang));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.DISPLAY_NAME__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.DISPLAY_NAME__LANG:
- return getLang();
- case CommonPackage.DISPLAY_NAME__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.DISPLAY_NAME__LANG:
- setLang((String)newValue);
- return;
- case CommonPackage.DISPLAY_NAME__VALUE:
- setValue((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.DISPLAY_NAME__LANG:
- setLang(LANG_EDEFAULT);
- return;
- case CommonPackage.DISPLAY_NAME__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.DISPLAY_NAME__LANG:
- return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
- case CommonPackage.DISPLAY_NAME__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (lang: ");
- result.append(lang);
- result.append(", value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} //DisplayNameImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java
deleted file mode 100644
index 7baf31831..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EJBLocalRefImpl.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-
-/**
- * The ejb-local-ref element is used for the declaration of a reference to another enterprise bean's local home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing enterprise bean; the expected type of the referenced enterprise bean; the expected local home and local interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean.
- * Used in: entity, session, message-driven
- * @generated
- */
-public class EJBLocalRefImpl extends EjbRefImpl implements EJBLocalRef {
-
- /**
- * The default value of the '{@link #getLocalHome() <em>Local Home</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalHome()
- * @generated
- * @ordered
- */
- protected static final String LOCAL_HOME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLocalHome() <em>Local Home</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalHome()
- * @generated
- * @ordered
- */
- protected String localHome = LOCAL_HOME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLocal() <em>Local</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocal()
- * @generated
- * @ordered
- */
- protected static final String LOCAL_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLocal() <em>Local</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocal()
- * @generated
- * @ordered
- */
- protected String local = LOCAL_EDEFAULT;
-
- public EJBLocalRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.EJB_LOCAL_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLocalHome() {
- return localHome;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLocalHome(String newLocalHome) {
- String oldLocalHome = localHome;
- localHome = newLocalHome;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_LOCAL_REF__LOCAL_HOME, oldLocalHome, localHome));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLocal() {
- return local;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLocal(String newLocal) {
- String oldLocal = local;
- local = newLocal;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_LOCAL_REF__LOCAL, oldLocal, local));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME:
- return getLocalHome();
- case CommonPackage.EJB_LOCAL_REF__LOCAL:
- return getLocal();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME:
- setLocalHome((String)newValue);
- return;
- case CommonPackage.EJB_LOCAL_REF__LOCAL:
- setLocal((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME:
- setLocalHome(LOCAL_HOME_EDEFAULT);
- return;
- case CommonPackage.EJB_LOCAL_REF__LOCAL:
- setLocal(LOCAL_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.EJB_LOCAL_REF__LOCAL_HOME:
- return LOCAL_HOME_EDEFAULT == null ? localHome != null : !LOCAL_HOME_EDEFAULT.equals(localHome);
- case CommonPackage.EJB_LOCAL_REF__LOCAL:
- return LOCAL_EDEFAULT == null ? local != null : !LOCAL_EDEFAULT.equals(local);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (localHome: ");
- result.append(localHome);
- result.append(", local: ");
- result.append(local);
- result.append(')');
- return result.toString();
- }
-
-/**
- * Return true if the ejbref is for a local ejb interface.
- */
-public boolean isLocal(){
- return true;
-}
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.EjbRef#getRemote()
- */
- public String getRemote() {
- return getLocal(); //forward to the local
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.EjbRef#setRemote(java.lang.String)
- */
- public void setRemote(String value) {
- setLocal(value); //forward to the local
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.EjbRef#getHome()
- */
- public String getHome() {
- return getLocalHome(); //forward to the local home
- }
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.EjbRef#setHome(java.lang.String)
- */
- public void setHome(String value) {
- setLocalHome(value); //forward to the local home
- }
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java
deleted file mode 100644
index 9e10cf1ba..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EjbRefImpl.java
+++ /dev/null
@@ -1,517 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EjbRefType;
-import org.eclipse.jst.j2ee.ejb.EJBJar;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-
-/**
- * The ejb-ref element is used for the declaration of a reference to an enterprise bean's home. The declaration consists of an optional description; the EJB reference name used in the code of the referencing application client; the expected type of the referenced enterprise bean; the expected home and remote interfaces of the referenced enterprise bean; and an optional ejb-link information. The optional ejb-link element is used to specify the referenced enterprise bean.
- * @generated
- */
-public class EjbRefImpl extends J2EEEObjectImpl implements EjbRef {
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final EjbRefType TYPE_EDEFAULT = EjbRefType.SESSION_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EjbRefType type = TYPE_EDEFAULT;
- /**
- * This is true if the Type attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean typeESet = false;
-
- /**
- * The default value of the '{@link #getHome() <em>Home</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHome()
- * @generated
- * @ordered
- */
- protected static final String HOME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String home = HOME_EDEFAULT;
- /**
- * The default value of the '{@link #getRemote() <em>Remote</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRemote()
- * @generated
- * @ordered
- */
- protected static final String REMOTE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String remote = REMOTE_EDEFAULT;
- /**
- * The default value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected static final String LINK_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String link = LINK_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public EjbRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.EJB_REF;
- }
-
-/**
- * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter.
- * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise
- * return null
- */
-public EnterpriseBean getLinkedEjb(EJBJar ejbJar) {
- if (getLink() == null) {
- return null;
- }
- return ejbJar.getEnterpiseBeanFromRef(this);
-}/**
- * Return an enterprise bean referenced by the EjbRef, if one exists, within the scope of the parameter.
- * The ejb-link value of the ref must equate to a named enterprise bean contained in the jar; otherwise
- * return null
- */
-public boolean isEquivalent(EjbRef anEjbRef) {
- if (anEjbRef == null) return false;
- boolean equiv = true;
- equiv = getName() == anEjbRef.getName() || (getName() != null && getName().equals(anEjbRef.getName()));
- if (equiv)
- equiv = getHome() == anEjbRef.getHome() || (getHome() != null && getHome().equals(anEjbRef.getHome()));
- if (equiv)
- equiv = getRemote() == anEjbRef.getRemote() || (getRemote() != null && getRemote().equals(anEjbRef.getRemote()));
- if (equiv)
- equiv = getLink() == anEjbRef.getLink() || (getLink() != null && getLink().equals(anEjbRef.getLink()));
- return equiv;
-}
-public boolean isLinked(EnterpriseBean anEJB) {
- if (getLink() == null)
- return false;
- return getLink().equals(anEJB.getName());
-}
-/**
- * Return true if the ejbref is for a local ejb interface.
- */
-public boolean isLocal(){
- return false;
-}
- /**
- * @generated This field/method will be replaced during code generation
- * The ejb-ref-name element contains the name of an EJB reference. This is the JNDI name that the servlet code uses to get a reference to the enterprise bean.
- * Example: <ejb-ref-name>ejb//Payroll<//ejb-ref-name>
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The ejb-ref-type element contains the expected type of the referenced enterprise bean. The ejb-ref-type element must be one of the following:
- * <ejb-ref-type>Entity<//ejb-ref-type>
- * <ejb-ref-type>Session<//ejb-ref-type>
- */
- public EjbRefType getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setType(EjbRefType newType) {
- EjbRefType oldType = type;
- type = newType == null ? TYPE_EDEFAULT : newType;
- boolean oldTypeESet = typeESet;
- typeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__TYPE, oldType, type, !oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetType() {
- EjbRefType oldType = type;
- boolean oldTypeESet = typeESet;
- type = TYPE_EDEFAULT;
- typeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.EJB_REF__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetType() {
- return typeESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The home element contains the fully-qualified name of the enterprise bean's home interface.
- * Example: <home>com.aardvark.payroll.PayrollHome<//home>
- */
- public String getHome() {
- return home;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setHome(String newHome) {
- String oldHome = home;
- home = newHome;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__HOME, oldHome, home));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The remote element contains the fully-qualified name of the enterprise bean's remote interface.
- */
- public String getRemote() {
- return remote;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRemote(String newRemote) {
- String oldRemote = remote;
- remote = newRemote;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__REMOTE, oldRemote, remote));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The ejb-link element is used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing J2EE Application package. The value of the ejb-link element must be the ejb-name of an enterprise bean in the same J2EE Application package.
- * Example: <ejb-link>EmployeeRecord<//ejb-link>
- */
- public String getLink() {
- return link;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLink(String newLink) {
- String oldLink = link;
- link = newLink;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__LINK, oldLink, link));
- }
-
- /**
- * @generated This field/method will be replaced during code generation The
- * description element is used by the ejb-jar file producer to
- * provide text describing the parent element. The description
- * element should include any information that the ejb-jar file
- * producer wants to provide to the consumer of the ejb-jar file
- * (i.e. to the Deployer). Typically, the tools used by the
- * ejb-jar file consumer will display the description when
- * processing the parent element.
- */
- public void setDescriptionGen(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.EJB_REF__DESCRIPTION, oldDescription, description));
- }
-
- public void setDescription(String newDescription) {
- if (!getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- setDescriptionGen(newDescription);
- }
-
- public String getDescription() {
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return description;
- }
-
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.EJB_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.EJB_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.EJB_REF__NAME:
- return getName();
- case CommonPackage.EJB_REF__TYPE:
- return getType();
- case CommonPackage.EJB_REF__HOME:
- return getHome();
- case CommonPackage.EJB_REF__REMOTE:
- return getRemote();
- case CommonPackage.EJB_REF__LINK:
- return getLink();
- case CommonPackage.EJB_REF__DESCRIPTION:
- return getDescription();
- case CommonPackage.EJB_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.EJB_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.EJB_REF__TYPE:
- setType((EjbRefType)newValue);
- return;
- case CommonPackage.EJB_REF__HOME:
- setHome((String)newValue);
- return;
- case CommonPackage.EJB_REF__REMOTE:
- setRemote((String)newValue);
- return;
- case CommonPackage.EJB_REF__LINK:
- setLink((String)newValue);
- return;
- case CommonPackage.EJB_REF__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.EJB_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.EJB_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.EJB_REF__TYPE:
- unsetType();
- return;
- case CommonPackage.EJB_REF__HOME:
- setHome(HOME_EDEFAULT);
- return;
- case CommonPackage.EJB_REF__REMOTE:
- setRemote(REMOTE_EDEFAULT);
- return;
- case CommonPackage.EJB_REF__LINK:
- setLink(LINK_EDEFAULT);
- return;
- case CommonPackage.EJB_REF__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.EJB_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.EJB_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.EJB_REF__TYPE:
- return isSetType();
- case CommonPackage.EJB_REF__HOME:
- return HOME_EDEFAULT == null ? home != null : !HOME_EDEFAULT.equals(home);
- case CommonPackage.EJB_REF__REMOTE:
- return REMOTE_EDEFAULT == null ? remote != null : !REMOTE_EDEFAULT.equals(remote);
- case CommonPackage.EJB_REF__LINK:
- return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link);
- case CommonPackage.EJB_REF__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.EJB_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", type: ");
- if (typeESet) result.append(type); else result.append("<unset>");
- result.append(", home: ");
- result.append(home);
- result.append(", remote: ");
- result.append(remote);
- result.append(", link: ");
- result.append(link);
- result.append(", description: ");
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java
deleted file mode 100644
index 33d976105..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/EnvEntryImpl.java
+++ /dev/null
@@ -1,371 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.EnvEntryType;
-
-/**
- * The env-entry element contains the declaration of an application client's environment entries. The declaration consists of an optional description, the name of the environment entry, and an optional value.
- * @generated
- */
-public class EnvEntryImpl extends J2EEEObjectImpl implements EnvEntry {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String value = VALUE_EDEFAULT;
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final EnvEntryType TYPE_EDEFAULT = EnvEntryType.STRING_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EnvEntryType type = TYPE_EDEFAULT;
- /**
- * This is true if the Type attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean typeESet = false;
-
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public EnvEntryImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.ENV_ENTRY;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The description element is used by the ejb-jar file producer to provide text describing the parent element. The description element should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the parent element.
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The env-entry-name element contains the name of an application client's environment entry.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The env-entry-value element contains the value of an application client's environment entry. The value must be a String that is valid for the constructor of the specified type that takes a single String parameter.
- * Used in: env-entry
- * Example:
- * <env-entry-value>//datasources//MyDatabase<//env-entry-value>
- */
- public String getValue() {
- return value;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__VALUE, oldValue, value));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The env-entry-type element contains the fully-qualified Java type of the environment entry value that is expected by the application client's code. The following are the legal values of env-entry-type: java.lang.Bool-ean, java.lang.String, java.lang.Integer, java.lang.Double, java.lang.Byte, java.lang.Short, java.lang.Long, and java.lang.Float.
- * Example: <env-entry-type>java.lang.Boolean<//env-entry-type>
- */
- public EnvEntryType getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setType(EnvEntryType newType) {
- EnvEntryType oldType = type;
- type = newType == null ? TYPE_EDEFAULT : newType;
- boolean oldTypeESet = typeESet;
- typeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ENV_ENTRY__TYPE, oldType, type, !oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetType() {
- EnvEntryType oldType = type;
- boolean oldTypeESet = typeESet;
- type = TYPE_EDEFAULT;
- typeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.ENV_ENTRY__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetType() {
- return typeESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.ENV_ENTRY__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.ENV_ENTRY__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.ENV_ENTRY__DESCRIPTION:
- return getDescription();
- case CommonPackage.ENV_ENTRY__NAME:
- return getName();
- case CommonPackage.ENV_ENTRY__VALUE:
- return getValue();
- case CommonPackage.ENV_ENTRY__TYPE:
- return getType();
- case CommonPackage.ENV_ENTRY__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.ENV_ENTRY__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.ENV_ENTRY__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.ENV_ENTRY__VALUE:
- setValue((String)newValue);
- return;
- case CommonPackage.ENV_ENTRY__TYPE:
- setType((EnvEntryType)newValue);
- return;
- case CommonPackage.ENV_ENTRY__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.ENV_ENTRY__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.ENV_ENTRY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.ENV_ENTRY__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case CommonPackage.ENV_ENTRY__TYPE:
- unsetType();
- return;
- case CommonPackage.ENV_ENTRY__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.ENV_ENTRY__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.ENV_ENTRY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.ENV_ENTRY__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- case CommonPackage.ENV_ENTRY__TYPE:
- return isSetType();
- case CommonPackage.ENV_ENTRY__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", name: ");
- result.append(name);
- result.append(", value: ");
- result.append(value);
- result.append(", type: ");
- if (typeESet) result.append(type); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java
deleted file mode 100644
index d2e2058ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IconTypeImpl.java
+++ /dev/null
@@ -1,270 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.IconType;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Icon Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.IconTypeImpl#getLang <em>Lang</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IconTypeImpl extends J2EEEObjectImpl implements IconType {
- /**
- * The default value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSmallIcon()
- * @generated
- * @ordered
- */
- protected static final String SMALL_ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSmallIcon() <em>Small Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSmallIcon()
- * @generated
- * @ordered
- */
- protected String smallIcon = SMALL_ICON_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLargeIcon()
- * @generated
- * @ordered
- */
- protected static final String LARGE_ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLargeIcon() <em>Large Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLargeIcon()
- * @generated
- * @ordered
- */
- protected String largeIcon = LARGE_ICON_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected static final String LANG_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLang()
- * @generated
- * @ordered
- */
- protected String lang = LANG_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IconTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.ICON_TYPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSmallIcon() {
- return smallIcon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSmallIcon(String newSmallIcon) {
- String oldSmallIcon = smallIcon;
- smallIcon = newSmallIcon;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__SMALL_ICON, oldSmallIcon, smallIcon));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLargeIcon() {
- return largeIcon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLargeIcon(String newLargeIcon) {
- String oldLargeIcon = largeIcon;
- largeIcon = newLargeIcon;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__LARGE_ICON, oldLargeIcon, largeIcon));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLang() {
- return lang;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLang(String newLang) {
- String oldLang = lang;
- lang = newLang;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ICON_TYPE__LANG, oldLang, lang));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.ICON_TYPE__SMALL_ICON:
- return getSmallIcon();
- case CommonPackage.ICON_TYPE__LARGE_ICON:
- return getLargeIcon();
- case CommonPackage.ICON_TYPE__LANG:
- return getLang();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.ICON_TYPE__SMALL_ICON:
- setSmallIcon((String)newValue);
- return;
- case CommonPackage.ICON_TYPE__LARGE_ICON:
- setLargeIcon((String)newValue);
- return;
- case CommonPackage.ICON_TYPE__LANG:
- setLang((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.ICON_TYPE__SMALL_ICON:
- setSmallIcon(SMALL_ICON_EDEFAULT);
- return;
- case CommonPackage.ICON_TYPE__LARGE_ICON:
- setLargeIcon(LARGE_ICON_EDEFAULT);
- return;
- case CommonPackage.ICON_TYPE__LANG:
- setLang(LANG_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.ICON_TYPE__SMALL_ICON:
- return SMALL_ICON_EDEFAULT == null ? smallIcon != null : !SMALL_ICON_EDEFAULT.equals(smallIcon);
- case CommonPackage.ICON_TYPE__LARGE_ICON:
- return LARGE_ICON_EDEFAULT == null ? largeIcon != null : !LARGE_ICON_EDEFAULT.equals(largeIcon);
- case CommonPackage.ICON_TYPE__LANG:
- return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (smallIcon: ");
- result.append(smallIcon);
- result.append(", largeIcon: ");
- result.append(largeIcon);
- result.append(", lang: ");
- result.append(lang);
- result.append(')');
- return result.toString();
- }
-
-} //IconTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java
deleted file mode 100644
index 8edf2d812..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/IdentityImpl.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.Identity;
-
-
-/**
- * Specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role.
- * @generated
- */
-public class IdentityImpl extends J2EEEObjectImpl implements Identity {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRoleName()
- * @generated
- * @ordered
- */
- protected static final String ROLE_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String roleName = ROLE_NAME_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public IdentityImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.IDENTITY;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The description is used by the ejb-jar file producer to provide text describing the run as identity.
- *
- * The description should include any information that the ejb-jar file producer wants to provide to the consumer of the ejb-jar file (i.e. to the Deployer). Typically, the tools used by the ejb-jar file consumer will display the description when processing the list of dependents.
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.IDENTITY__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The role-name element contains the name of a security role.
- *
- * The name must conform to the lexical rules for an NMTOKEN.
- */
- public String getRoleName() {
- return roleName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRoleName(String newRoleName) {
- String oldRoleName = roleName;
- roleName = newRoleName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.IDENTITY__ROLE_NAME, oldRoleName, roleName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.IDENTITY__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.IDENTITY__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.IDENTITY__DESCRIPTION:
- return getDescription();
- case CommonPackage.IDENTITY__ROLE_NAME:
- return getRoleName();
- case CommonPackage.IDENTITY__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.IDENTITY__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.IDENTITY__ROLE_NAME:
- setRoleName((String)newValue);
- return;
- case CommonPackage.IDENTITY__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.IDENTITY__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.IDENTITY__ROLE_NAME:
- setRoleName(ROLE_NAME_EDEFAULT);
- return;
- case CommonPackage.IDENTITY__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.IDENTITY__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.IDENTITY__ROLE_NAME:
- return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName);
- case CommonPackage.IDENTITY__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", roleName: ");
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEAttributeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEAttributeImpl.java
deleted file mode 100644
index 3a89e5d2d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEAttributeImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.EAttributeImpl;
-
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.J2EEEAttribute;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>J2EEE Attribute</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class J2EEEAttributeImpl extends EAttributeImpl implements J2EEEAttribute {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected J2EEEAttributeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.J2EEE_ATTRIBUTE;
- }
-
-} //J2EEEAttributeImpl \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEObjectImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEObjectImpl.java
deleted file mode 100644
index 6413581ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEEObjectImpl.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>J2EEE Object</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class J2EEEObjectImpl extends EObjectImpl implements J2EEEObject {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected J2EEEObjectImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.J2EEE_OBJECT;
- }
-
-} //J2EEEObjectImpl \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java
deleted file mode 100644
index 4210a55fd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResouceFactorySaxRegistry.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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
- *******************************************************************************/
-/*
- * Created on Mar 11, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.common.internal.impl;
-import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory;
-import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory;
-import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory;
-import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants;
-import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory;
-import org.eclipse.wst.common.internal.emf.resource.EMF2SAXRendererFactory;
-
-/**
- * @author jsholl
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code
- * and Comments
- */
-public class J2EEResouceFactorySaxRegistry extends J2EEResourceFactoryRegistry {
- public static J2EEResourceFactoryRegistry INSTANCE = new J2EEResouceFactorySaxRegistry();
-
- public J2EEResouceFactorySaxRegistry() {
- super();
- initRegistration();
- }
- private void initRegistration() {
- EMF2SAXRendererFactory.INSTANCE.setValidating(false);
- registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(EMF2SAXRendererFactory.INSTANCE));
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java
deleted file mode 100644
index 8eb5915a1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryDomRegistry.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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
- *******************************************************************************/
-/*
- * Created on May 20, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.common.internal.impl;
-
-import org.eclipse.jst.j2ee.application.internal.impl.ApplicationResourceFactory;
-import org.eclipse.jst.j2ee.client.internal.impl.ApplicationClientResourceFactory;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.jca.internal.impl.ConnectorResourceFactory;
-import org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppResourceFactory;
-import org.eclipse.jst.j2ee.webservice.internal.WebServiceConstants;
-import org.eclipse.jst.j2ee.webservice.internal.wsdd.WsddResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.internal.impl.WebServicesClientResourceFactory;
-import org.eclipse.wst.common.internal.emf.resource.EMF2DOMRendererFactory;
-import org.eclipse.wst.common.internal.emf.resource.EMF2SAXRendererFactory;
-
-
-
-/**
- * @author mdelder
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class J2EEResourceFactoryDomRegistry
- extends J2EEResourceFactoryRegistry {
-
- /**
- *
- */
- public J2EEResourceFactoryDomRegistry() {
- super();
- initRegistration();
- }
-
- private void initRegistration() {
- EMF2SAXRendererFactory.INSTANCE.setValidating(false);
- registerLastFileSegment(J2EEConstants.EJBJAR_DD_SHORT_NAME, new EJBJarResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.WEBAPP_DD_SHORT_NAME, new WebAppResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.APP_CLIENT_DD_SHORT_NAME, new ApplicationClientResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.APPLICATION_DD_SHORT_NAME, new ApplicationResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(J2EEConstants.WEB_SERVICES_CLIENT_SHORTNAME, new WebServicesClientResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- registerLastFileSegment(WebServiceConstants.WEBSERVICE_DD_SHORT_NAME, new WsddResourceFactory(EMF2DOMRendererFactory.INSTANCE));
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java
deleted file mode 100644
index 3229aba6e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/J2EEResourceFactoryRegistry.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry;
-
-
-public class J2EEResourceFactoryRegistry extends FileNameResourceFactoryRegistry {
-
- public static J2EEResourceFactoryRegistry INSTANCE = new J2EEResourceFactoryRegistry();
-
- public J2EEResourceFactoryRegistry() {
- super();
- }
-
- public Resource.Factory delegatedGetFactory(URI uri) {
- if (J2EEResourceFactoryRegistry.INSTANCE == this)
- return super.delegatedGetFactory(uri);
- return J2EEResourceFactoryRegistry.INSTANCE.getFactory(uri);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java
deleted file mode 100644
index 97979e9c1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/JNDIEnvRefsGroupImpl.java
+++ /dev/null
@@ -1,370 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.webservice.wsclient.ServiceRef;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>JNDI Env Refs Group</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEnvironmentProperties <em>Environment Properties</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getResourceRefs <em>Resource Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEjbRefs <em>Ejb Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getResourceEnvRefs <em>Resource Env Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getEjbLocalRefs <em>Ejb Local Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getMessageDestinationRefs <em>Message Destination Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.JNDIEnvRefsGroupImpl#getServiceRefs <em>Service Refs</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class JNDIEnvRefsGroupImpl extends CompatibilityDescriptionGroupImpl implements JNDIEnvRefsGroup {
- /**
- * The cached value of the '{@link #getEnvironmentProperties() <em>Environment Properties</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEnvironmentProperties()
- * @generated
- * @ordered
- */
- protected EList environmentProperties = null;
-
- /**
- * The cached value of the '{@link #getResourceRefs() <em>Resource Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getResourceRefs()
- * @generated
- * @ordered
- */
- protected EList resourceRefs = null;
-
- /**
- * The cached value of the '{@link #getEjbRefs() <em>Ejb Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEjbRefs()
- * @generated
- * @ordered
- */
- protected EList ejbRefs = null;
-
- /**
- * The cached value of the '{@link #getResourceEnvRefs() <em>Resource Env Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getResourceEnvRefs()
- * @generated
- * @ordered
- */
- protected EList resourceEnvRefs = null;
-
- /**
- * The cached value of the '{@link #getEjbLocalRefs() <em>Ejb Local Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEjbLocalRefs()
- * @generated
- * @ordered
- */
- protected EList ejbLocalRefs = null;
-
- /**
- * The cached value of the '{@link #getMessageDestinationRefs() <em>Message Destination Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageDestinationRefs()
- * @generated
- * @ordered
- */
- protected EList messageDestinationRefs = null;
-
- /**
- * The cached value of the '{@link #getServiceRefs() <em>Service Refs</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getServiceRefs()
- * @generated
- * @ordered
- */
- protected EList serviceRefs = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected JNDIEnvRefsGroupImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.JNDI_ENV_REFS_GROUP;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getEnvironmentProperties() {
- if (environmentProperties == null) {
- environmentProperties = new EObjectContainmentEList(EnvEntry.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES);
- }
- return environmentProperties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getResourceRefs() {
- if (resourceRefs == null) {
- resourceRefs = new EObjectContainmentEList(ResourceRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS);
- }
- return resourceRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getEjbRefs() {
- if (ejbRefs == null) {
- ejbRefs = new EObjectContainmentEList(EjbRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS);
- }
- return ejbRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getResourceEnvRefs() {
- if (resourceEnvRefs == null) {
- resourceEnvRefs = new EObjectContainmentEList(ResourceEnvRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS);
- }
- return resourceEnvRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getEjbLocalRefs() {
- if (ejbLocalRefs == null) {
- ejbLocalRefs = new EObjectContainmentEList(EJBLocalRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS);
- }
- return ejbLocalRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getMessageDestinationRefs() {
- if (messageDestinationRefs == null) {
- messageDestinationRefs = new EObjectContainmentEList(MessageDestinationRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS);
- }
- return messageDestinationRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getServiceRefs() {
- if (serviceRefs == null) {
- serviceRefs = new EObjectContainmentEList(ServiceRef.class, this, CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS);
- }
- return serviceRefs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES:
- return ((InternalEList)getEnvironmentProperties()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS:
- return ((InternalEList)getResourceRefs()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS:
- return ((InternalEList)getEjbRefs()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS:
- return ((InternalEList)getResourceEnvRefs()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS:
- return ((InternalEList)getEjbLocalRefs()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS:
- return ((InternalEList)getMessageDestinationRefs()).basicRemove(otherEnd, msgs);
- case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS:
- return ((InternalEList)getServiceRefs()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES:
- return getEnvironmentProperties();
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS:
- return getResourceRefs();
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS:
- return getEjbRefs();
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS:
- return getResourceEnvRefs();
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS:
- return getEjbLocalRefs();
- case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS:
- return getMessageDestinationRefs();
- case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS:
- return getServiceRefs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES:
- getEnvironmentProperties().clear();
- getEnvironmentProperties().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS:
- getResourceRefs().clear();
- getResourceRefs().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS:
- getEjbRefs().clear();
- getEjbRefs().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS:
- getResourceEnvRefs().clear();
- getResourceEnvRefs().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS:
- getEjbLocalRefs().clear();
- getEjbLocalRefs().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS:
- getMessageDestinationRefs().clear();
- getMessageDestinationRefs().addAll((Collection)newValue);
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS:
- getServiceRefs().clear();
- getServiceRefs().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES:
- getEnvironmentProperties().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS:
- getResourceRefs().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS:
- getEjbRefs().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS:
- getResourceEnvRefs().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS:
- getEjbLocalRefs().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS:
- getMessageDestinationRefs().clear();
- return;
- case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS:
- getServiceRefs().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.JNDI_ENV_REFS_GROUP__ENVIRONMENT_PROPERTIES:
- return environmentProperties != null && !environmentProperties.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_REFS:
- return resourceRefs != null && !resourceRefs.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_REFS:
- return ejbRefs != null && !ejbRefs.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__RESOURCE_ENV_REFS:
- return resourceEnvRefs != null && !resourceEnvRefs.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__EJB_LOCAL_REFS:
- return ejbLocalRefs != null && !ejbLocalRefs.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__MESSAGE_DESTINATION_REFS:
- return messageDestinationRefs != null && !messageDestinationRefs.isEmpty();
- case CommonPackage.JNDI_ENV_REFS_GROUP__SERVICE_REFS:
- return serviceRefs != null && !serviceRefs.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //JNDIEnvRefsGroupImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java
deleted file mode 100644
index 1bd7dd089..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ListenerImpl.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Listener;
-
-
-/**
- * Declares a class in the application must be registered as a web application listener bean.
- */
-public class ListenerImpl extends CompatibilityDescriptionGroupImpl implements Listener {
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected JavaClass listenerClass = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected ListenerImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.LISTENER;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The listener-class element declares a class in the application must be registered as a web application listener bean.
- */
- public JavaClass getListenerClass() {
- if (listenerClass != null && listenerClass.eIsProxy()) {
- InternalEObject oldListenerClass = (InternalEObject)listenerClass;
- listenerClass = (JavaClass)eResolveProxy(oldListenerClass);
- if (listenerClass != oldListenerClass) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonPackage.LISTENER__LISTENER_CLASS, oldListenerClass, listenerClass));
- }
- }
- return listenerClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JavaClass basicGetListenerClass() {
- return listenerClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setListenerClass(JavaClass newListenerClass) {
- JavaClass oldListenerClass = listenerClass;
- listenerClass = newListenerClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.LISTENER__LISTENER_CLASS, oldListenerClass, listenerClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.LISTENER__LISTENER_CLASS:
- if (resolve) return getListenerClass();
- return basicGetListenerClass();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.LISTENER__LISTENER_CLASS:
- setListenerClass((JavaClass)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.LISTENER__LISTENER_CLASS:
- setListenerClass((JavaClass)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.LISTENER__LISTENER_CLASS:
- return listenerClass != null;
- }
- return super.eIsSet(featureID);
- }
-
-/**
- * createClassRef - return a JavaURL reference to the named Java class
- */
-public JavaClass createClassRef(String targetName) {
- return JavaRefFactory.eINSTANCE.createClassRef(targetName);
-}
-/**
- * Get the fully qualified class name for the listener.
- */
-public String getListenerClassName() {
- getListenerClass();
- return (listenerClass == null) ? null : listenerClass.getQualifiedName();
-}
-/**
- * Sets the listener class name.
- */
-public void setListenerClassName(String listenerClassName) {
- eSet(CommonPackage.eINSTANCE.getListener_ListenerClass(), createClassRef(listenerClassName));
-}
-} //ListenerImpl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java
deleted file mode 100644
index 8ab113fa7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationImpl.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Message Destination</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MessageDestinationImpl extends CompatibilityDescriptionGroupImpl implements MessageDestination {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MessageDestinationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.MESSAGE_DESTINATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //MessageDestinationImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java
deleted file mode 100644
index 76f5abf11..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/MessageDestinationRefImpl.java
+++ /dev/null
@@ -1,405 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.MessageDestinationUsageType;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Message Destination Ref</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getUsage <em>Usage</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getLink <em>Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.MessageDestinationRefImpl#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MessageDestinationRefImpl extends J2EEEObjectImpl implements MessageDestinationRef {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final String TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected String type = TYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getUsage() <em>Usage</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUsage()
- * @generated
- * @ordered
- */
- protected static final MessageDestinationUsageType USAGE_EDEFAULT = MessageDestinationUsageType.CONSUMES_LITERAL;
-
- /**
- * The cached value of the '{@link #getUsage() <em>Usage</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getUsage()
- * @generated
- * @ordered
- */
- protected MessageDestinationUsageType usage = USAGE_EDEFAULT;
- /**
- * This is true if the Auth attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @ordered
- */
- protected boolean useESet = false;
- /**
- * The default value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected static final String LINK_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected String link = LINK_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MessageDestinationRefImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.MESSAGE_DESTINATION_REF;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setType(String newType) {
- String oldType = type;
- type = newType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__TYPE, oldType, type));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageDestinationUsageType getUsage() {
- return usage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setUsage(MessageDestinationUsageType newUsage) {
- MessageDestinationUsageType oldUsage = usage;
- usage = newUsage == null ? USAGE_EDEFAULT : newUsage;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__USAGE, oldUsage, usage));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- */
- public void unsetUsage() {
- MessageDestinationUsageType oldUsage = usage;
- boolean oldUsageESet = useESet;
- usage = USAGE_EDEFAULT;
- useESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.MESSAGE_DESTINATION_REF__USAGE, oldUsage, USAGE_EDEFAULT, oldUsageESet));
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- */
- public boolean isSetUse() {
- return useESet;
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLink() {
- return link;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLink(String newLink) {
- String oldLink = link;
- link = newLink;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__LINK, oldLink, link));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION_REF__NAME:
- return getName();
- case CommonPackage.MESSAGE_DESTINATION_REF__TYPE:
- return getType();
- case CommonPackage.MESSAGE_DESTINATION_REF__USAGE:
- return getUsage();
- case CommonPackage.MESSAGE_DESTINATION_REF__LINK:
- return getLink();
- case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__TYPE:
- setType((String)newValue);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__USAGE:
- setUsage((MessageDestinationUsageType)newValue);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__LINK:
- setLink((String)newValue);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__TYPE:
- setType(TYPE_EDEFAULT);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__USAGE:
- setUsage(USAGE_EDEFAULT);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__LINK:
- setLink(LINK_EDEFAULT);
- return;
- case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.MESSAGE_DESTINATION_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.MESSAGE_DESTINATION_REF__TYPE:
- return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case CommonPackage.MESSAGE_DESTINATION_REF__USAGE:
- return usage != USAGE_EDEFAULT;
- case CommonPackage.MESSAGE_DESTINATION_REF__LINK:
- return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link);
- case CommonPackage.MESSAGE_DESTINATION_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", type: ");
- result.append(type);
- result.append(", usage: ");
- result.append(usage);
- result.append(", link: ");
- result.append(link);
- result.append(')');
- return result.toString();
- }
-
-} //MessageDestinationRefImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java
deleted file mode 100644
index 364ef8ca0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ParamValueImpl.java
+++ /dev/null
@@ -1,325 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.ParamValue;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Param Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.ParamValueImpl#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ParamValueImpl extends J2EEEObjectImpl implements ParamValue {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected String description = DESCRIPTION_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ParamValueImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.PARAM_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.PARAM_VALUE__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.PARAM_VALUE__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.PARAM_VALUE__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.PARAM_VALUE__NAME:
- return getName();
- case CommonPackage.PARAM_VALUE__VALUE:
- return getValue();
- case CommonPackage.PARAM_VALUE__DESCRIPTION:
- return getDescription();
- case CommonPackage.PARAM_VALUE__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.PARAM_VALUE__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.PARAM_VALUE__VALUE:
- setValue((String)newValue);
- return;
- case CommonPackage.PARAM_VALUE__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.PARAM_VALUE__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.PARAM_VALUE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.PARAM_VALUE__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case CommonPackage.PARAM_VALUE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.PARAM_VALUE__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.PARAM_VALUE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.PARAM_VALUE__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- case CommonPackage.PARAM_VALUE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.PARAM_VALUE__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", value: ");
- result.append(value);
- result.append(", description: ");
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-} //ParamValueImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java
deleted file mode 100644
index 368b0c110..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/QNameImpl.java
+++ /dev/null
@@ -1,434 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.wst.common.internal.emf.utilities.NamespaceAdapter;
-import org.eclipse.wst.common.internal.emf.utilities.StringUtil;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>QName</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getNamespaceURI <em>Namespace URI</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getLocalPart <em>Local Part</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getCombinedQName <em>Combined QName</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.common.internal.impl.QNameImpl#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QNameImpl extends J2EEEObjectImpl implements QName {
- /**
- * The default value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getNamespaceURI()
- * @generated
- * @ordered
- */
- protected static final String NAMESPACE_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNamespaceURI() <em>Namespace URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getNamespaceURI()
- * @generated
- * @ordered
- */
- protected String namespaceURI = NAMESPACE_URI_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLocalPart() <em>Local Part</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalPart()
- * @generated
- * @ordered
- */
- protected static final String LOCAL_PART_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLocalPart() <em>Local Part</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLocalPart()
- * @generated
- * @ordered
- */
- protected String localPart = LOCAL_PART_EDEFAULT;
-
- /**
- * The default value of the '{@link #getCombinedQName() <em>Combined QName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCombinedQName()
- * @generated
- * @ordered
- */
- protected static final String COMBINED_QNAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getCombinedQName() <em>Combined QName</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCombinedQName()
- * @generated
- * @ordered
- */
- protected String combinedQName = COMBINED_QNAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getInternalPrefixOrNsURI() <em>Internal Prefix Or Ns URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInternalPrefixOrNsURI()
- * @generated
- * @ordered
- */
- protected static final String INTERNAL_PREFIX_OR_NS_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getInternalPrefixOrNsURI() <em>Internal Prefix Or Ns URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInternalPrefixOrNsURI()
- * @generated
- * @ordered
- */
- protected String internalPrefixOrNsURI = INTERNAL_PREFIX_OR_NS_URI_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected QNameImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.QNAME;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getNamespaceURIGen() {
- return namespaceURI;
- }
-
- public String getNamespaceURI() {
- if (namespaceURI != null)
- return namespaceURI;
- String resolved = NamespaceAdapter.getResolvedNamespaceURI(internalPrefixOrNsURI, this);
- return resolved == null ? internalPrefixOrNsURI : resolved;
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setNamespaceURIGen(String newNamespaceURI) {
- String oldNamespaceURI = namespaceURI;
- namespaceURI = newNamespaceURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__NAMESPACE_URI, oldNamespaceURI, namespaceURI));
- }
-
- public void setNamespaceURI(String newNamespaceURI) {
- String prefix = getInternalPrefixOrNsURI();
- String oldNsURI = getInternalPrefixOrNsURI();
- if (!StringUtil.stringsEqual(prefix, oldNsURI))
- setValues(prefix, newNamespaceURI, getLocalPart());
- else {
- setNamespaceURIGen(newNamespaceURI);
- setInternalPrefixOrNsURI(newNamespaceURI);
- }
-
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLocalPart() {
- return localPart;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLocalPartGen(String newLocalPart) {
- String oldLocalPart = localPart;
- localPart = newLocalPart;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__LOCAL_PART, oldLocalPart, localPart));
- }
-
- public void setLocalPart(String newLocalPart) {
- setLocalPartGen(newLocalPart);
- updateCombine();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getCombinedQName() {
- return combinedQName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setCombinedQNameGen(String newCombinedQName) {
- String oldCombinedQName = combinedQName;
- combinedQName = newCombinedQName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__COMBINED_QNAME, oldCombinedQName, combinedQName));
- }
-
- public void setCombinedQName(String newCombinedQName) {
- setCombinedQNameGen(newCombinedQName);
- updateParse();
- }
-
- /**
- * Parses the combined name into the components
- */
- private void updateParse() {
- String ns = null;
- String lp = null;
- if (combinedQName != null || combinedQName.length() > 0) {
- int index = combinedQName.lastIndexOf(':');
-
- if (index < 0) { //No separator
- ns = combinedQName;
- } else if (index == 0) { //First char
- lp = combinedQName.substring(1);
- } else if (index == combinedQName.length()-1) { //Last char
- ns = combinedQName.substring(0, index);
- } else { //In the middle, which is what it should be
- ns = combinedQName.substring(0, index);
- lp = combinedQName.substring(index+1, combinedQName.length());
- }
- }
- setInternalPrefixOrNsURIGen(ns);
- setLocalPartGen(lp);
- }
-
- /**
- * updates the combined name from the components
- */
- private void updateCombine() {
- String cn = null;
- if (internalPrefixOrNsURI != null || localPart != null) {
- String ns = internalPrefixOrNsURI == null ? "" : internalPrefixOrNsURI; //$NON-NLS-1$
- String lp = localPart == null ? "" : localPart; //$NON-NLS-1$
- cn = ns+':'+lp;
- }
- setCombinedQNameGen(cn);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getInternalPrefixOrNsURI() {
- return internalPrefixOrNsURI;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setInternalPrefixOrNsURIGen(String newInternalPrefixOrNsURI) {
- String oldInternalPrefixOrNsURI = internalPrefixOrNsURI;
- internalPrefixOrNsURI = newInternalPrefixOrNsURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI, oldInternalPrefixOrNsURI, internalPrefixOrNsURI));
- }
-
- public void setInternalPrefixOrNsURI(String newInternalPrefixOrNsURI) {
- setInternalPrefixOrNsURIGen(newInternalPrefixOrNsURI);
- updateCombine();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.QNAME__NAMESPACE_URI:
- return getNamespaceURI();
- case CommonPackage.QNAME__LOCAL_PART:
- return getLocalPart();
- case CommonPackage.QNAME__COMBINED_QNAME:
- return getCombinedQName();
- case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI:
- return getInternalPrefixOrNsURI();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.QNAME__NAMESPACE_URI:
- setNamespaceURI((String)newValue);
- return;
- case CommonPackage.QNAME__LOCAL_PART:
- setLocalPart((String)newValue);
- return;
- case CommonPackage.QNAME__COMBINED_QNAME:
- setCombinedQName((String)newValue);
- return;
- case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI:
- setInternalPrefixOrNsURI((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.QNAME__NAMESPACE_URI:
- setNamespaceURI(NAMESPACE_URI_EDEFAULT);
- return;
- case CommonPackage.QNAME__LOCAL_PART:
- setLocalPart(LOCAL_PART_EDEFAULT);
- return;
- case CommonPackage.QNAME__COMBINED_QNAME:
- setCombinedQName(COMBINED_QNAME_EDEFAULT);
- return;
- case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI:
- setInternalPrefixOrNsURI(INTERNAL_PREFIX_OR_NS_URI_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.QNAME__NAMESPACE_URI:
- return NAMESPACE_URI_EDEFAULT == null ? namespaceURI != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI);
- case CommonPackage.QNAME__LOCAL_PART:
- return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart);
- case CommonPackage.QNAME__COMBINED_QNAME:
- return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName);
- case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI:
- return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * eIsSet for namespace uri must be derived if null so namespaceURI ! = null and internalPrefixOrNsURI != null must both be check.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case CommonPackage.QNAME__NAMESPACE_URI:
- return NAMESPACE_URI_EDEFAULT == null ? (namespaceURI != null || internalPrefixOrNsURI != null) : !NAMESPACE_URI_EDEFAULT.equals(namespaceURI);
- case CommonPackage.QNAME__LOCAL_PART:
- return LOCAL_PART_EDEFAULT == null ? localPart != null : !LOCAL_PART_EDEFAULT.equals(localPart);
- case CommonPackage.QNAME__COMBINED_QNAME:
- return COMBINED_QNAME_EDEFAULT == null ? combinedQName != null : !COMBINED_QNAME_EDEFAULT.equals(combinedQName);
- case CommonPackage.QNAME__INTERNAL_PREFIX_OR_NS_URI:
- return INTERNAL_PREFIX_OR_NS_URI_EDEFAULT == null ? internalPrefixOrNsURI != null : !INTERNAL_PREFIX_OR_NS_URI_EDEFAULT.equals(internalPrefixOrNsURI);
- }
- 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(" (namespaceURI: ");
- result.append(namespaceURI);
- result.append(", localPart: ");
- result.append(localPart);
- result.append(", combinedQName: ");
- result.append(combinedQName);
- result.append(", internalPrefixOrNsURI: ");
- result.append(internalPrefixOrNsURI);
- result.append(')');
- return result.toString();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.QName#setValues(java.lang.String, java.lang.String, java.lang.String)
- */
- public void setValues(String prefix, String nsURI, String localPart) {
- setInternalPrefixOrNsURIGen(prefix);
- setLocalPartGen(localPart);
- String existingURI = NamespaceAdapter.getNamespaceURIAtThisLevel(prefix, this);
- boolean removed = false;
- if (existingURI != null && !existingURI.equals(nsURI)) {
- NamespaceAdapter.removeNamespace(prefix, this);
- removed = true;
- }
- if (existingURI == null || removed)
- NamespaceAdapter.addNamespace(prefix, nsURI, this);
- updateCombine();
- }
-
-
-} //QNameImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java
deleted file mode 100644
index 0ed95419e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceEnvRefImpl.java
+++ /dev/null
@@ -1,323 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jem.java.JavaClass;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-
-/**
- * The resource-env-ref element contains a declaration of an enterprise bean's reference to an administered object associated with a resource in the enterprise bean's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the enterprise bean code.
- *
- * Examples:
- *
- * <resource-env-ref>
- * <resource-env-ref-name>jms//StockQueue<//resource-env-ref-name>
- * <resource-env-ref-type>javax.jms.Queue<//resource-env-ref-type>
- * <//resource-env-ref>
- * @generated
- */
-public class ResourceEnvRefImpl extends J2EEEObjectImpl implements ResourceEnvRef {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected JavaClass type = null;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public ResourceEnvRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.RESOURCE_ENV_REF;
- }
-
- /**
- * createClassRef - return a JavaURL reference to the named Java class
- */
- public JavaClass createClassRef(String targetName) {
- return JavaRefFactory.eINSTANCE.createClassRef(targetName);
- }
-
- public String getTypeName() {
- getType();
- return type == null ? null : type.getQualifiedName();
- }
-
- public void setTypeName(String className) {
- eSet(CommonPackage.eINSTANCE.getResourceEnvRef_Type(), createClassRef(className));
- }
-
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description));
- }
-
- public String getDescription() {
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the name of a resource environment reference; its
- * value is the environment entry name used in the enterprise
- * bean code.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_ENV_REF__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the type of a resource environment reference. See the class description for an example.
- */
- public JavaClass getType() {
- if (type != null && type.eIsProxy()) {
- InternalEObject oldType = (InternalEObject)type;
- type = (JavaClass)eResolveProxy(oldType);
- if (type != oldType) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, CommonPackage.RESOURCE_ENV_REF__TYPE, oldType, type));
- }
- }
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JavaClass basicGetType() {
- return type;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setType(JavaClass newType) {
- JavaClass oldType = type;
- type = newType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_ENV_REF__TYPE, oldType, type));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION:
- return getDescription();
- case CommonPackage.RESOURCE_ENV_REF__NAME:
- return getName();
- case CommonPackage.RESOURCE_ENV_REF__TYPE:
- if (resolve) return getType();
- return basicGetType();
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.RESOURCE_ENV_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.RESOURCE_ENV_REF__TYPE:
- setType((JavaClass)newValue);
- return;
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_ENV_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_ENV_REF__TYPE:
- setType((JavaClass)null);
- return;
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.RESOURCE_ENV_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.RESOURCE_ENV_REF__TYPE:
- return type != null;
- case CommonPackage.RESOURCE_ENV_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java
deleted file mode 100644
index 45ea5a126..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/ResourceRefImpl.java
+++ /dev/null
@@ -1,508 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.ResAuthTypeBase;
-import org.eclipse.jst.j2ee.common.ResSharingScopeType;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-
-/**
- * The resource-ref element contains a declaration of application clients's reference to an external resource. It consists of an optional description, the resource factory reference name, the indication of the resource factory type expected by the application client's code, and the type of authentication (bean or container).
- * Example:
- * <resource-ref>
- * <res-ref-name>EmployeeAppDB<//res-ref-name>
- * <res-type>javax.sql.DataSource<//res-type>
- * <res-auth>Container<//res-auth>
- * <//resource-ref>
- * @generated
- */
-public class ResourceRefImpl extends J2EEEObjectImpl implements ResourceRef {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final String TYPE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String type = TYPE_EDEFAULT;
- /**
- * The default value of the '{@link #getAuth() <em>Auth</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuth()
- * @generated
- * @ordered
- */
- protected static final ResAuthTypeBase AUTH_EDEFAULT = ResAuthTypeBase.CONTAINER_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected ResAuthTypeBase auth = AUTH_EDEFAULT;
- /**
- * This is true if the Auth attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean authESet = false;
-
- /**
- * The default value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected static final String LINK_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String link = LINK_EDEFAULT;
- /**
- * The default value of the '{@link #getResSharingScope() <em>Res Sharing Scope</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getResSharingScope()
- * @generated
- * @ordered
- */
- protected static final ResSharingScopeType RES_SHARING_SCOPE_EDEFAULT = ResSharingScopeType.SHAREABLE_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected ResSharingScopeType resSharingScope = RES_SHARING_SCOPE_EDEFAULT;
- /**
- * This is true if the Res Sharing Scope attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean resSharingScopeESet = false;
-
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public ResourceRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.RESOURCE_REF;
- }
-
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description));
- }
-
- public String getDescription() {
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The res-ref-name element specifies the name of the resource factory reference name. The resource factory reference name is the name of the application client's environment entry whose value contains the JNDI name of the data source.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The res-type element specifies the type of the data source. The type is specified by the Java interface (or class) expected to be implemented by the data source.
- */
- public String getType() {
- return type;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setType(String newType) {
- String oldType = type;
- type = newType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__TYPE, oldType, type));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The res-auth element specifies whether the enterprise bean code signs on programmatically to the resource manager, or whether the Container will sign on to the resource manager on behalf of the bean. In the latter case, the Container uses information that is supplied by the Deployer. The value of this element must be one of the two following:
- * <res-auth>Application<//res-auth>
- * <res-auth>Container<//res-auth>
- */
- public ResAuthTypeBase getAuth() {
- return auth;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuth(ResAuthTypeBase newAuth) {
- ResAuthTypeBase oldAuth = auth;
- auth = newAuth == null ? AUTH_EDEFAULT : newAuth;
- boolean oldAuthESet = authESet;
- authESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__AUTH, oldAuth, auth, !oldAuthESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetAuth() {
- ResAuthTypeBase oldAuth = auth;
- boolean oldAuthESet = authESet;
- auth = AUTH_EDEFAULT;
- authESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.RESOURCE_REF__AUTH, oldAuth, AUTH_EDEFAULT, oldAuthESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetAuth() {
- return authESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getLink() {
- return link;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLink(String newLink) {
- String oldLink = link;
- link = newLink;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__LINK, oldLink, link));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The res-sharing-scope element specifies whether connections obtained
- * through the given resource manager connection factory reference can be
- * shared. The value of this element, if specified, must be one of the
- * two following: Shareable, Unshareable
- *
- * The default value is Shareable.
-
- */
- public ResSharingScopeType getResSharingScope() {
- return resSharingScope;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setResSharingScope(ResSharingScopeType newResSharingScope) {
- ResSharingScopeType oldResSharingScope = resSharingScope;
- resSharingScope = newResSharingScope == null ? RES_SHARING_SCOPE_EDEFAULT : newResSharingScope;
- boolean oldResSharingScopeESet = resSharingScopeESet;
- resSharingScopeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE, oldResSharingScope, resSharingScope, !oldResSharingScopeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetResSharingScope() {
- ResSharingScopeType oldResSharingScope = resSharingScope;
- boolean oldResSharingScopeESet = resSharingScopeESet;
- resSharingScope = RES_SHARING_SCOPE_EDEFAULT;
- resSharingScopeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE, oldResSharingScope, RES_SHARING_SCOPE_EDEFAULT, oldResSharingScopeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetResSharingScope() {
- return resSharingScopeESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.RESOURCE_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.RESOURCE_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.RESOURCE_REF__DESCRIPTION:
- return getDescription();
- case CommonPackage.RESOURCE_REF__NAME:
- return getName();
- case CommonPackage.RESOURCE_REF__TYPE:
- return getType();
- case CommonPackage.RESOURCE_REF__AUTH:
- return getAuth();
- case CommonPackage.RESOURCE_REF__LINK:
- return getLink();
- case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE:
- return getResSharingScope();
- case CommonPackage.RESOURCE_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.RESOURCE_REF__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.RESOURCE_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.RESOURCE_REF__TYPE:
- setType((String)newValue);
- return;
- case CommonPackage.RESOURCE_REF__AUTH:
- setAuth((ResAuthTypeBase)newValue);
- return;
- case CommonPackage.RESOURCE_REF__LINK:
- setLink((String)newValue);
- return;
- case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE:
- setResSharingScope((ResSharingScopeType)newValue);
- return;
- case CommonPackage.RESOURCE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.RESOURCE_REF__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_REF__TYPE:
- setType(TYPE_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_REF__AUTH:
- unsetAuth();
- return;
- case CommonPackage.RESOURCE_REF__LINK:
- setLink(LINK_EDEFAULT);
- return;
- case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE:
- unsetResSharingScope();
- return;
- case CommonPackage.RESOURCE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.RESOURCE_REF__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.RESOURCE_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.RESOURCE_REF__TYPE:
- return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case CommonPackage.RESOURCE_REF__AUTH:
- return isSetAuth();
- case CommonPackage.RESOURCE_REF__LINK:
- return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link);
- case CommonPackage.RESOURCE_REF__RES_SHARING_SCOPE:
- return isSetResSharingScope();
- case CommonPackage.RESOURCE_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", name: ");
- result.append(name);
- result.append(", type: ");
- result.append(type);
- result.append(", auth: ");
- if (authESet) result.append(auth); else result.append("<unset>");
- result.append(", link: ");
- result.append(link);
- result.append(", resSharingScope: ");
- if (resSharingScopeESet) result.append(resSharingScope); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java
deleted file mode 100644
index 10545a75e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/RunAsSpecifiedIdentityImpl.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Identity;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-
-
-/**
- * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It contains an optional description and a specification of the security identity to be used.
- * @generated
- */
-public class RunAsSpecifiedIdentityImpl extends SecurityIdentityImpl implements RunAsSpecifiedIdentity {
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected Identity identity = null;
- public RunAsSpecifiedIdentityImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.RUN_AS_SPECIFIED_IDENTITY;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Optional specifies the run-as identity to be used for the execution of the methods of an enterprise bean. It contains an optional description, and the name of a security role.
- */
- public Identity getIdentity() {
- return identity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetIdentity(Identity newIdentity, NotificationChain msgs) {
- Identity oldIdentity = identity;
- identity = newIdentity;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, oldIdentity, newIdentity);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setIdentity(Identity newIdentity) {
- if (newIdentity != identity) {
- NotificationChain msgs = null;
- if (identity != null)
- msgs = ((InternalEObject)identity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, null, msgs);
- if (newIdentity != null)
- msgs = ((InternalEObject)newIdentity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, null, msgs);
- msgs = basicSetIdentity(newIdentity, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY, newIdentity, newIdentity));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY:
- return basicSetIdentity(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY:
- return getIdentity();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY:
- setIdentity((Identity)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY:
- setIdentity((Identity)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY__IDENTITY:
- return identity != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isRunAsSpecifiedIdentity()
- */
- public boolean isRunAsSpecifiedIdentity() {
- return true;
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java
deleted file mode 100644
index 6c94abcfa..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityIdentityImpl.java
+++ /dev/null
@@ -1,213 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-
-
-/**
- * The security-identity element specifies whether the caller's security identity is to be used for the execution of the methods of the enterprise bean or whether a specific run-as identity is to be used. It
- * contains an optional description and a specification of the security identity to be used.
- * @generated
- */
-public class SecurityIdentityImpl extends J2EEEObjectImpl implements SecurityIdentity {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public SecurityIdentityImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.SECURITY_IDENTITY;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_IDENTITY__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTION:
- return getDescription();
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.SECURITY_IDENTITY__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isRunAsSpecifiedIdentity()
- */
- public boolean isRunAsSpecifiedIdentity() {
- return false;
- }
-
- /**
- * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isUseCallerIdentity()
- */
- public boolean isUseCallerIdentity() {
- return false;
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java
deleted file mode 100644
index ac6983406..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleImpl.java
+++ /dev/null
@@ -1,294 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.wst.common.frameworks.internal.enablement.nonui.WorkbenchUtil;
-
-/**
- * A semantic grouping of operations that may be performed by a subject.
- * The security-role element contains the declaration of a security role which is used in the security-constraints placed on the web application.
- * @generated
- */
-public class SecurityRoleImpl extends J2EEEObjectImpl implements SecurityRole {
-
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- static boolean inEclipse = WorkbenchUtil.workbenchIsRunning();
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getRoleName() <em>Role Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRoleName()
- * @generated
- * @ordered
- */
- protected static final String ROLE_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String roleName = ROLE_NAME_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public SecurityRoleImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.SECURITY_ROLE;
- }
-
-public boolean equals(Object o) {
- if (inEclipse)
- return super.equals(o);
-
- if (o instanceof SecurityRoleImpl) {
- String r1 = getRoleName();
- String r2 = ((SecurityRole) o).getRoleName();
- if ((r1 != null) && (r2 != null)) {
- if (r1.equals(r2)) {
- return true;
- }
- } else if (r1 == null && r2 == null)
- return super.equals(o);
- }
- return false;
-}
-public int hashCode() {
- if (inEclipse || getRoleName() == null)
- return super.hashCode();
- return getRoleName().hashCode();
-}
-public String toString() {
- String name = getRoleName() == null ? "<unknown>" : getRoleName(); //$NON-NLS-1$
- return getClass().getName() + "(" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$
-}
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getDescriptionGen() {
- return description;
- }
-
- public String getDescription() {
- if (!getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return getDescriptionGen();
- }
-
- public void setDescription(String newDescription) {
- if (getDescriptions() != null) {
- if (getDescriptions().isEmpty()) {
- Description d = new DescriptionImpl();
- d.setValue(newDescription);
- getDescriptions().add(d);
- } else {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- }
- setDescriptionGen(newDescription);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setDescriptionGen(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation The
- * role-name element contains the name of a role. This element
- * must contain a non-empty string.
- */
- public String getRoleName() {
- return roleName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRoleName(String newRoleName) {
- String oldRoleName = roleName;
- roleName = newRoleName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE__ROLE_NAME, oldRoleName, roleName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_ROLE__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE__DESCRIPTION:
- return getDescription();
- case CommonPackage.SECURITY_ROLE__ROLE_NAME:
- return getRoleName();
- case CommonPackage.SECURITY_ROLE__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE__ROLE_NAME:
- setRoleName((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE__ROLE_NAME:
- setRoleName(ROLE_NAME_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.SECURITY_ROLE__ROLE_NAME:
- return ROLE_NAME_EDEFAULT == null ? roleName != null : !ROLE_NAME_EDEFAULT.equals(roleName);
- case CommonPackage.SECURITY_ROLE__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toStringGen() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (description: ");
- result.append(description);
- result.append(", roleName: ");
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java
deleted file mode 100644
index 4ac80eb42..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-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.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-
-
-/**
- * @generated
- */
-public class SecurityRoleRefImpl extends J2EEEObjectImpl implements SecurityRoleRef {
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected static final String LINK_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String link = LINK_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public SecurityRoleRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.SECURITY_ROLE_REF;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__NAME, oldName, name));
- }
-
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__DESCRIPTION, oldDescription, description));
- }
-
- public String getDescription() {
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The role-link element is used to link a security role reference to a defined security role. The role-link element must contain the name of one of the security roles defined in the security-role elements.
- */
- public String getLink() {
- return link;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLink(String newLink) {
- String oldLink = link;
- link = newLink;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__LINK, oldLink, link));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- return getName();
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- return getDescription();
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- return getLink();
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- setLink((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- setLink(LINK_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link);
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", description: ");
- result.append(description);
- result.append(", link: ");
- result.append(link);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java
deleted file mode 100644
index 18f85b20d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/UseCallerIdentityImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.UseCallerIdentity;
-
-
-/**
- * The use-caller-identity element specifies that the caller's security identity be used as the security identity for the execution of the enterprise bean's methods.
- * @generated
- */
-public class UseCallerIdentityImpl extends SecurityIdentityImpl implements UseCallerIdentity {
-
- public UseCallerIdentityImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.Literals.USE_CALLER_IDENTITY;
- }
-
- /**
- * @see org.eclipse.jst.j2ee.internal.common.SecurityIdentity#isUseCallerIdentity()
- */
- public boolean isUseCallerIdentity() {
- return true;
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java
deleted file mode 100644
index 329b7afa2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceFactory.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-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.jst.j2ee.internal.common.XMLResource;
-
-
-/**
- * @deprecated Since 4/22/2003
- * This is replaced with concrete implementers of {@link com.ibm.etools.emf2xml.impl.TranslatorResourceFactory}
- */
-
-public abstract class XMLResourceFactory extends ResourceFactoryImpl {
-/**
- * EJBJarResourceFactory constructor comment.
- */
-public XMLResourceFactory() {
- //TODO: Delete this class
- super();
-}
-
-/**
- * @see org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl#createResource(URI)
- */
-public final Resource createResource(URI uri) {
- XMLResource resource = primCreateResource(uri);
- resource.getDefaultSaveOptions().put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- resource.getDefaultSaveOptions().put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_LINE_WIDTH, new Integer(80));
- return resource;
-}
-
-/**
- * Method primCreateResource.
- * @param uri
- * @return XMLResource
- */
-protected abstract XMLResource primCreateResource(URI uri) ;
-
-}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java
deleted file mode 100644
index 9fc4db367..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java
+++ /dev/null
@@ -1,285 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.impl;
-
-import java.math.BigDecimal;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.common.XMLResource;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl;
-import org.xml.sax.EntityResolver;
-
-
-public abstract class XMLResourceImpl extends TranslatorResourceImpl implements XMLResource,J2EEVersionResource {
- /** Indicator to determine if this resource was loaded as an alt-dd (from an ear),
- * default is false */
- protected boolean isAlt = false;
- /** The application which declared the alt-dd for this resource; exists only if this resource is and
- * alt dd */
- protected Application application;
- protected boolean isNew = true;
-
-
- private static class RootVersionAdapter extends AdapterImpl {
- static final String ADAPTER_TYPE = RootVersionAdapter.class.getName();
- /* (non-Javadoc)
- * @see org.eclipse.emf.common.notify.impl.AdapterImpl#isAdapterForType(java.lang.Object)
- */
- public boolean isAdapterForType(Object type) {
- return super.isAdapterForType(type);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification)
- */
- public void notifyChanged(Notification msg) {
- if (msg.getFeatureID(null) == RESOURCE__CONTENTS &&
- msg.getEventType() == Notification.ADD) {
- ((XMLResourceImpl)msg.getNotifier()).syncVersionOfRootObject();
- ((Notifier)msg.getNotifier()).eAdapters().remove(this);
- }
- }
-
-
-
-
- }
-
- /**
- * @deprecated since 4/29/2003 - used for compatibility
- * Subclasses should be using the Renderers and translator framework
- */
- public XMLResourceImpl() {
- super();
- }
-
- /**
- * @deprecated since 4/29/2003 - used for compatibility
- * Subclasses should be using the Renderers and translator framework
- */
- public XMLResourceImpl(URI uri) {
- super(uri);
- }
-
- public XMLResourceImpl(URI uri, Renderer aRenderer) {
- super(uri, aRenderer);
- }
-
- public XMLResourceImpl(Renderer aRenderer) {
- super(aRenderer);
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#initializeContents()
- */
- protected void initializeContents() {
- super.initializeContents();
- eAdapters().add(new RootVersionAdapter());
- }
-
-
- /**
- * Is this a resource loaded as an alternate deployment descriptor?
- */
- public boolean isAlt() {
- return isAlt;
- }
-
-
- public void setApplication(Application newApplication) {
- application = newApplication;
- }
- /**
- * Is this a resource loaded as an alternate deployment descriptor?
- */
- public void setIsAlt(boolean isAlternateDD) {
- isAlt = isAlternateDD;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID()
- */
- protected int getDefaultVersionID() {
- return J2EE_1_4_ID;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#setDoctypeValues(java.lang.String, java.lang.String)
- * This is setting the module version on the resource, where values are different that the J2EE version, this will be overridden
- */
- public void setDoctypeValues(String publicId, String systemId) {
- int version = J2EE_1_4_ID;
- if (systemId == null)
- version = J2EE_1_4_ID;
- else if (systemId.equals(getJ2EE_1_3_SystemID()) || systemId.equals(getJ2EE_Alt_1_3_SystemID()))
- version = J2EE_1_3_ID;
- else if (systemId.equals(getJ2EE_1_2_SystemID()) || systemId.equals(getJ2EE_Alt_1_2_SystemID()))
- version = J2EE_1_2_ID;
- super.setDoctypeValues(publicId, systemId);
- setJ2EEVersionID(version);
- }
-
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#usesDTD()
- */
- public boolean usesDTD() {
- return getVersionID() != J2EE_1_4_ID;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#setVersionID(int)
- * @deprecated, Use setJ2EEVersionID() to set module version based on j2ee version
- **/
- public void setVersionID(int id) {
- setJ2EEVersionID(id);
- }
- protected void primSetVersionID(int id) {
- super.setVersionID(id);
- }
- protected void primSetDoctypeValues(String aPublicId, String aSystemId) {
- super.setDoctypeValues(aPublicId,aSystemId);
- }
- /*
- * Sets the module version based on the J2EE version
- */
- public abstract void setJ2EEVersionID(int id);
- /*
- * Sets the module version directly
- * */
- public abstract void setModuleVersionID(int id);
- /**
- * @deprecated
- * (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.XMLResource#isJ2EE1_3()
- */
- public boolean isJ2EE1_3() {
- return getVersionID() == J2EE_1_3_ID;
- }
-
- /**
- * @deprecated use {@link TranslatorResource#setVersionID(int)},
- * {@link TranslatorResource#setDoctypeValues(String, String)}
- * Sets the system id of the XML document.
- * @see J2EEVersionConstants
- */
- public void setPublicId(String id) {
- setDoctypeValues(id, getSystemId());
- }
-
- /**
- * @deprecated use {@link TranslatorResource#setVersionID(int)},
- * {@link TranslatorResource#setDoctypeValues(String, String)}
- * Sets the public id of the XML document.
- * @see J2EEVersionConstants
- */
- public void setSystemId(String id) {
- setDoctypeValues(getPublicId(), id);
- }
- protected String getDefaultPublicId() {
- switch (getVersionID()) {
- case (J2EE_1_2_ID) :
- return getJ2EE_1_2_PublicID();
- case (J2EE_1_3_ID) :
- return getJ2EE_1_3_PublicID();
- default :
- return null;
- }
- }
-
- protected String getDefaultSystemId() {
- switch (getVersionID()) {
- case (J2EE_1_2_ID) :
- return getJ2EE_1_2_SystemID();
- case (J2EE_1_3_ID) :
- return getJ2EE_1_3_SystemID();
- default :
- return null;
- }
- }
-
- public abstract String getJ2EE_1_2_PublicID();
-
- public abstract String getJ2EE_1_2_SystemID();
-
- /**
- * By default just return the proper 1.2 system ID, subclasses may override
- * @return alternate string for system ID
- */
- public String getJ2EE_Alt_1_2_SystemID() {
- return getJ2EE_1_2_SystemID();
- }
-
- public abstract String getJ2EE_1_3_PublicID();
-
- public abstract String getJ2EE_1_3_SystemID();
-
- /**
- * By default just return the proper 1.3 system ID, subclasses may override
- * @return alternate string for system ID
- */
- public String getJ2EE_Alt_1_3_SystemID() {
- return getJ2EE_1_3_SystemID();
- }
-
-
- public NotificationChain basicSetResourceSet(ResourceSet aResourceSet, NotificationChain notifications) {
- if (aResourceSet == null && this.resourceSet != null)
- preDelete();
- return super.basicSetResourceSet(aResourceSet, notifications);
- }
-
- public Application getApplication() {
- return application;
- }
-
- /**
- * @deprecated - use getJ2EEVersionID() and getModuleVersionID()
- */
- public int getVersionID() {
- return getJ2EEVersionID();
- }
-
- public EntityResolver getEntityResolver() {
- return J2EEXmlDtDEntityResolver.INSTANCE;
- }
- /* All subclasses will derive this value based on their module version
- */
- public abstract int getJ2EEVersionID();
-
-
-
- /* This will be computed during loads of the resource
- */
- public int getModuleVersionID() {
- return super.getVersionID();
- }
-
- protected abstract void syncVersionOfRootObject();
-
- protected String getModuleVersionString() {
-
- int ver = getModuleVersionID();
- return new BigDecimal(String.valueOf(ver)).movePointLeft(1).toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java
deleted file mode 100644
index 48d1fb632..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonAdapterFactory.java
+++ /dev/null
@@ -1,592 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-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.EAttribute;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.ENamedElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.ETypedElement;
-
-import org.eclipse.jst.j2ee.common.*;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.common.Identity;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.UseCallerIdentity;
-
-
-
-public class CommonAdapterFactory extends AdapterFactoryImpl {
- protected static CommonPackage modelPackage;
-
- public CommonAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
- }
- }
- public boolean isFactoryForType(Object type) {
- if (type == modelPackage) {
- return true;
- }
- if (type instanceof EObject) {
- return ((EObject)type).eClass().eContainer() == modelPackage;
- }
- return false;
- }
-
- public Adapter createAdapter(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
- /**
- * By default create methods return null so that we can easily ignore cases.
- * It's useful to ignore a case when inheritance will catch all the cases anyway.
- */
-
- public Adapter createSecurityRoleAdapter() {
- return null;
- }
-
- public Adapter createResourceRefAdapter() {
- return null;
- }
-
- public Adapter createEjbRefAdapter() {
- return null;
- }
-
- public Adapter createEJBLocalRefAdapter() {
- return null;
- }
-
- public Adapter createEnvEntryAdapter() {
- return null;
- }
-
- public Adapter createSecurityRoleRefAdapter() {
- return null;
- }
-
- public Adapter createRunAsSpecifiedIdentityAdapter() {
- return null;
- }
-
- public Adapter createSecurityIdentityAdapter() {
- return null;
- }
-
- public Adapter createUseCallerIdentityAdapter() {
- return null;
- }
-
- public Adapter createIdentityAdapter() {
- return null;
- }
-
- public Adapter createResourceEnvRefAdapter() {
- return null;
- }
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean isFactoryForTypeGen(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 CommonSwitch modelSwitch =
- new CommonSwitch() {
- public Object caseEjbRef(EjbRef object) {
- return createEjbRefAdapter();
- }
- public Object caseEnvEntry(EnvEntry object) {
- return createEnvEntryAdapter();
- }
- public Object caseResourceRef(ResourceRef object) {
- return createResourceRefAdapter();
- }
- public Object caseSecurityRoleRef(SecurityRoleRef object) {
- return createSecurityRoleRefAdapter();
- }
- public Object caseSecurityRole(SecurityRole object) {
- return createSecurityRoleAdapter();
- }
- public Object caseResourceEnvRef(ResourceEnvRef object) {
- return createResourceEnvRefAdapter();
- }
- public Object caseEJBLocalRef(EJBLocalRef object) {
- return createEJBLocalRefAdapter();
- }
- public Object caseRunAsSpecifiedIdentity(RunAsSpecifiedIdentity object) {
- return createRunAsSpecifiedIdentityAdapter();
- }
- public Object caseIdentity(Identity object) {
- return createIdentityAdapter();
- }
- public Object caseIconType(IconType object) {
- return createIconTypeAdapter();
- }
- public Object caseDisplayName(DisplayName object) {
- return createDisplayNameAdapter();
- }
- public Object caseMessageDestinationRef(MessageDestinationRef object) {
- return createMessageDestinationRefAdapter();
- }
- public Object caseMessageDestination(MessageDestination object) {
- return createMessageDestinationAdapter();
- }
- public Object caseParamValue(ParamValue object) {
- return createParamValueAdapter();
- }
- public Object caseDescriptionGroup(DescriptionGroup object) {
- return createDescriptionGroupAdapter();
- }
- public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) {
- return createJNDIEnvRefsGroupAdapter();
- }
- public Object caseSecurityIdentity(SecurityIdentity object) {
- return createSecurityIdentityAdapter();
- }
- public Object caseUseCallerIdentity(UseCallerIdentity object) {
- return createUseCallerIdentityAdapter();
- }
- public Object caseDescription(Description object) {
- return createDescriptionAdapter();
- }
- public Object caseQName(QName object) {
- return createQNameAdapter();
- }
- public Object caseListener(Listener object) {
- return createListenerAdapter();
- }
- public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) {
- return createCompatibilityDescriptionGroupAdapter();
- }
- public Object caseJ2EEEObject(J2EEEObject object) {
- return createJ2EEEObjectAdapter();
- }
- public Object caseJ2EEEAttribute(J2EEEAttribute object) {
- return createJ2EEEAttributeAdapter();
- }
- public Object caseEModelElement(EModelElement object) {
- return createEModelElementAdapter();
- }
- public Object caseENamedElement(ENamedElement object) {
- return createENamedElementAdapter();
- }
- public Object caseETypedElement(ETypedElement object) {
- return createETypedElementAdapter();
- }
- public Object caseEStructuralFeature(EStructuralFeature object) {
- return createEStructuralFeatureAdapter();
- }
- public Object caseEAttribute(EAttribute object) {
- return createEAttributeAdapter();
- }
- public Object defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createAdapterGen(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * By default create methods return null so that we can easily ignore cases.
- * It's useful to ignore a case when inheritance will catch all the cases anyway.
- */
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSecurityRoleAdapterGen() {
-
- return null;
- }
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createResourceRefAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createEjbRefAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createEJBLocalRefAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createEnvEntryAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSecurityRoleRefAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createRunAsSpecifiedIdentityAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSecurityIdentityAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createUseCallerIdentityAdapterGen() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.Description <em>Description</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.eclipse.jst.j2ee.common.Description
- * @generated
- */
- public Adapter createDescriptionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.QName <em>QName</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.eclipse.jst.j2ee.common.QName
- * @generated
- */
- public Adapter createQNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.Listener <em>Listener</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.eclipse.jst.j2ee.common.Listener
- * @generated
- */
- public Adapter createListenerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup <em>Compatibility Description Group</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.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup
- * @generated
- */
- public Adapter createCompatibilityDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.J2EEEObject <em>J2EEE Object</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.eclipse.jst.j2ee.common.J2EEEObject
- * @generated
- */
- public Adapter createJ2EEEObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.J2EEEAttribute <em>J2EEE Attribute</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.eclipse.jst.j2ee.common.J2EEEAttribute
- * @generated
- */
- public Adapter createJ2EEEAttributeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement <em>EModel Element</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.eclipse.emf.ecore.EModelElement
- * @generated
- */
- public Adapter createEModelElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ENamedElement <em>ENamed Element</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.eclipse.emf.ecore.ENamedElement
- * @generated
- */
- public Adapter createENamedElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.ETypedElement <em>ETyped Element</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.eclipse.emf.ecore.ETypedElement
- * @generated
- */
- public Adapter createETypedElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EStructuralFeature <em>EStructural Feature</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.eclipse.emf.ecore.EStructuralFeature
- * @generated
- */
- public Adapter createEStructuralFeatureAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EAttribute <em>EAttribute</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.eclipse.emf.ecore.EAttribute
- * @generated
- */
- public Adapter createEAttributeAdapter() {
- 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;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createIdentityAdapterGen() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.IconType <em>Icon 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.eclipse.jst.j2ee.common.IconType
- * @generated
- */
- public Adapter createIconTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DisplayName <em>Display Name</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.eclipse.jst.j2ee.common.DisplayName
- * @generated
- */
- public Adapter createDisplayNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.MessageDestinationRef <em>Message Destination Ref</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.eclipse.jst.j2ee.common.MessageDestinationRef
- * @generated
- */
- public Adapter createMessageDestinationRefAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.MessageDestination <em>Message Destination</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.eclipse.jst.j2ee.common.MessageDestination
- * @generated
- */
- public Adapter createMessageDestinationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.ParamValue <em>Param Value</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.eclipse.jst.j2ee.common.ParamValue
- * @generated
- */
- public Adapter createParamValueAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.DescriptionGroup <em>Description Group</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.eclipse.jst.j2ee.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup <em>JNDI Env Refs Group</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.eclipse.jst.j2ee.common.JNDIEnvRefsGroup
- * @generated
- */
- public Adapter createJNDIEnvRefsGroupAdapter() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createResourceEnvRefAdapterGen() {
- return null;
- }
-
-} //CommonAdapterFactory
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java
deleted file mode 100644
index c99146a78..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonSwitch.java
+++ /dev/null
@@ -1,761 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.ENamedElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.ETypedElement;
-
-import org.eclipse.jst.j2ee.common.*;
-
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.DisplayName;
-import org.eclipse.jst.j2ee.common.EJBLocalRef;
-import org.eclipse.jst.j2ee.common.EjbRef;
-import org.eclipse.jst.j2ee.common.EnvEntry;
-import org.eclipse.jst.j2ee.common.IconType;
-import org.eclipse.jst.j2ee.common.Identity;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.common.JNDIEnvRefsGroup;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.MessageDestination;
-import org.eclipse.jst.j2ee.common.MessageDestinationRef;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.common.ResourceEnvRef;
-import org.eclipse.jst.j2ee.common.ResourceRef;
-import org.eclipse.jst.j2ee.common.RunAsSpecifiedIdentity;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.UseCallerIdentity;
-
-
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.common.CommonPackage
- * @generated
- */
-public class CommonSwitch {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static CommonPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public CommonSwitch() {
- if (modelPackage == null) {
- modelPackage = CommonPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public Object doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected Object doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch((EClass)eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected Object doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case CommonPackage.EJB_REF: {
- EjbRef ejbRef = (EjbRef)theEObject;
- Object result = caseEjbRef(ejbRef);
- if (result == null) result = caseJ2EEEObject(ejbRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.ENV_ENTRY: {
- EnvEntry envEntry = (EnvEntry)theEObject;
- Object result = caseEnvEntry(envEntry);
- if (result == null) result = caseJ2EEEObject(envEntry);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.RESOURCE_REF: {
- ResourceRef resourceRef = (ResourceRef)theEObject;
- Object result = caseResourceRef(resourceRef);
- if (result == null) result = caseJ2EEEObject(resourceRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.SECURITY_ROLE_REF: {
- SecurityRoleRef securityRoleRef = (SecurityRoleRef)theEObject;
- Object result = caseSecurityRoleRef(securityRoleRef);
- if (result == null) result = caseJ2EEEObject(securityRoleRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.SECURITY_ROLE: {
- SecurityRole securityRole = (SecurityRole)theEObject;
- Object result = caseSecurityRole(securityRole);
- if (result == null) result = caseJ2EEEObject(securityRole);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.RESOURCE_ENV_REF: {
- ResourceEnvRef resourceEnvRef = (ResourceEnvRef)theEObject;
- Object result = caseResourceEnvRef(resourceEnvRef);
- if (result == null) result = caseJ2EEEObject(resourceEnvRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.EJB_LOCAL_REF: {
- EJBLocalRef ejbLocalRef = (EJBLocalRef)theEObject;
- Object result = caseEJBLocalRef(ejbLocalRef);
- if (result == null) result = caseEjbRef(ejbLocalRef);
- if (result == null) result = caseJ2EEEObject(ejbLocalRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.RUN_AS_SPECIFIED_IDENTITY: {
- RunAsSpecifiedIdentity runAsSpecifiedIdentity = (RunAsSpecifiedIdentity)theEObject;
- Object result = caseRunAsSpecifiedIdentity(runAsSpecifiedIdentity);
- if (result == null) result = caseSecurityIdentity(runAsSpecifiedIdentity);
- if (result == null) result = caseJ2EEEObject(runAsSpecifiedIdentity);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.IDENTITY: {
- Identity identity = (Identity)theEObject;
- Object result = caseIdentity(identity);
- if (result == null) result = caseJ2EEEObject(identity);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.ICON_TYPE: {
- IconType iconType = (IconType)theEObject;
- Object result = caseIconType(iconType);
- if (result == null) result = caseJ2EEEObject(iconType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.DISPLAY_NAME: {
- DisplayName displayName = (DisplayName)theEObject;
- Object result = caseDisplayName(displayName);
- if (result == null) result = caseJ2EEEObject(displayName);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.MESSAGE_DESTINATION_REF: {
- MessageDestinationRef messageDestinationRef = (MessageDestinationRef)theEObject;
- Object result = caseMessageDestinationRef(messageDestinationRef);
- if (result == null) result = caseJ2EEEObject(messageDestinationRef);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.MESSAGE_DESTINATION: {
- MessageDestination messageDestination = (MessageDestination)theEObject;
- Object result = caseMessageDestination(messageDestination);
- if (result == null) result = caseCompatibilityDescriptionGroup(messageDestination);
- if (result == null) result = caseDescriptionGroup(messageDestination);
- if (result == null) result = caseJ2EEEObject(messageDestination);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.PARAM_VALUE: {
- ParamValue paramValue = (ParamValue)theEObject;
- Object result = caseParamValue(paramValue);
- if (result == null) result = caseJ2EEEObject(paramValue);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.DESCRIPTION_GROUP: {
- DescriptionGroup descriptionGroup = (DescriptionGroup)theEObject;
- Object result = caseDescriptionGroup(descriptionGroup);
- if (result == null) result = caseJ2EEEObject(descriptionGroup);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.JNDI_ENV_REFS_GROUP: {
- JNDIEnvRefsGroup jndiEnvRefsGroup = (JNDIEnvRefsGroup)theEObject;
- Object result = caseJNDIEnvRefsGroup(jndiEnvRefsGroup);
- if (result == null) result = caseCompatibilityDescriptionGroup(jndiEnvRefsGroup);
- if (result == null) result = caseDescriptionGroup(jndiEnvRefsGroup);
- if (result == null) result = caseJ2EEEObject(jndiEnvRefsGroup);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.SECURITY_IDENTITY: {
- SecurityIdentity securityIdentity = (SecurityIdentity)theEObject;
- Object result = caseSecurityIdentity(securityIdentity);
- if (result == null) result = caseJ2EEEObject(securityIdentity);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.USE_CALLER_IDENTITY: {
- UseCallerIdentity useCallerIdentity = (UseCallerIdentity)theEObject;
- Object result = caseUseCallerIdentity(useCallerIdentity);
- if (result == null) result = caseSecurityIdentity(useCallerIdentity);
- if (result == null) result = caseJ2EEEObject(useCallerIdentity);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.DESCRIPTION: {
- Description description = (Description)theEObject;
- Object result = caseDescription(description);
- if (result == null) result = caseJ2EEEObject(description);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.QNAME: {
- QName qName = (QName)theEObject;
- Object result = caseQName(qName);
- if (result == null) result = caseJ2EEEObject(qName);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.LISTENER: {
- Listener listener = (Listener)theEObject;
- Object result = caseListener(listener);
- if (result == null) result = caseCompatibilityDescriptionGroup(listener);
- if (result == null) result = caseDescriptionGroup(listener);
- if (result == null) result = caseJ2EEEObject(listener);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.COMPATIBILITY_DESCRIPTION_GROUP: {
- CompatibilityDescriptionGroup compatibilityDescriptionGroup = (CompatibilityDescriptionGroup)theEObject;
- Object result = caseCompatibilityDescriptionGroup(compatibilityDescriptionGroup);
- if (result == null) result = caseDescriptionGroup(compatibilityDescriptionGroup);
- if (result == null) result = caseJ2EEEObject(compatibilityDescriptionGroup);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.J2EEE_OBJECT: {
- J2EEEObject j2EEEObject = (J2EEEObject)theEObject;
- Object result = caseJ2EEEObject(j2EEEObject);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case CommonPackage.J2EEE_ATTRIBUTE: {
- J2EEEAttribute j2EEEAttribute = (J2EEEAttribute)theEObject;
- Object result = caseJ2EEEAttribute(j2EEEAttribute);
- if (result == null) result = caseEAttribute(j2EEEAttribute);
- if (result == null) result = caseEStructuralFeature(j2EEEAttribute);
- if (result == null) result = caseETypedElement(j2EEEAttribute);
- if (result == null) result = caseENamedElement(j2EEEAttribute);
- if (result == null) result = caseEModelElement(j2EEEAttribute);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Ejb Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Ejb Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEjbRef(EjbRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Env Entry</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Env Entry</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEnvEntry(EnvEntry object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Resource Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Resource Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseResourceRef(ResourceRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Security Role Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Security Role Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSecurityRoleRef(SecurityRoleRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Security Role</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Security Role</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSecurityRole(SecurityRole object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Resource Env Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Resource Env Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseResourceEnvRef(ResourceEnvRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EJB Local Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EJB Local Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEJBLocalRef(EJBLocalRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Run As Specified Identity</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Run As Specified Identity</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseRunAsSpecifiedIdentity(RunAsSpecifiedIdentity object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Security Identity</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Security Identity</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSecurityIdentity(SecurityIdentity object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Identity</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Identity</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseIdentity(Identity object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Icon Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Icon Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseIconType(IconType object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Display Name</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Display Name</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseDisplayName(DisplayName object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Message Destination Ref</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Message Destination Ref</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseMessageDestinationRef(MessageDestinationRef object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Message Destination</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Message Destination</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseMessageDestination(MessageDestination object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Param Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Param Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseParamValue(ParamValue object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Description Group</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Description Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseDescriptionGroup(DescriptionGroup object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>JNDI Env Refs Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseJNDIEnvRefsGroup(JNDIEnvRefsGroup object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Use Caller Identity</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Use Caller Identity</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseUseCallerIdentity(UseCallerIdentity object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Description</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Description</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseDescription(Description object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>QName</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>QName</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseQName(QName object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Listener</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Listener</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseListener(Listener object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Compatibility Description Group</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>J2EEE Object</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>J2EEE Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseJ2EEEObject(J2EEEObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>J2EEE Attribute</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>J2EEE Attribute</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseJ2EEEAttribute(J2EEEAttribute object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EModel Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EModel Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEModelElement(EModelElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>ENamed Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>ENamed Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseENamedElement(ENamedElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>ETyped Element</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>ETyped Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseETypedElement(ETypedElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EStructural Feature</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EStructural Feature</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEStructuralFeature(EStructuralFeature object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EAttribute</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EAttribute</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseEAttribute(EAttribute object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public Object defaultCase(EObject object) {
- return null;
- }
-
-} //CommonSwitch
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java
deleted file mode 100644
index 56d104623..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/CommonUtil.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.jst.j2ee.application.internal.impl.ApplicationFactoryImpl;
-import org.eclipse.jst.j2ee.client.internal.impl.ClientFactoryImpl;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EjbFactoryImpl;
-import org.eclipse.jst.j2ee.internal.MOFJ2EEResourceHandler;
-import org.eclipse.jst.j2ee.jca.internal.impl.JcaFactoryImpl;
-import org.eclipse.jst.j2ee.webapplication.internal.impl.WebapplicationFactoryImpl;
-
-
-public class CommonUtil {
-public static boolean isDeploymentDescriptorRoot(EObject o) {
- return isDeploymentDescriptorRoot(o, true);
-}
-public static boolean isDeploymentDescriptorRoot(EObject o, boolean includeEars) {
- EObject meta = o.eClass();
- return (includeEars && meta == eClassApplication()) ||
- meta == eClassApplicationClient() ||
- meta == eClassEJBJar() ||
- meta == eClassWebApp() ||
- meta == eClassConnector();
-}
-public static boolean isDeploymentDescriptorRoot(Object o) {
- return isDeploymentDescriptorRoot(o, true);
-}
-public static boolean isDeploymentDescriptorRoot(Object o, boolean includeEARs) {
- if (o instanceof EObject)
- return isDeploymentDescriptorRoot((EObject)o, includeEARs);
- return false;
-}
-protected static EClass eClassApplication() {
- return ApplicationFactoryImpl.getPackage().getApplication();
-}
-protected static EClass eClassApplicationClient() {
- return ClientFactoryImpl.getPackage().getApplicationClient();
-}
-protected static EClass eClassEJBJar() {
- return EjbFactoryImpl.getPackage().getEJBJar();
-}
-protected static EClass eClassWebApp() {
- return WebapplicationFactoryImpl.getPackage().getWebApp();
-}
-
-protected static EClass eClassConnector() {
- return JcaFactoryImpl.getPackage().getConnector();
-}
-/**
- * Safety check method to ensure that the version of the dd object can be computed.
- */
-public static void checkDDObjectForVersion(EObject dd) {
- if (dd.eIsProxy()) {
- String proxyUri = ((InternalEObject)dd).eProxyURI().toString();
- String message = MOFJ2EEResourceHandler.getString(MOFJ2EEResourceHandler.J2EE_VERSION_PROXY_ERROR, new Object[]{proxyUri});
- throw new IllegalStateException(message);
- } else if (dd.eResource() == null) {
- String message = MOFJ2EEResourceHandler.J2EE_VERSION_NULL_ERROR;
- throw new IllegalStateException(message);
- }
-}
-
-}
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java
deleted file mode 100644
index 4301ee406..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultable.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-import org.eclipse.emf.common.notify.Notifier;
-/**
- * Interface used for objects that can be "fluffed up" on demand, but not serialized unless modified
- * @since 1.0 */
-public interface Defaultable extends Notifier {
-public boolean isDefault();
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java
deleted file mode 100644
index 405409177..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/DefaultedAdapterImpl.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-/**
- * Insert the type's description here.
- * Creation date: (03/22/01 10:54:22 AM)
- * @author: Administrator
- */
-public abstract class DefaultedAdapterImpl extends AdapterImpl {
- final static String ADAPTER_KEY = "DEFAULTED_ADAPTER"; //$NON-NLS-1$
- protected boolean fNotify = true;
-/**
- * DefaultedAdapter constructor comment.
- */
-public DefaultedAdapterImpl() {
- super();
-}
-public abstract EObject defaultContainer();
-public boolean isAdapterForType(Object type) {
- return ADAPTER_KEY.equals(type);
-}
-public static boolean isDefault(Defaultable object) {
- Defaultor defaultor = (Defaultor) retrieveDefaultContainerFor(object);
- return defaultor != null && defaultor.isDefault(object);
-}
-
-/**
- * Insert the method's description here.
- * Creation date: (6/13/2001 8:43:41 PM)
- * @return boolean
- */
-public boolean isNotify() {
- return fNotify;
-}
-public static DefaultedAdapterImpl retrieveAdapterFor(Defaultable notifier) {
- return (DefaultedAdapterImpl)EcoreUtil.getExistingAdapter(notifier,ADAPTER_KEY);
-}
-public static EObject retrieveDefaultContainerFor(Defaultable notifier) {
- DefaultedAdapterImpl adapter = retrieveAdapterFor(notifier);
- return adapter == null ? null : adapter.defaultContainer();
-}
-/**
- * Insert the method's description here.
- * Creation date: (6/13/2001 8:43:41 PM)
- * @param newNotify boolean
- */
-public void setNotify(boolean newNotify) {
- fNotify = newNotify;
-}
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java
deleted file mode 100644
index 3aadeb2f8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/Defaultor.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-/**
- * Insert the type's description here.
- * Creation date: (6/15/2001 4:58:15 PM)
- * @author: Administrator
- * @since 1.0 */
-public interface Defaultor {
-/**
- * Returns true if this objects create @aDefaultable and it is still
- * currently default and not contained.
- * Creation date: (6/15/2001 4:59:28 PM)
- * @return boolean
- * @param aDefaultable org.eclipse.jst.j2ee.internal.common.util.Defaultable
- */
-boolean isDefault(Defaultable aDefaultable);
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java
deleted file mode 100644
index dfbcdd8ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/IDUtility.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.wst.common.internal.emf.utilities.IDUtil;
-
-
-/**
- * Utility class for generating and setting unique id's for ref objects contained within a resource. This is needed
- * sometimes when a refobject is referenced by an object in a separate resource. This utility will force the refobject
- * to notify after the id gets set, using the static feature on this class. The object must be contained in a resource
- * for the utility methods to work.
- */
-public class IDUtility {
-
-/**
- * IDUtility constructor comment.
- */
-public IDUtility() {
- super();
-}
-/**
- * Generate a default id and notify.
- */
-protected static String primSetDefaultID(EObject object) {
- return IDUtil.getOrAssignID(object);
-}
-
-/**
- * Generate a default id and notify.
- * Helper for default id generation to support cross document references to non xmi resources
- * (eg, xml deployment descriptors); called from overriden accessors in selected objects;
- */
-public static String setDefaultID(EObject object) {
- if (object == null || object.eResource() == null)
- return null;
- return primSetDefaultID(object);
-}
-
-/**
- * Generate a default id and notify, for this object and for all referenced objects that are contained
- * within the same resource. Helper for default id generation to support cross document references to non xmi resources
- * (eg, xml deployment descriptors); useful for post copy/add
- */
-public static String setDefaultID(EObject object, boolean recurseChildren) {
- if (object == null || object.eResource() == null)
- return null;
-
- String result = primSetDefaultID(object);
-
- if (recurseChildren)
- setDefaultIDForChildren(object);
-
- return result;
-}
-
-protected static void setDefaultIDForChildren(EObject object) {
-
- List objects = object.eContents();
- for (int i = 0; i < objects.size(); i++){
- EObject o = (EObject)objects.get(i);
- primSetDefaultID(o);
- }
-}
-}
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java
deleted file mode 100644
index 67d1934f1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/util/XmlSpecifiedDataAdapter.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 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.j2ee.common.internal.util;
-
-/**
- * Insert the type's description here.
- * Creation date: (06/04/01 7:56:22 PM)
- * @author: Administrator
- */
-public class XmlSpecifiedDataAdapter extends org.eclipse.emf.common.notify.impl.AdapterImpl {
- protected final static String ADAPTER_KEY = "XML_SPECIFIED_ADAPTER"; //$NON-NLS-1$
-/**
- * XmlSpecifiedDataAdapter constructor comment.
- */
-public XmlSpecifiedDataAdapter() {
- super();
-}
-public boolean isAdapterForType(Object type) {
- return ADAPTER_KEY.equals(type);
-}
-}
-
-

Back to the top