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/jca/internal')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java272
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java445
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java352
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java434
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java422
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java188
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java176
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java305
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java1104
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java271
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java149
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java243
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java378
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java812
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java241
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java157
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java408
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java486
21 files changed, 0 insertions, 7361 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java
deleted file mode 100644
index 15fd95cd5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ActivationSpecImpl.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Activation Spec</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl#getActivationSpecClass <em>Activation Spec Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ActivationSpecImpl#getRequiredConfigProperties <em>Required Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ActivationSpecImpl extends J2EEEObjectImpl implements ActivationSpec {
- /**
- * The default value of the '{@link #getActivationSpecClass() <em>Activation Spec Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getActivationSpecClass()
- * @generated
- * @ordered
- */
- protected static final String ACTIVATION_SPEC_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getActivationSpecClass() <em>Activation Spec Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getActivationSpecClass()
- * @generated
- * @ordered
- */
- protected String activationSpecClass = ACTIVATION_SPEC_CLASS_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getRequiredConfigProperties() <em>Required Config Properties</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRequiredConfigProperties()
- * @generated
- * @ordered
- */
- protected EList requiredConfigProperties = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ActivationSpecImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.ACTIVATION_SPEC;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getActivationSpecClass() {
- return activationSpecClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setActivationSpecClass(String newActivationSpecClass) {
- String oldActivationSpecClass = activationSpecClass;
- activationSpecClass = newActivationSpecClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS, oldActivationSpecClass, activationSpecClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getRequiredConfigProperties() {
- if (requiredConfigProperties == null) {
- requiredConfigProperties = new EObjectContainmentEList(RequiredConfigPropertyType.class, this, JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES);
- }
- return requiredConfigProperties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES:
- return ((InternalEList)getRequiredConfigProperties()).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 JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS:
- return getActivationSpecClass();
- case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES:
- return getRequiredConfigProperties();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS:
- setActivationSpecClass((String)newValue);
- return;
- case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES:
- getRequiredConfigProperties().clear();
- getRequiredConfigProperties().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS:
- setActivationSpecClass(ACTIVATION_SPEC_CLASS_EDEFAULT);
- return;
- case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES:
- getRequiredConfigProperties().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS:
- return ACTIVATION_SPEC_CLASS_EDEFAULT == null ? activationSpecClass != null : !ACTIVATION_SPEC_CLASS_EDEFAULT.equals(activationSpecClass);
- case JcaPackage.ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES:
- return requiredConfigProperties != null && !requiredConfigProperties.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(" (activationSpecClass: ");
- result.append(activationSpecClass);
- result.append(')');
- return result.toString();
- }
-
-} //ActivationSpecImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java
deleted file mode 100644
index a6b5d77d1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AdminObjectImpl.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Admin Object</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getAdminObjectInterface <em>Admin Object Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getAdminObjectClass <em>Admin Object Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.AdminObjectImpl#getConfigProperties <em>Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AdminObjectImpl extends J2EEEObjectImpl implements AdminObject {
- /**
- * The default value of the '{@link #getAdminObjectInterface() <em>Admin Object Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAdminObjectInterface()
- * @generated
- * @ordered
- */
- protected static final String ADMIN_OBJECT_INTERFACE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAdminObjectInterface() <em>Admin Object Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAdminObjectInterface()
- * @generated
- * @ordered
- */
- protected String adminObjectInterface = ADMIN_OBJECT_INTERFACE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAdminObjectClass() <em>Admin Object Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAdminObjectClass()
- * @generated
- * @ordered
- */
- protected static final String ADMIN_OBJECT_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAdminObjectClass() <em>Admin Object Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAdminObjectClass()
- * @generated
- * @ordered
- */
- protected String adminObjectClass = ADMIN_OBJECT_CLASS_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getConfigProperties() <em>Config Properties</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConfigProperties()
- * @generated
- * @ordered
- */
- protected EList configProperties = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AdminObjectImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.ADMIN_OBJECT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAdminObjectInterface() {
- return adminObjectInterface;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAdminObjectInterface(String newAdminObjectInterface) {
- String oldAdminObjectInterface = adminObjectInterface;
- adminObjectInterface = newAdminObjectInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE, oldAdminObjectInterface, adminObjectInterface));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAdminObjectClass() {
- return adminObjectClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAdminObjectClass(String newAdminObjectClass) {
- String oldAdminObjectClass = adminObjectClass;
- adminObjectClass = newAdminObjectClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS, oldAdminObjectClass, adminObjectClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getConfigProperties() {
- if (configProperties == null) {
- configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES);
- }
- return configProperties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES:
- return ((InternalEList)getConfigProperties()).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 JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE:
- return getAdminObjectInterface();
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS:
- return getAdminObjectClass();
- case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES:
- return getConfigProperties();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE:
- setAdminObjectInterface((String)newValue);
- return;
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS:
- setAdminObjectClass((String)newValue);
- return;
- case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- getConfigProperties().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE:
- setAdminObjectInterface(ADMIN_OBJECT_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS:
- setAdminObjectClass(ADMIN_OBJECT_CLASS_EDEFAULT);
- return;
- case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE:
- return ADMIN_OBJECT_INTERFACE_EDEFAULT == null ? adminObjectInterface != null : !ADMIN_OBJECT_INTERFACE_EDEFAULT.equals(adminObjectInterface);
- case JcaPackage.ADMIN_OBJECT__ADMIN_OBJECT_CLASS:
- return ADMIN_OBJECT_CLASS_EDEFAULT == null ? adminObjectClass != null : !ADMIN_OBJECT_CLASS_EDEFAULT.equals(adminObjectClass);
- case JcaPackage.ADMIN_OBJECT__CONFIG_PROPERTIES:
- return configProperties != null && !configProperties.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(" (adminObjectInterface: ");
- result.append(adminObjectInterface);
- result.append(", adminObjectClass: ");
- result.append(adminObjectClass);
- result.append(')');
- return result.toString();
- }
-
-} //AdminObjectImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java
deleted file mode 100644
index 0922576d9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/AuthenticationMechanismImpl.java
+++ /dev/null
@@ -1,445 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.Description;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-
-
-/**
- * The element authentication-mechanism specifies an authentication mechanism supported by the resource adapter. Note that this support is for the resource adapter and not for the underlying EIS instance. The optional description specifies any resource adapter specific requirement for the support of security contract and authentication mechanism.
- *
- * Note that BasicPassword mechanism type should support the
- * javax.resource.spi.security.PasswordCredential interface.
- * The Kerbv5 mechanism type should support the
- * javax.resource.spi.security.GenericCredential interface.
- * @generated
- */
-public class AuthenticationMechanismImpl extends J2EEEObjectImpl implements AuthenticationMechanism {
-
- /**
- * 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 #getAuthenticationMechanism() <em>Authentication Mechanism</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthenticationMechanism()
- * @generated
- * @ordered
- */
- protected static final String AUTHENTICATION_MECHANISM_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAuthenticationMechanism() <em>Authentication Mechanism</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthenticationMechanism()
- * @generated
- * @ordered
- */
- protected String authenticationMechanism = AUTHENTICATION_MECHANISM_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAuthenticationMechanismType() <em>Authentication Mechanism Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthenticationMechanismType()
- * @generated
- * @ordered
- */
- protected static final AuthenticationMechanismType AUTHENTICATION_MECHANISM_TYPE_EDEFAULT = AuthenticationMechanismType.BASIC_PASSWORD_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected AuthenticationMechanismType authenticationMechanismType = AUTHENTICATION_MECHANISM_TYPE_EDEFAULT;
- /**
- * This is true if the Authentication Mechanism Type attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean authenticationMechanismTypeESet = false;
-
- /**
- * The default value of the '{@link #getCredentialInterface() <em>Credential Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCredentialInterface()
- * @generated
- * @ordered
- */
- protected static final String CREDENTIAL_INTERFACE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String credentialInterface = CREDENTIAL_INTERFACE_EDEFAULT;
- /**
- * The default value of the '{@link #getCustomAuthMechType() <em>Custom Auth Mech Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCustomAuthMechType()
- * @generated
- * @ordered
- */
- protected static final String CUSTOM_AUTH_MECH_TYPE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String customAuthMechType = CUSTOM_AUTH_MECH_TYPE_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;
-
- protected AuthenticationMechanismImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.AUTHENTICATION_MECHANISM;
- }
-
- /**
- * @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, JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAuthenticationMechanism() {
- return authenticationMechanism;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthenticationMechanism(String newAuthenticationMechanism) {
- String oldAuthenticationMechanism = authenticationMechanism;
- authenticationMechanism = newAuthenticationMechanism;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM, oldAuthenticationMechanism, authenticationMechanism));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The authentication-mechanism-type specifies type of an authentication mechanism.
- *
- * The example values are:
- * - BasicPassword
- * - Kerbv5
- *
- * Any additional security mechanisms are outside the scope of the
- * Connector architecture specification.
-
- */
- public AuthenticationMechanismType getAuthenticationMechanismType() {
- return authenticationMechanismType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthenticationMechanismType(AuthenticationMechanismType newAuthenticationMechanismType) {
- AuthenticationMechanismType oldAuthenticationMechanismType = authenticationMechanismType;
- authenticationMechanismType = newAuthenticationMechanismType == null ? AUTHENTICATION_MECHANISM_TYPE_EDEFAULT : newAuthenticationMechanismType;
- boolean oldAuthenticationMechanismTypeESet = authenticationMechanismTypeESet;
- authenticationMechanismTypeESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE, oldAuthenticationMechanismType, authenticationMechanismType, !oldAuthenticationMechanismTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetAuthenticationMechanismType() {
- AuthenticationMechanismType oldAuthenticationMechanismType = authenticationMechanismType;
- boolean oldAuthenticationMechanismTypeESet = authenticationMechanismTypeESet;
- authenticationMechanismType = AUTHENTICATION_MECHANISM_TYPE_EDEFAULT;
- authenticationMechanismTypeESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE, oldAuthenticationMechanismType, AUTHENTICATION_MECHANISM_TYPE_EDEFAULT, oldAuthenticationMechanismTypeESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetAuthenticationMechanismType() {
- return authenticationMechanismTypeESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the interface that the resource adapter implementation supports for
- * the representation of the credentials. This element should be used by
- * application server to find out the Credential interface it should use as part
- * of the security contract.
- *
- * The possible values are:
- * javax.resource.spi.security.PasswordCredential
- * javax.resource.spi.security.GenericCredential
-
- */
- public String getCredentialInterface() {
- return credentialInterface;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setCredentialInterface(String newCredentialInterface) {
- String oldCredentialInterface = credentialInterface;
- credentialInterface = newCredentialInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE, oldCredentialInterface, credentialInterface));
- }
-
- /**
- * @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(", authenticationMechanism: ");
- result.append(authenticationMechanism);
- result.append(", authenticationMechanismType: ");
- if (authenticationMechanismTypeESet) result.append(authenticationMechanismType); else result.append("<unset>");
- result.append(", credentialInterface: ");
- result.append(credentialInterface);
- result.append(", customAuthMechType: ");
- result.append(customAuthMechType);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * This is an internal variable used to store the AthenticationMechanismType when
- * it is something other than BasicPassword or Kerbv5. AuthenticationMecanismType
- * is set to 'Custom' in those cases. This attribute should not be used by
- * runtime. It is only used by the writer to write back out the custom
- * AuthenticationMechanismType string in the case of custom
- * AuthenticationMechanismType's.
- * This variable is internal, used only by the reader//writer classes, and can
- * change or disappear without notice.
- */
- public String getCustomAuthMechType() {
- return customAuthMechType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setCustomAuthMechType(String newCustomAuthMechType) {
- String oldCustomAuthMechType = customAuthMechType;
- customAuthMechType = newCustomAuthMechType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE, oldCustomAuthMechType, customAuthMechType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.AUTHENTICATION_MECHANISM__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 JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION:
- return getDescription();
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM:
- return getAuthenticationMechanism();
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE:
- return getAuthenticationMechanismType();
- case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE:
- return getCredentialInterface();
- case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE:
- return getCustomAuthMechType();
- case JcaPackage.AUTHENTICATION_MECHANISM__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 JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM:
- setAuthenticationMechanism((String)newValue);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE:
- setAuthenticationMechanismType((AuthenticationMechanismType)newValue);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE:
- setCredentialInterface((String)newValue);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE:
- setCustomAuthMechType((String)newValue);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__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 JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM:
- setAuthenticationMechanism(AUTHENTICATION_MECHANISM_EDEFAULT);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE:
- unsetAuthenticationMechanismType();
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE:
- setCredentialInterface(CREDENTIAL_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE:
- setCustomAuthMechType(CUSTOM_AUTH_MECH_TYPE_EDEFAULT);
- return;
- case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM:
- return AUTHENTICATION_MECHANISM_EDEFAULT == null ? authenticationMechanism != null : !AUTHENTICATION_MECHANISM_EDEFAULT.equals(authenticationMechanism);
- case JcaPackage.AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE:
- return isSetAuthenticationMechanismType();
- case JcaPackage.AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE:
- return CREDENTIAL_INTERFACE_EDEFAULT == null ? credentialInterface != null : !CREDENTIAL_INTERFACE_EDEFAULT.equals(credentialInterface);
- case JcaPackage.AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE:
- return CUSTOM_AUTH_MECH_TYPE_EDEFAULT == null ? customAuthMechType != null : !CUSTOM_AUTH_MECH_TYPE_EDEFAULT.equals(customAuthMechType);
- case JcaPackage.AUTHENTICATION_MECHANISM__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java
deleted file mode 100644
index 8e75b921e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConfigPropertyImpl.java
+++ /dev/null
@@ -1,352 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.Description;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-
-
-/**
- * The config property contains a declaration of a single
- * configuration property for a ManagedConnectionFactory instance.
- *
- * Each ManagedConnectionFactory instance creates connections to a specific EIS instance based on the properties configured on the ManagedConnectionFactory instance. The configurable properties are specified only once in the deployment descriptor, even though a resource adapter can be used to configure multiple ManagedConnnection-Factory instances (that create connections to different instances of the same EIS).
- *
- * The declaration consists of an optional description, name, type
- * and an optional value of the configuration property. If the resource
- * adapter provider does not specify a value than the deployer is
- * responsible for providing a valid value for a configuration property.
- *
- * Any bounds or well-defined values of properties should be described in the description.
- * @generated
- */
-public class ConfigPropertyImpl extends J2EEEObjectImpl implements ConfigProperty {
-
- /**
- * 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 #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 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;
-
- protected ConfigPropertyImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.CONFIG_PROPERTY;
- }
-
- /**
- * @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, JcaPackage.CONFIG_PROPERTY__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Contains the name of a configuration property.
- *
- * The connector architecture defines a set of well-defined properties all of type java.lang.String. These are as follows:
- *
- * ServerName
- * PortNumber
- * UserName
- * Password
- * ConnectionURL
- *
- * A resource adapter provider can extend this property set to include properties specific to the resource adapter and its underlying EIS.
-
- */
- 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, JcaPackage.CONFIG_PROPERTY__NAME, oldName, name));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Contains the fully qualified Java type of a configuration property as required by ManagedConnection-Factory instance.
- *
- * The following are the legal values of config-property-type:
- * java.lang.Boolean, java.lang.String, java.lang.Integer,
- * java.lang.Double, java.lang.Byte, java.lang.Short,
- * java.lang.Long, java.lang.Float, java.lang.Character
- */
- 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, JcaPackage.CONFIG_PROPERTY__TYPE, oldType, type));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Contains the value of a configuration entry.
- */
- 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, JcaPackage.CONFIG_PROPERTY__VALUE, oldValue, value));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.CONFIG_PROPERTY__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 JcaPackage.CONFIG_PROPERTY__DESCRIPTION:
- return getDescription();
- case JcaPackage.CONFIG_PROPERTY__NAME:
- return getName();
- case JcaPackage.CONFIG_PROPERTY__TYPE:
- return getType();
- case JcaPackage.CONFIG_PROPERTY__VALUE:
- return getValue();
- case JcaPackage.CONFIG_PROPERTY__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 JcaPackage.CONFIG_PROPERTY__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case JcaPackage.CONFIG_PROPERTY__NAME:
- setName((String)newValue);
- return;
- case JcaPackage.CONFIG_PROPERTY__TYPE:
- setType((String)newValue);
- return;
- case JcaPackage.CONFIG_PROPERTY__VALUE:
- setValue((String)newValue);
- return;
- case JcaPackage.CONFIG_PROPERTY__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 JcaPackage.CONFIG_PROPERTY__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case JcaPackage.CONFIG_PROPERTY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case JcaPackage.CONFIG_PROPERTY__TYPE:
- setType(TYPE_EDEFAULT);
- return;
- case JcaPackage.CONFIG_PROPERTY__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case JcaPackage.CONFIG_PROPERTY__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.CONFIG_PROPERTY__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case JcaPackage.CONFIG_PROPERTY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case JcaPackage.CONFIG_PROPERTY__TYPE:
- return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case JcaPackage.CONFIG_PROPERTY__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- case JcaPackage.CONFIG_PROPERTY__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(", value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java
deleted file mode 100644
index 822e14162..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectionDefinitionImpl.java
+++ /dev/null
@@ -1,434 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Connection Definition</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionFactoryInterface <em>Connection Factory Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionInterface <em>Connection Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConnectionImplClass <em>Connection Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.ConnectionDefinitionImpl#getConfigProperties <em>Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ConnectionDefinitionImpl extends J2EEEObjectImpl implements ConnectionDefinition {
- /**
- * The default value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getManagedConnectionFactoryClass()
- * @generated
- * @ordered
- */
- protected static final String MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getManagedConnectionFactoryClass()
- * @generated
- * @ordered
- */
- protected String managedConnectionFactoryClass = MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT;
-
- /**
- * The default value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryInterface()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_FACTORY_INTERFACE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryInterface()
- * @generated
- * @ordered
- */
- protected String connectionFactoryInterface = CONNECTION_FACTORY_INTERFACE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryImplClass()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryImplClass()
- * @generated
- * @ordered
- */
- protected String connectionFactoryImplClass = CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT;
-
- /**
- * The default value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionInterface()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_INTERFACE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionInterface()
- * @generated
- * @ordered
- */
- protected String connectionInterface = CONNECTION_INTERFACE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionImplClass()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_IMPL_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionImplClass()
- * @generated
- * @ordered
- */
- protected String connectionImplClass = CONNECTION_IMPL_CLASS_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getConfigProperties() <em>Config Properties</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConfigProperties()
- * @generated
- * @ordered
- */
- protected EList configProperties = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ConnectionDefinitionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.CONNECTION_DEFINITION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getManagedConnectionFactoryClass() {
- return managedConnectionFactoryClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setManagedConnectionFactoryClass(String newManagedConnectionFactoryClass) {
- String oldManagedConnectionFactoryClass = managedConnectionFactoryClass;
- managedConnectionFactoryClass = newManagedConnectionFactoryClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS, oldManagedConnectionFactoryClass, managedConnectionFactoryClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConnectionFactoryInterface() {
- return connectionFactoryInterface;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConnectionFactoryInterface(String newConnectionFactoryInterface) {
- String oldConnectionFactoryInterface = connectionFactoryInterface;
- connectionFactoryInterface = newConnectionFactoryInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE, oldConnectionFactoryInterface, connectionFactoryInterface));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConnectionFactoryImplClass() {
- return connectionFactoryImplClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConnectionFactoryImplClass(String newConnectionFactoryImplClass) {
- String oldConnectionFactoryImplClass = connectionFactoryImplClass;
- connectionFactoryImplClass = newConnectionFactoryImplClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS, oldConnectionFactoryImplClass, connectionFactoryImplClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConnectionInterface() {
- return connectionInterface;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConnectionInterface(String newConnectionInterface) {
- String oldConnectionInterface = connectionInterface;
- connectionInterface = newConnectionInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE, oldConnectionInterface, connectionInterface));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConnectionImplClass() {
- return connectionImplClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConnectionImplClass(String newConnectionImplClass) {
- String oldConnectionImplClass = connectionImplClass;
- connectionImplClass = newConnectionImplClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS, oldConnectionImplClass, connectionImplClass));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getConfigProperties() {
- if (configProperties == null) {
- configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES);
- }
- return configProperties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES:
- return ((InternalEList)getConfigProperties()).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 JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS:
- return getManagedConnectionFactoryClass();
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE:
- return getConnectionFactoryInterface();
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS:
- return getConnectionFactoryImplClass();
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE:
- return getConnectionInterface();
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS:
- return getConnectionImplClass();
- case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES:
- return getConfigProperties();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS:
- setManagedConnectionFactoryClass((String)newValue);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE:
- setConnectionFactoryInterface((String)newValue);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS:
- setConnectionFactoryImplClass((String)newValue);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE:
- setConnectionInterface((String)newValue);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS:
- setConnectionImplClass((String)newValue);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- getConfigProperties().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS:
- setManagedConnectionFactoryClass(MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE:
- setConnectionFactoryInterface(CONNECTION_FACTORY_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS:
- setConnectionFactoryImplClass(CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE:
- setConnectionInterface(CONNECTION_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS:
- setConnectionImplClass(CONNECTION_IMPL_CLASS_EDEFAULT);
- return;
- case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS:
- return MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT == null ? managedConnectionFactoryClass != null : !MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT.equals(managedConnectionFactoryClass);
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE:
- return CONNECTION_FACTORY_INTERFACE_EDEFAULT == null ? connectionFactoryInterface != null : !CONNECTION_FACTORY_INTERFACE_EDEFAULT.equals(connectionFactoryInterface);
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS:
- return CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT == null ? connectionFactoryImplClass != null : !CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT.equals(connectionFactoryImplClass);
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_INTERFACE:
- return CONNECTION_INTERFACE_EDEFAULT == null ? connectionInterface != null : !CONNECTION_INTERFACE_EDEFAULT.equals(connectionInterface);
- case JcaPackage.CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS:
- return CONNECTION_IMPL_CLASS_EDEFAULT == null ? connectionImplClass != null : !CONNECTION_IMPL_CLASS_EDEFAULT.equals(connectionImplClass);
- case JcaPackage.CONNECTION_DEFINITION__CONFIG_PROPERTIES:
- return configProperties != null && !configProperties.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(" (managedConnectionFactoryClass: ");
- result.append(managedConnectionFactoryClass);
- result.append(", connectionFactoryInterface: ");
- result.append(connectionFactoryInterface);
- result.append(", connectionFactoryImplClass: ");
- result.append(connectionFactoryImplClass);
- result.append(", connectionInterface: ");
- result.append(connectionInterface);
- result.append(", connectionImplClass: ");
- result.append(connectionImplClass);
- result.append(')');
- return result.toString();
- }
-
-} //ConnectionDefinitionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java
deleted file mode 100644
index d9f7dc588..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorImpl.java
+++ /dev/null
@@ -1,422 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.internal.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-
-
-/**
- * The connector element is the root element of the deployment descriptor for the resource adapter. This element includes general information - vendor name, version, specification version supported, icon - about the resource adapter module. It also includes information specific to the implementation of the resource adapter library as specified through the element resourceadapter.
-
- */
-public class ConnectorImpl extends CompatibilityDescriptionGroupImpl implements Connector {
-
- /**
- * The default value of the '{@link #getVendorName() <em>Vendor Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVendorName()
- * @generated
- * @ordered
- */
- protected static final String VENDOR_NAME_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String vendorName = VENDOR_NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getSpecVersion() <em>Spec Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSpecVersion()
- * @generated
- * @ordered
- */
- protected static final String SPEC_VERSION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String specVersion = SPEC_VERSION_EDEFAULT;
- /**
- * The default value of the '{@link #getEisType() <em>Eis Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getEisType()
- * @generated
- * @ordered
- */
- protected static final String EIS_TYPE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String eisType = EIS_TYPE_EDEFAULT;
- /**
- * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
- protected static final String VERSION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String version = VERSION_EDEFAULT;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected License license = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected ResourceAdapter resourceAdapter = null;
- protected ConnectorImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.CONNECTOR;
- }
-
- /**
- *
- */
- public void setDisplayName(String newDisplayName) {
- super.setDisplayName(newDisplayName);
- }
-
- /**
- * This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
- public int getVersionID() throws IllegalStateException {
- J2EEVersionResource res = (J2EEVersionResource) eResource();
- if (res == null) throw new IllegalStateException();
- return res.getModuleVersionID();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the name of resource adapter provider vendor.
- * Example: Wombat Corp.
- */
- public String getVendorName() {
- return vendorName;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setVendorName(String newVendorName) {
- String oldVendorName = vendorName;
- vendorName = newVendorName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__VENDOR_NAME, oldVendorName, vendorName));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the version of the connector architecture specification that is supported by this resource adapter. This information enables deployer to configure the resource adapter to support deployment and runtime requirements of the corresponding connector architecture specification.
-
- */
- public String getSpecVersion() {
- return specVersion;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSpecVersion(String newSpecVersion) {
- String oldSpecVersion = specVersion;
- specVersion = newSpecVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__SPEC_VERSION, oldSpecVersion, specVersion));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Contains information about the type of the EIS. For example, the type of an EIS can be product name of EIS independent of any version info.
- *
- * This helps in identifying EIS instances that can be used with
- * this resource adapter.
-
- */
- public String getEisType() {
- return eisType;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setEisType(String newEisType) {
- String oldEisType = eisType;
- eisType = newEisType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__EIS_TYPE, oldEisType, eisType));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies a string-based version of the resource adapter from the resource adapter provider.
- *
- * Example: 1.0
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setVersion(String newVersion) {
- String oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__VERSION, oldVersion, version));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies licensing requirements for the resource adapter module. This element specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of
- * connection restrictions).
- */
- public License getLicense() {
- return license;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetLicense(License newLicense, NotificationChain msgs) {
- License oldLicense = license;
- license = newLicense;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__LICENSE, oldLicense, newLicense);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLicense(License newLicense) {
- if (newLicense != license) {
- NotificationChain msgs = null;
- if (license != null)
- msgs = ((InternalEObject)license).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__LICENSE, null, msgs);
- if (newLicense != null)
- msgs = ((InternalEObject)newLicense).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__LICENSE, null, msgs);
- msgs = basicSetLicense(newLicense, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__LICENSE, newLicense, newLicense));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public ResourceAdapter getResourceAdapter() {
- return resourceAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetResourceAdapter(ResourceAdapter newResourceAdapter, NotificationChain msgs) {
- ResourceAdapter oldResourceAdapter = resourceAdapter;
- resourceAdapter = newResourceAdapter;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__RESOURCE_ADAPTER, oldResourceAdapter, newResourceAdapter);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setResourceAdapter(ResourceAdapter newResourceAdapter) {
- if (newResourceAdapter != resourceAdapter) {
- NotificationChain msgs = null;
- if (resourceAdapter != null)
- msgs = ((InternalEObject)resourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__RESOURCE_ADAPTER, null, msgs);
- if (newResourceAdapter != null)
- msgs = ((InternalEObject)newResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.CONNECTOR__RESOURCE_ADAPTER, null, msgs);
- msgs = basicSetResourceAdapter(newResourceAdapter, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.CONNECTOR__RESOURCE_ADAPTER, newResourceAdapter, newResourceAdapter));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.CONNECTOR__LICENSE:
- return basicSetLicense(null, msgs);
- case JcaPackage.CONNECTOR__RESOURCE_ADAPTER:
- return basicSetResourceAdapter(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 JcaPackage.CONNECTOR__VENDOR_NAME:
- return getVendorName();
- case JcaPackage.CONNECTOR__SPEC_VERSION:
- return getSpecVersion();
- case JcaPackage.CONNECTOR__EIS_TYPE:
- return getEisType();
- case JcaPackage.CONNECTOR__VERSION:
- return getVersion();
- case JcaPackage.CONNECTOR__LICENSE:
- return getLicense();
- case JcaPackage.CONNECTOR__RESOURCE_ADAPTER:
- return getResourceAdapter();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.CONNECTOR__VENDOR_NAME:
- setVendorName((String)newValue);
- return;
- case JcaPackage.CONNECTOR__SPEC_VERSION:
- setSpecVersion((String)newValue);
- return;
- case JcaPackage.CONNECTOR__EIS_TYPE:
- setEisType((String)newValue);
- return;
- case JcaPackage.CONNECTOR__VERSION:
- setVersion((String)newValue);
- return;
- case JcaPackage.CONNECTOR__LICENSE:
- setLicense((License)newValue);
- return;
- case JcaPackage.CONNECTOR__RESOURCE_ADAPTER:
- setResourceAdapter((ResourceAdapter)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.CONNECTOR__VENDOR_NAME:
- setVendorName(VENDOR_NAME_EDEFAULT);
- return;
- case JcaPackage.CONNECTOR__SPEC_VERSION:
- setSpecVersion(SPEC_VERSION_EDEFAULT);
- return;
- case JcaPackage.CONNECTOR__EIS_TYPE:
- setEisType(EIS_TYPE_EDEFAULT);
- return;
- case JcaPackage.CONNECTOR__VERSION:
- setVersion(VERSION_EDEFAULT);
- return;
- case JcaPackage.CONNECTOR__LICENSE:
- setLicense((License)null);
- return;
- case JcaPackage.CONNECTOR__RESOURCE_ADAPTER:
- setResourceAdapter((ResourceAdapter)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.CONNECTOR__VENDOR_NAME:
- return VENDOR_NAME_EDEFAULT == null ? vendorName != null : !VENDOR_NAME_EDEFAULT.equals(vendorName);
- case JcaPackage.CONNECTOR__SPEC_VERSION:
- return SPEC_VERSION_EDEFAULT == null ? specVersion != null : !SPEC_VERSION_EDEFAULT.equals(specVersion);
- case JcaPackage.CONNECTOR__EIS_TYPE:
- return EIS_TYPE_EDEFAULT == null ? eisType != null : !EIS_TYPE_EDEFAULT.equals(eisType);
- case JcaPackage.CONNECTOR__VERSION:
- return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
- case JcaPackage.CONNECTOR__LICENSE:
- return license != null;
- case JcaPackage.CONNECTOR__RESOURCE_ADAPTER:
- return resourceAdapter != null;
- }
- 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(" (vendorName: ");
- result.append(vendorName);
- result.append(", specVersion: ");
- result.append(specVersion);
- result.append(", eisType: ");
- result.append(eisType);
- result.append(", version: ");
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java
deleted file mode 100644
index 47d3d0e83..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.internal.impl;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEResourceFactoryRegistry;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.wst.common.internal.emf.resource.FileNameResourceFactoryRegistry;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;
-import org.eclipse.wst.common.internal.emf.resource.TranslatorResourceFactory;
-
-
-public class ConnectorResourceFactory extends TranslatorResourceFactory {
-
- /**
- * Method registerDtds.
- */
- public static void registerDtds() {
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_SYSTEMID_1_0, "connector_1_0.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0, "connector_1.0.dtd"); //$NON-NLS-1$
- J2EEXmlDtDEntityResolver.registerDtD(J2EEConstants.CONNECTOR_SCHEMA_LOC_1_5, "connector_1_5.xsd"); //$NON-NLS-1$
- }
-
-
-
- /**
- * Constructor for ConnectorResourceFactory.
- * @param aRendererFactory
- */
- public ConnectorResourceFactory() {
- super(RendererFactory.getDefaultRendererFactory());
- }
-
- /**
- * Constructor for ConnectorResourceFactory.
- * @param aRendererFactory
- */
- public ConnectorResourceFactory(RendererFactory aRendererFactory) {
- super(aRendererFactory);
- }
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceFactory#createResource(org.eclipse.emf.common.util.URI, com.ibm.etools.emf2xml.Renderer)
- */
- protected TranslatorResource createResource(URI uri, Renderer aRenderer) {
- return new ConnectorResourceImpl(uri, aRenderer);
- }
-
- /**
- * Register myself with the Resource.Factory.Registry
- */
- public static void registerWith(RendererFactory aRendererFactory) {
- J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(aRendererFactory));
- }
-
- /**
- * register using the default renderer factory.
- * @see #registerWith(RendererFactory)
- */
- public static void register() {
- registerWith(RendererFactory.getDefaultRendererFactory());
- }
-
- public static void register(FileNameResourceFactoryRegistry aRegistry) {
- aRegistry.registerLastFileSegment(J2EEConstants.RAR_SHORT_NAME, new ConnectorResourceFactory(RendererFactory.getDefaultRendererFactory()));
- }
-
- public static Resource.Factory getRegisteredFactory() {
- return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.RAR_DD_URI_OBJ);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java
deleted file mode 100644
index ef2ce6ea1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ConnectorResourceImpl.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.internal.impl;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.internal.impl.XMLResourceImpl;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.internal.model.translator.connector.ConnectorTranslator;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.ConnectorResource;
-import org.eclipse.wst.common.internal.emf.resource.Renderer;
-import org.eclipse.wst.common.internal.emf.resource.Translator;
-
-
-public class ConnectorResourceImpl extends XMLResourceImpl implements ConnectorResource{
-
- /**
- * Constructor for ApplicationClientResourceImpl.
- * @param uri
- * @param aRenderer
- */
- public ConnectorResourceImpl(URI uri, Renderer aRenderer) {
- super(uri, aRenderer);
- }
- /**
- * Constructor for ApplicationClientResourceImpl.
- * @param aRenderer
- */
- public ConnectorResourceImpl(Renderer aRenderer) {
- super(aRenderer);
- }
-
- /**
- * Return the first element in the EList.
- */
- public Connector getConnector() {
- return (Connector) getRootObject();
- }
-
-
- public int getType() {
- return RAR_TYPE;
- }
-
-
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_SystemID()
- */
- public String getJ2EE_1_2_SystemID() {
- return J2EEConstants.CONNECTOR_SYSTEMID_1_0;
- }
-
- public String getJ2EE_Alt_1_2_SystemID() {
- return J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID()
- */
- public String getJ2EE_1_3_SystemID() {
- return J2EEConstants.CONNECTOR_SYSTEMID_1_0;
- }
-
- public String getJ2EE_Alt_1_3_SystemID() {
- return J2EEConstants.CONNECTOR_ALT_SYSTEMID_1_0;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_2_PublicID()
- */
- public String getJ2EE_1_2_PublicID() {
- return J2EEConstants.CONNECTOR_PUBLICID_1_0;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_PublicID()
- */
- public String getJ2EE_1_3_PublicID() {
- return J2EEConstants.CONNECTOR_PUBLICID_1_0;
- }
-
-
- public String getDoctype() {
- switch (getJ2EEVersionID()) {
- case (J2EE_1_2_ID) :
- case (J2EE_1_3_ID) :
- return J2EEConstants.CONNECTOR_DOCTYPE;
- default :
- return null;
- }
- }
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.TranslatorResource#setDoctypeValues(java.lang.String, java.lang.String)
- * This is setting the module version on the resource.
- */
- public void setDoctypeValues(String publicId, String systemId) {
- int version = JCA_1_5_ID;
- if (systemId == null)
- version = JCA_1_5_ID;
- else if (systemId.equals(getJ2EE_1_3_SystemID()))
- version = JCA_1_0_ID;
- super.setDoctypeValues(publicId, systemId);
- super.setVersionID(version);
- }
- /*
- * This directly sets the module version id
- */
- public void setModuleVersionID(int id) {
- super.setVersionID(id);
- switch (id) {
- case (JCA_1_5_ID) :
- super.setDoctypeValues(null, null);
- break;
- case (JCA_1_0_ID) :
- super.setDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- }
- syncVersionOfRootObject();
- }
- /*
- * Based on the J2EE version, this will set the module version
- */
- public void setJ2EEVersionID(int id) {
- switch (id) {
- case (J2EE_1_4_ID) :
- primSetDoctypeValues(null, null);
- primSetVersionID(JCA_1_5_ID);
- break;
- case (J2EE_1_3_ID) :
- primSetDoctypeValues(getJ2EE_1_3_PublicID(), getJ2EE_1_3_SystemID());
- primSetVersionID(JCA_1_0_ID);
- break;
- case (J2EE_1_2_ID) :
- primSetDoctypeValues(getJ2EE_1_2_PublicID(), getJ2EE_1_2_SystemID());
- primSetVersionID(JCA_1_0_ID);
- }
- syncVersionOfRootObject();
- }
- /**
- * @see com.ibm.etools.emf2xml.TranslatorResource#getRootTranslator()
- */
- public Translator getRootTranslator() {
- return ConnectorTranslator.INSTANCE;
- }
- /* Return J2EE version based on module version
- */
- public int getJ2EEVersionID() {
- switch (getModuleVersionID()) {
- case J2EEVersionConstants.JCA_1_0_ID :
- return J2EEVersionConstants.J2EE_1_3_ID;
- case J2EEVersionConstants.JCA_1_5_ID :
- return J2EEVersionConstants.J2EE_1_4_ID;
- default :
- return J2EEVersionConstants.J2EE_1_4_ID;
- }
- }
- /* (non-Javadoc)
- * @see com.ibm.etools.emf2xml.impl.TranslatorResourceImpl#getDefaultVersionID()
- */
- protected int getDefaultVersionID() {
- return JCA_1_5_ID;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.internal.common.impl.XMLResourceImpl#syncVersionOfRootObject()
- */
- protected void syncVersionOfRootObject() {
- Connector conn = getConnector();
- if (conn == null)
- return;
-
- String version = conn.getSpecVersion();
- String newVersion = getModuleVersionString();
- if (!newVersion.equals(version))
- conn.setSpecVersion(newVersion);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java
deleted file mode 100644
index 750f09d95..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/InboundResourceAdapterImpl.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Inbound Resource Adapter</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.InboundResourceAdapterImpl#getMessageAdapter <em>Message Adapter</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class InboundResourceAdapterImpl extends J2EEEObjectImpl implements InboundResourceAdapter {
- /**
- * The cached value of the '{@link #getMessageAdapter() <em>Message Adapter</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageAdapter()
- * @generated
- * @ordered
- */
- protected MessageAdapter messageAdapter = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected InboundResourceAdapterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.INBOUND_RESOURCE_ADAPTER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageAdapter getMessageAdapter() {
- return messageAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetMessageAdapter(MessageAdapter newMessageAdapter, NotificationChain msgs) {
- MessageAdapter oldMessageAdapter = messageAdapter;
- messageAdapter = newMessageAdapter;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, oldMessageAdapter, newMessageAdapter);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMessageAdapter(MessageAdapter newMessageAdapter) {
- if (newMessageAdapter != messageAdapter) {
- NotificationChain msgs = null;
- if (messageAdapter != null)
- msgs = ((InternalEObject)messageAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, null, msgs);
- if (newMessageAdapter != null)
- msgs = ((InternalEObject)newMessageAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, null, msgs);
- msgs = basicSetMessageAdapter(newMessageAdapter, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER, newMessageAdapter, newMessageAdapter));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER:
- return basicSetMessageAdapter(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 JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER:
- return getMessageAdapter();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER:
- setMessageAdapter((MessageAdapter)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER:
- setMessageAdapter((MessageAdapter)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER:
- return messageAdapter != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //InboundResourceAdapterImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java
deleted file mode 100644
index 6cdb28d89..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaFactoryImpl.java
+++ /dev/null
@@ -1,305 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaFactory;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-import org.eclipse.jst.j2ee.jca.TransactionSupportKind;
-
-/**
- * @generated
- */
-public class JcaFactoryImpl extends EFactoryImpl implements JcaFactory {
-
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static JcaFactory init() {
- try {
- JcaFactory theJcaFactory = (JcaFactory)EPackage.Registry.INSTANCE.getEFactory("jca.xmi");
- if (theJcaFactory != null) {
- return theJcaFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new JcaFactoryImpl();
- }
-
- public JcaFactoryImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case JcaPackage.CONNECTOR: return createConnector();
- case JcaPackage.RESOURCE_ADAPTER: return createResourceAdapter();
- case JcaPackage.AUTHENTICATION_MECHANISM: return createAuthenticationMechanism();
- case JcaPackage.CONFIG_PROPERTY: return createConfigProperty();
- case JcaPackage.SECURITY_PERMISSION: return createSecurityPermission();
- case JcaPackage.LICENSE: return createLicense();
- case JcaPackage.INBOUND_RESOURCE_ADAPTER: return createInboundResourceAdapter();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER: return createOutboundResourceAdapter();
- case JcaPackage.MESSAGE_ADAPTER: return createMessageAdapter();
- case JcaPackage.CONNECTION_DEFINITION: return createConnectionDefinition();
- case JcaPackage.ADMIN_OBJECT: return createAdminObject();
- case JcaPackage.MESSAGE_LISTENER: return createMessageListener();
- case JcaPackage.ACTIVATION_SPEC: return createActivationSpec();
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE: return createRequiredConfigPropertyType();
- 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 JcaPackage.AUTHENTICATION_MECHANISM_TYPE:
- return createAuthenticationMechanismTypeFromString(eDataType, initialValue);
- case JcaPackage.TRANSACTION_SUPPORT_KIND:
- return createTransactionSupportKindFromString(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 JcaPackage.AUTHENTICATION_MECHANISM_TYPE:
- return convertAuthenticationMechanismTypeToString(eDataType, instanceValue);
- case JcaPackage.TRANSACTION_SUPPORT_KIND:
- return convertTransactionSupportKindToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Connector createConnector() {
- ConnectorImpl connector = new ConnectorImpl();
- return connector;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public License createLicense() {
- LicenseImpl license = new LicenseImpl();
- return license;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public InboundResourceAdapter createInboundResourceAdapter() {
- InboundResourceAdapterImpl inboundResourceAdapter = new InboundResourceAdapterImpl();
- return inboundResourceAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OutboundResourceAdapter createOutboundResourceAdapter() {
- OutboundResourceAdapterImpl outboundResourceAdapter = new OutboundResourceAdapterImpl();
- return outboundResourceAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageAdapter createMessageAdapter() {
- MessageAdapterImpl messageAdapter = new MessageAdapterImpl();
- return messageAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ConnectionDefinition createConnectionDefinition() {
- ConnectionDefinitionImpl connectionDefinition = new ConnectionDefinitionImpl();
- return connectionDefinition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AdminObject createAdminObject() {
- AdminObjectImpl adminObject = new AdminObjectImpl();
- return adminObject;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MessageListener createMessageListener() {
- MessageListenerImpl messageListener = new MessageListenerImpl();
- return messageListener;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ActivationSpec createActivationSpec() {
- ActivationSpecImpl activationSpec = new ActivationSpecImpl();
- return activationSpec;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public RequiredConfigPropertyType createRequiredConfigPropertyType() {
- RequiredConfigPropertyTypeImpl requiredConfigPropertyType = new RequiredConfigPropertyTypeImpl();
- return requiredConfigPropertyType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AuthenticationMechanismType createAuthenticationMechanismTypeFromString(EDataType eDataType, String initialValue) {
- AuthenticationMechanismType result = AuthenticationMechanismType.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 convertAuthenticationMechanismTypeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TransactionSupportKind createTransactionSupportKindFromString(EDataType eDataType, String initialValue) {
- TransactionSupportKind result = TransactionSupportKind.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 convertTransactionSupportKindToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ResourceAdapter createResourceAdapter() {
- ResourceAdapterImpl resourceAdapter = new ResourceAdapterImpl();
- return resourceAdapter;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public SecurityPermission createSecurityPermission() {
- SecurityPermissionImpl securityPermission = new SecurityPermissionImpl();
- return securityPermission;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public AuthenticationMechanism createAuthenticationMechanism() {
- AuthenticationMechanismImpl authenticationMechanism = new AuthenticationMechanismImpl();
- return authenticationMechanism;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public ConfigProperty createConfigProperty() {
- ConfigPropertyImpl configProperty = new ConfigPropertyImpl();
- return configProperty;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public JcaPackage getJcaPackage() {
- return (JcaPackage)getEPackage();
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public static JcaPackage getPackage() {
- return JcaPackage.eINSTANCE;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java
deleted file mode 100644
index 780164b5c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/JcaPackageImpl.java
+++ /dev/null
@@ -1,1104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.CommonPackage;
-import org.eclipse.jst.j2ee.common.internal.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.internal.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanismType;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaFactory;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-import org.eclipse.jst.j2ee.jca.TransactionSupportKind;
-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 JcaPackageImpl extends EPackageImpl implements JcaPackage, EPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass connectorEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass resourceAdapterEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass authenticationMechanismEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass configPropertyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass securityPermissionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass licenseEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass inboundResourceAdapterEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass outboundResourceAdapterEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass messageAdapterEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass connectionDefinitionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass adminObjectEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass messageListenerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass activationSpecEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass requiredConfigPropertyTypeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum authenticationMechanismTypeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum transactionSupportKindEEnum = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- private JcaPackageImpl() {
- super(eNS_URI, JcaFactory.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 JcaPackage init() {
- if (isInited) return (JcaPackage)EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI);
-
- // Obtain or create and register package
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof JcaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JcaPackageImpl());
-
- 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);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof CommonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.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);
- 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
- theJcaPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theApplicationPackage_1.createPackageContents();
- theCommonPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
-
- // Initialize created meta-data
- theJcaPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theApplicationPackage_1.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theJcaPackage.freeze();
-
- return theJcaPackage;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getConnector() {
- return connectorEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConnector_VendorName() {
- return (EAttribute)connectorEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConnector_SpecVersion() {
- return (EAttribute)connectorEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConnector_EisType() {
- return (EAttribute)connectorEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConnector_Version() {
- return (EAttribute)connectorEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getConnector_License() {
- return (EReference)connectorEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getConnector_ResourceAdapter() {
- return (EReference)connectorEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getLicense() {
- return licenseEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getLicense_Description() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getLicense_Required() {
- return (EAttribute)licenseEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getLicense_Descriptions() {
- return (EReference)licenseEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getInboundResourceAdapter() {
- return inboundResourceAdapterEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getInboundResourceAdapter_MessageAdapter() {
- return (EReference)inboundResourceAdapterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getOutboundResourceAdapter() {
- return outboundResourceAdapterEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOutboundResourceAdapter_ReauthenticationSupport() {
- return (EAttribute)outboundResourceAdapterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getOutboundResourceAdapter_TransactionSupport() {
- return (EAttribute)outboundResourceAdapterEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOutboundResourceAdapter_ConnectionDefinitions() {
- return (EReference)outboundResourceAdapterEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getOutboundResourceAdapter_AuthenticationMechanisms() {
- return (EReference)outboundResourceAdapterEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMessageAdapter() {
- return messageAdapterEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getMessageAdapter_MessageListeners() {
- return (EReference)messageAdapterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getConnectionDefinition() {
- return connectionDefinitionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getConnectionDefinition_ManagedConnectionFactoryClass() {
- return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getConnectionDefinition_ConnectionFactoryInterface() {
- return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getConnectionDefinition_ConnectionFactoryImplClass() {
- return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getConnectionDefinition_ConnectionInterface() {
- return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getConnectionDefinition_ConnectionImplClass() {
- return (EAttribute)connectionDefinitionEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getConnectionDefinition_ConfigProperties() {
- return (EReference)connectionDefinitionEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAdminObject() {
- return adminObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAdminObject_AdminObjectInterface() {
- return (EAttribute)adminObjectEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAdminObject_AdminObjectClass() {
- return (EAttribute)adminObjectEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAdminObject_ConfigProperties() {
- return (EReference)adminObjectEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMessageListener() {
- return messageListenerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMessageListener_MessageListenerType() {
- return (EAttribute)messageListenerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getMessageListener_ActivationSpec() {
- return (EReference)messageListenerEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getActivationSpec() {
- return activationSpecEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getActivationSpec_ActivationSpecClass() {
- return (EAttribute)activationSpecEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getActivationSpec_RequiredConfigProperties() {
- return (EReference)activationSpecEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getRequiredConfigPropertyType() {
- return requiredConfigPropertyTypeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getRequiredConfigPropertyType_Name() {
- return (EAttribute)requiredConfigPropertyTypeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRequiredConfigPropertyType_Descriptions() {
- return (EReference)requiredConfigPropertyTypeEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getResourceAdapter() {
- return resourceAdapterEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ManagedConnectionFactoryClass() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ConnectionFactoryInterface() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ConnectionFactoryImplClass() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ConnectionInterface() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ConnectionImplClass() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_TransactionSupport() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getResourceAdapter_ReauthenticationSupport() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getResourceAdapter_ResourceAdapterClass() {
- return (EAttribute)resourceAdapterEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getResourceAdapter_SecurityPermissions() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getResourceAdapter_AuthenticationMechanisms() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(9);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EReference getResourceAdapter_ConfigProperties() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(10);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getResourceAdapter_OutboundResourceAdapter() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(11);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getResourceAdapter_InboundResourceAdapter() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(12);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getResourceAdapter_AdminObjects() {
- return (EReference)resourceAdapterEClass.getEStructuralFeatures().get(13);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getSecurityPermission() {
- return securityPermissionEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityPermission_Description() {
- return (EAttribute)securityPermissionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getSecurityPermission_Specification() {
- return (EAttribute)securityPermissionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSecurityPermission_Descriptions() {
- return (EReference)securityPermissionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getAuthenticationMechanism() {
- return authenticationMechanismEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthenticationMechanism_Description() {
- return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAuthenticationMechanism_AuthenticationMechanism() {
- return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthenticationMechanism_AuthenticationMechanismType() {
- return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthenticationMechanism_CredentialInterface() {
- return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EClass getConfigProperty() {
- return configPropertyEClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConfigProperty_Description() {
- return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConfigProperty_Name() {
- return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConfigProperty_Type() {
- return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getConfigProperty_Value() {
- return (EAttribute)configPropertyEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getConfigProperty_Descriptions() {
- return (EReference)configPropertyEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getTransactionSupportKind() {
- return transactionSupportKindEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EEnum getAuthenticationMechanismType() {
- return authenticationMechanismTypeEEnum;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public JcaFactory getJcaFactory() {
- return (JcaFactory)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
- connectorEClass = createEClass(CONNECTOR);
- createEAttribute(connectorEClass, CONNECTOR__VENDOR_NAME);
- createEAttribute(connectorEClass, CONNECTOR__SPEC_VERSION);
- createEAttribute(connectorEClass, CONNECTOR__EIS_TYPE);
- createEAttribute(connectorEClass, CONNECTOR__VERSION);
- createEReference(connectorEClass, CONNECTOR__LICENSE);
- createEReference(connectorEClass, CONNECTOR__RESOURCE_ADAPTER);
-
- resourceAdapterEClass = createEClass(RESOURCE_ADAPTER);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_INTERFACE);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__TRANSACTION_SUPPORT);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT);
- createEAttribute(resourceAdapterEClass, RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__SECURITY_PERMISSIONS);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__CONFIG_PROPERTIES);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER);
- createEReference(resourceAdapterEClass, RESOURCE_ADAPTER__ADMIN_OBJECTS);
-
- authenticationMechanismEClass = createEClass(AUTHENTICATION_MECHANISM);
- createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__DESCRIPTION);
- createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM);
- createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__AUTHENTICATION_MECHANISM_TYPE);
- createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__CREDENTIAL_INTERFACE);
- createEAttribute(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__CUSTOM_AUTH_MECH_TYPE);
- createEReference(authenticationMechanismEClass, AUTHENTICATION_MECHANISM__DESCRIPTIONS);
-
- configPropertyEClass = createEClass(CONFIG_PROPERTY);
- createEAttribute(configPropertyEClass, CONFIG_PROPERTY__DESCRIPTION);
- createEAttribute(configPropertyEClass, CONFIG_PROPERTY__NAME);
- createEAttribute(configPropertyEClass, CONFIG_PROPERTY__TYPE);
- createEAttribute(configPropertyEClass, CONFIG_PROPERTY__VALUE);
- createEReference(configPropertyEClass, CONFIG_PROPERTY__DESCRIPTIONS);
-
- securityPermissionEClass = createEClass(SECURITY_PERMISSION);
- createEAttribute(securityPermissionEClass, SECURITY_PERMISSION__DESCRIPTION);
- createEAttribute(securityPermissionEClass, SECURITY_PERMISSION__SPECIFICATION);
- createEReference(securityPermissionEClass, SECURITY_PERMISSION__DESCRIPTIONS);
-
- licenseEClass = createEClass(LICENSE);
- createEAttribute(licenseEClass, LICENSE__DESCRIPTION);
- createEAttribute(licenseEClass, LICENSE__REQUIRED);
- createEReference(licenseEClass, LICENSE__DESCRIPTIONS);
-
- inboundResourceAdapterEClass = createEClass(INBOUND_RESOURCE_ADAPTER);
- createEReference(inboundResourceAdapterEClass, INBOUND_RESOURCE_ADAPTER__MESSAGE_ADAPTER);
-
- outboundResourceAdapterEClass = createEClass(OUTBOUND_RESOURCE_ADAPTER);
- createEAttribute(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT);
- createEAttribute(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT);
- createEReference(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS);
- createEReference(outboundResourceAdapterEClass, OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS);
-
- messageAdapterEClass = createEClass(MESSAGE_ADAPTER);
- createEReference(messageAdapterEClass, MESSAGE_ADAPTER__MESSAGE_LISTENERS);
-
- connectionDefinitionEClass = createEClass(CONNECTION_DEFINITION);
- createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__MANAGED_CONNECTION_FACTORY_CLASS);
- createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_FACTORY_INTERFACE);
- createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_FACTORY_IMPL_CLASS);
- createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_INTERFACE);
- createEAttribute(connectionDefinitionEClass, CONNECTION_DEFINITION__CONNECTION_IMPL_CLASS);
- createEReference(connectionDefinitionEClass, CONNECTION_DEFINITION__CONFIG_PROPERTIES);
-
- adminObjectEClass = createEClass(ADMIN_OBJECT);
- createEAttribute(adminObjectEClass, ADMIN_OBJECT__ADMIN_OBJECT_INTERFACE);
- createEAttribute(adminObjectEClass, ADMIN_OBJECT__ADMIN_OBJECT_CLASS);
- createEReference(adminObjectEClass, ADMIN_OBJECT__CONFIG_PROPERTIES);
-
- messageListenerEClass = createEClass(MESSAGE_LISTENER);
- createEAttribute(messageListenerEClass, MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE);
- createEReference(messageListenerEClass, MESSAGE_LISTENER__ACTIVATION_SPEC);
-
- activationSpecEClass = createEClass(ACTIVATION_SPEC);
- createEAttribute(activationSpecEClass, ACTIVATION_SPEC__ACTIVATION_SPEC_CLASS);
- createEReference(activationSpecEClass, ACTIVATION_SPEC__REQUIRED_CONFIG_PROPERTIES);
-
- requiredConfigPropertyTypeEClass = createEClass(REQUIRED_CONFIG_PROPERTY_TYPE);
- createEAttribute(requiredConfigPropertyTypeEClass, REQUIRED_CONFIG_PROPERTY_TYPE__NAME);
- createEReference(requiredConfigPropertyTypeEClass, REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS);
-
- // Create enums
- authenticationMechanismTypeEEnum = createEEnum(AUTHENTICATION_MECHANISM_TYPE);
- transactionSupportKindEEnum = createEEnum(TRANSACTION_SUPPORT_KIND);
- }
-
- /**
- * <!-- 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
- CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
-
- // Add supertypes to classes
- connectorEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup());
- resourceAdapterEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- authenticationMechanismEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- configPropertyEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- securityPermissionEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- licenseEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- inboundResourceAdapterEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- outboundResourceAdapterEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- messageAdapterEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- connectionDefinitionEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- adminObjectEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- messageListenerEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- activationSpecEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
- requiredConfigPropertyTypeEClass.getESuperTypes().add(theCommonPackage.getJ2EEEObject());
-
- // Initialize classes and features; add operations and parameters
- initEClass(connectorEClass, Connector.class, "Connector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getConnector_VendorName(), ecorePackage.getEString(), "vendorName", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnector_SpecVersion(), ecorePackage.getEString(), "specVersion", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnector_EisType(), ecorePackage.getEString(), "eisType", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnector_Version(), ecorePackage.getEString(), "version", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getConnector_License(), this.getLicense(), null, "license", null, 0, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getConnector_ResourceAdapter(), this.getResourceAdapter(), null, "resourceAdapter", null, 1, 1, Connector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(resourceAdapterEClass, ResourceAdapter.class, "ResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getResourceAdapter_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getResourceAdapter_ResourceAdapterClass(), ecorePackage.getEString(), "resourceAdapterClass", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_SecurityPermissions(), this.getSecurityPermission(), null, "securityPermissions", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_OutboundResourceAdapter(), this.getOutboundResourceAdapter(), null, "outboundResourceAdapter", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_InboundResourceAdapter(), this.getInboundResourceAdapter(), null, "inboundResourceAdapter", null, 0, 1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getResourceAdapter_AdminObjects(), this.getAdminObject(), null, "adminObjects", null, 0, -1, ResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(authenticationMechanismEClass, AuthenticationMechanism.class, "AuthenticationMechanism", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAuthenticationMechanism_Description(), ecorePackage.getEString(), "description", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAuthenticationMechanism_AuthenticationMechanism(), ecorePackage.getEString(), "authenticationMechanism", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAuthenticationMechanism_AuthenticationMechanismType(), this.getAuthenticationMechanismType(), "authenticationMechanismType", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAuthenticationMechanism_CredentialInterface(), ecorePackage.getEString(), "credentialInterface", null, 0, 1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAuthenticationMechanism_CustomAuthMechType(), ecorePackage.getEString(), "customAuthMechType", null, 0, 1, AuthenticationMechanism.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAuthenticationMechanism_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, AuthenticationMechanism.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(configPropertyEClass, ConfigProperty.class, "ConfigProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getConfigProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConfigProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConfigProperty_Type(), ecorePackage.getEString(), "type", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConfigProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getConfigProperty_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, ConfigProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(securityPermissionEClass, SecurityPermission.class, "SecurityPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSecurityPermission_Description(), ecorePackage.getEString(), "description", null, 0, 1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSecurityPermission_Specification(), ecorePackage.getEString(), "specification", null, 0, 1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSecurityPermission_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, SecurityPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(licenseEClass, License.class, "License", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLicense_Description(), ecorePackage.getEString(), "description", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getLicense_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getLicense_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, License.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(inboundResourceAdapterEClass, InboundResourceAdapter.class, "InboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getInboundResourceAdapter_MessageAdapter(), this.getMessageAdapter(), null, "messageAdapter", null, 0, 1, InboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(outboundResourceAdapterEClass, OutboundResourceAdapter.class, "OutboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getOutboundResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getOutboundResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOutboundResourceAdapter_ConnectionDefinitions(), this.getConnectionDefinition(), null, "connectionDefinitions", null, 0, -1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getOutboundResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, OutboundResourceAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(messageAdapterEClass, MessageAdapter.class, "MessageAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMessageAdapter_MessageListeners(), this.getMessageListener(), null, "messageListeners", null, 1, -1, MessageAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(connectionDefinitionEClass, ConnectionDefinition.class, "ConnectionDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getConnectionDefinition_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnectionDefinition_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnectionDefinition_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnectionDefinition_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getConnectionDefinition_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getConnectionDefinition_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, ConnectionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(adminObjectEClass, AdminObject.class, "AdminObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAdminObject_AdminObjectInterface(), ecorePackage.getEString(), "adminObjectInterface", null, 0, 1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAdminObject_AdminObjectClass(), ecorePackage.getEString(), "adminObjectClass", null, 0, 1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getAdminObject_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, AdminObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(messageListenerEClass, MessageListener.class, "MessageListener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMessageListener_MessageListenerType(), ecorePackage.getEString(), "messageListenerType", null, 0, 1, MessageListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMessageListener_ActivationSpec(), this.getActivationSpec(), null, "activationSpec", null, 1, 1, MessageListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(activationSpecEClass, ActivationSpec.class, "ActivationSpec", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getActivationSpec_ActivationSpecClass(), ecorePackage.getEString(), "activationSpecClass", null, 0, 1, ActivationSpec.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getActivationSpec_RequiredConfigProperties(), this.getRequiredConfigPropertyType(), null, "requiredConfigProperties", null, 0, -1, ActivationSpec.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(requiredConfigPropertyTypeEClass, RequiredConfigPropertyType.class, "RequiredConfigPropertyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRequiredConfigPropertyType_Name(), ecorePackage.getEString(), "name", null, 0, 1, RequiredConfigPropertyType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRequiredConfigPropertyType_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, RequiredConfigPropertyType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(authenticationMechanismTypeEEnum, AuthenticationMechanismType.class, "AuthenticationMechanismType");
- addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.BASIC_PASSWORD_LITERAL);
- addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.KERBV5_LITERAL);
-
- initEEnum(transactionSupportKindEEnum, TransactionSupportKind.class, "TransactionSupportKind");
- addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.NO_TRANSACTION_LITERAL);
- addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.LOCAL_TRANSACTION_LITERAL);
- addEEnumLiteral(transactionSupportKindEEnum, TransactionSupportKind.XA_TRANSACTION_LITERAL);
-
- // Create resource
- createResource(eNS_URI);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public EAttribute getAuthenticationMechanism_CustomAuthMechType() {
- return (EAttribute)authenticationMechanismEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getAuthenticationMechanism_Descriptions() {
- return (EReference)authenticationMechanismEClass.getEStructuralFeatures().get(5);
- }
-
-} //JcaPackageImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java
deleted file mode 100644
index 50d433a8a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/LicenseImpl.java
+++ /dev/null
@@ -1,271 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.Description;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-
-
-/**
- * Specifies licensing requirements for the resource adapter module. Specifies whether a license is required to deploy and use this resource adapter, and an optional description of the licensing terms (examples: duration of license, number of connection restrictions).
- * @generated
- */
-public class LicenseImpl extends J2EEEObjectImpl implements License {
-
- /**
- * 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 #isRequired() <em>Required</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isRequired()
- * @generated
- * @ordered
- */
- protected static final boolean REQUIRED_EDEFAULT = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected boolean required = REQUIRED_EDEFAULT;
- /**
- * This is true if the Required attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean requiredESet = 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;
-
- protected LicenseImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.LICENSE;
- }
-
- /**
- * @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, JcaPackage.LICENSE__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public boolean isRequired() {
- return required;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setRequired(boolean newRequired) {
- boolean oldRequired = required;
- required = newRequired;
- boolean oldRequiredESet = requiredESet;
- requiredESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.LICENSE__REQUIRED, oldRequired, required, !oldRequiredESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetRequired() {
- boolean oldRequired = required;
- boolean oldRequiredESet = requiredESet;
- required = REQUIRED_EDEFAULT;
- requiredESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.LICENSE__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetRequired() {
- return requiredESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.LICENSE__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.LICENSE__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 JcaPackage.LICENSE__DESCRIPTION:
- return getDescription();
- case JcaPackage.LICENSE__REQUIRED:
- return isRequired() ? Boolean.TRUE : Boolean.FALSE;
- case JcaPackage.LICENSE__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 JcaPackage.LICENSE__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case JcaPackage.LICENSE__REQUIRED:
- setRequired(((Boolean)newValue).booleanValue());
- return;
- case JcaPackage.LICENSE__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 JcaPackage.LICENSE__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case JcaPackage.LICENSE__REQUIRED:
- unsetRequired();
- return;
- case JcaPackage.LICENSE__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.LICENSE__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case JcaPackage.LICENSE__REQUIRED:
- return isSetRequired();
- case JcaPackage.LICENSE__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(", required: ");
- if (requiredESet) result.append(required); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java
deleted file mode 100644
index 312ba2b80..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageAdapterImpl.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Message Adapter</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageAdapterImpl#getMessageListeners <em>Message Listeners</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MessageAdapterImpl extends J2EEEObjectImpl implements MessageAdapter {
- /**
- * The cached value of the '{@link #getMessageListeners() <em>Message Listeners</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageListeners()
- * @generated
- * @ordered
- */
- protected EList messageListeners = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MessageAdapterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.MESSAGE_ADAPTER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getMessageListeners() {
- if (messageListeners == null) {
- messageListeners = new EObjectContainmentEList(MessageListener.class, this, JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS);
- }
- return messageListeners;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS:
- return ((InternalEList)getMessageListeners()).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 JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS:
- return getMessageListeners();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS:
- getMessageListeners().clear();
- getMessageListeners().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS:
- getMessageListeners().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.MESSAGE_ADAPTER__MESSAGE_LISTENERS:
- return messageListeners != null && !messageListeners.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //MessageAdapterImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java
deleted file mode 100644
index d96bd6287..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/MessageListenerImpl.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Message Listener</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl#getMessageListenerType <em>Message Listener Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.MessageListenerImpl#getActivationSpec <em>Activation Spec</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MessageListenerImpl extends J2EEEObjectImpl implements MessageListener {
- /**
- * The default value of the '{@link #getMessageListenerType() <em>Message Listener Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageListenerType()
- * @generated
- * @ordered
- */
- protected static final String MESSAGE_LISTENER_TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMessageListenerType() <em>Message Listener Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMessageListenerType()
- * @generated
- * @ordered
- */
- protected String messageListenerType = MESSAGE_LISTENER_TYPE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getActivationSpec() <em>Activation Spec</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getActivationSpec()
- * @generated
- * @ordered
- */
- protected ActivationSpec activationSpec = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MessageListenerImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.MESSAGE_LISTENER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMessageListenerType() {
- return messageListenerType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMessageListenerType(String newMessageListenerType) {
- String oldMessageListenerType = messageListenerType;
- messageListenerType = newMessageListenerType;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE, oldMessageListenerType, messageListenerType));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ActivationSpec getActivationSpec() {
- return activationSpec;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetActivationSpec(ActivationSpec newActivationSpec, NotificationChain msgs) {
- ActivationSpec oldActivationSpec = activationSpec;
- activationSpec = newActivationSpec;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, oldActivationSpec, newActivationSpec);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setActivationSpec(ActivationSpec newActivationSpec) {
- if (newActivationSpec != activationSpec) {
- NotificationChain msgs = null;
- if (activationSpec != null)
- msgs = ((InternalEObject)activationSpec).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, null, msgs);
- if (newActivationSpec != null)
- msgs = ((InternalEObject)newActivationSpec).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, null, msgs);
- msgs = basicSetActivationSpec(newActivationSpec, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC, newActivationSpec, newActivationSpec));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC:
- return basicSetActivationSpec(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 JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE:
- return getMessageListenerType();
- case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC:
- return getActivationSpec();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE:
- setMessageListenerType((String)newValue);
- return;
- case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC:
- setActivationSpec((ActivationSpec)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE:
- setMessageListenerType(MESSAGE_LISTENER_TYPE_EDEFAULT);
- return;
- case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC:
- setActivationSpec((ActivationSpec)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.MESSAGE_LISTENER__MESSAGE_LISTENER_TYPE:
- return MESSAGE_LISTENER_TYPE_EDEFAULT == null ? messageListenerType != null : !MESSAGE_LISTENER_TYPE_EDEFAULT.equals(messageListenerType);
- case JcaPackage.MESSAGE_LISTENER__ACTIVATION_SPEC:
- return activationSpec != null;
- }
- 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(" (messageListenerType: ");
- result.append(messageListenerType);
- result.append(')');
- return result.toString();
- }
-
-} //MessageListenerImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java
deleted file mode 100644
index 31f942b97..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/OutboundResourceAdapterImpl.java
+++ /dev/null
@@ -1,378 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.TransactionSupportKind;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Outbound Resource Adapter</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#isReauthenticationSupport <em>Reauthentication Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getTransactionSupport <em>Transaction Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getConnectionDefinitions <em>Connection Definitions</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.OutboundResourceAdapterImpl#getAuthenticationMechanisms <em>Authentication Mechanisms</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class OutboundResourceAdapterImpl extends J2EEEObjectImpl implements OutboundResourceAdapter {
- /**
- * The default value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isReauthenticationSupport()
- * @generated
- * @ordered
- */
- protected static final boolean REAUTHENTICATION_SUPPORT_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isReauthenticationSupport()
- * @generated
- * @ordered
- */
- protected boolean reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT;
-
- /**
- * This is true if the Reauthentication Support attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean reauthenticationSupportESet = false;
-
- /**
- * The default value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransactionSupport()
- * @generated
- * @ordered
- */
- protected static final TransactionSupportKind TRANSACTION_SUPPORT_EDEFAULT = TransactionSupportKind.NO_TRANSACTION_LITERAL;
-
- /**
- * The cached value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransactionSupport()
- * @generated
- * @ordered
- */
- protected TransactionSupportKind transactionSupport = TRANSACTION_SUPPORT_EDEFAULT;
-
- /**
- * This is true if the Transaction Support attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean transactionSupportESet = false;
-
- /**
- * The cached value of the '{@link #getConnectionDefinitions() <em>Connection Definitions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionDefinitions()
- * @generated
- * @ordered
- */
- protected EList connectionDefinitions = null;
-
- /**
- * The cached value of the '{@link #getAuthenticationMechanisms() <em>Authentication Mechanisms</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthenticationMechanisms()
- * @generated
- * @ordered
- */
- protected EList authenticationMechanisms = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected OutboundResourceAdapterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.OUTBOUND_RESOURCE_ADAPTER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isReauthenticationSupport() {
- return reauthenticationSupport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setReauthenticationSupport(boolean newReauthenticationSupport) {
- boolean oldReauthenticationSupport = reauthenticationSupport;
- reauthenticationSupport = newReauthenticationSupport;
- boolean oldReauthenticationSupportESet = reauthenticationSupportESet;
- reauthenticationSupportESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, reauthenticationSupport, !oldReauthenticationSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetReauthenticationSupport() {
- boolean oldReauthenticationSupport = reauthenticationSupport;
- boolean oldReauthenticationSupportESet = reauthenticationSupportESet;
- reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT;
- reauthenticationSupportESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, REAUTHENTICATION_SUPPORT_EDEFAULT, oldReauthenticationSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetReauthenticationSupport() {
- return reauthenticationSupportESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TransactionSupportKind getTransactionSupport() {
- return transactionSupport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTransactionSupport(TransactionSupportKind newTransactionSupport) {
- TransactionSupportKind oldTransactionSupport = transactionSupport;
- transactionSupport = newTransactionSupport == null ? TRANSACTION_SUPPORT_EDEFAULT : newTransactionSupport;
- boolean oldTransactionSupportESet = transactionSupportESet;
- transactionSupportESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, transactionSupport, !oldTransactionSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetTransactionSupport() {
- TransactionSupportKind oldTransactionSupport = transactionSupport;
- boolean oldTransactionSupportESet = transactionSupportESet;
- transactionSupport = TRANSACTION_SUPPORT_EDEFAULT;
- transactionSupportESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, TRANSACTION_SUPPORT_EDEFAULT, oldTransactionSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetTransactionSupport() {
- return transactionSupportESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getConnectionDefinitions() {
- if (connectionDefinitions == null) {
- connectionDefinitions = new EObjectContainmentEList(ConnectionDefinition.class, this, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS);
- }
- return connectionDefinitions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getAuthenticationMechanisms() {
- if (authenticationMechanisms == null) {
- authenticationMechanisms = new EObjectContainmentEList(AuthenticationMechanism.class, this, JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS);
- }
- return authenticationMechanisms;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS:
- return ((InternalEList)getConnectionDefinitions()).basicRemove(otherEnd, msgs);
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return ((InternalEList)getAuthenticationMechanisms()).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 JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- return isReauthenticationSupport() ? Boolean.TRUE : Boolean.FALSE;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- return getTransactionSupport();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS:
- return getConnectionDefinitions();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return getAuthenticationMechanisms();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- setReauthenticationSupport(((Boolean)newValue).booleanValue());
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- setTransactionSupport((TransactionSupportKind)newValue);
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS:
- getConnectionDefinitions().clear();
- getConnectionDefinitions().addAll((Collection)newValue);
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- getAuthenticationMechanisms().clear();
- getAuthenticationMechanisms().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- unsetReauthenticationSupport();
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- unsetTransactionSupport();
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS:
- getConnectionDefinitions().clear();
- return;
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- getAuthenticationMechanisms().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- return isSetReauthenticationSupport();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- return isSetTransactionSupport();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__CONNECTION_DEFINITIONS:
- return connectionDefinitions != null && !connectionDefinitions.isEmpty();
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return authenticationMechanisms != null && !authenticationMechanisms.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(" (reauthenticationSupport: ");
- if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>");
- result.append(", transactionSupport: ");
- if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //OutboundResourceAdapterImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java
deleted file mode 100644
index ce7dc70e0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/RequiredConfigPropertyTypeImpl.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.Description;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Required Config Property Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.jca.internal.impl.RequiredConfigPropertyTypeImpl#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RequiredConfigPropertyTypeImpl extends J2EEEObjectImpl implements RequiredConfigPropertyType {
- /**
- * 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 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 RequiredConfigPropertyTypeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.REQUIRED_CONFIG_PROPERTY_TYPE;
- }
-
- /**
- * <!-- 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, JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__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 JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME:
- return getName();
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__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 JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME:
- setName((String)newValue);
- return;
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__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 JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE__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(')');
- return result.toString();
- }
-
-} //RequiredConfigPropertyTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java
deleted file mode 100644
index 309045a43..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/ResourceAdapterImpl.java
+++ /dev/null
@@ -1,812 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-import org.eclipse.jst.j2ee.jca.TransactionSupportKind;
-
-
-/**
- * Specifies information about the resource adapter. The information includes fully-qualified names of class//interfaces required as part of the connector architecture specified contracts, level of transaction support provided, configurable properties for ManagedConnectionFactory instances, one or more authentication mechanisms supported and additional
- * required security permissions.
- *
- * If there is no authentication-mechanism specified as part of
- * resource adapter element then the resource adapter does not
- * support any standard security authentication mechanisms as part
- * of security contract. The application server ignores the security
- * part of the system contracts in this case.
- * @generated
- */
-public class ResourceAdapterImpl extends J2EEEObjectImpl implements ResourceAdapter {
-
- /**
- * The default value of the '{@link #getManagedConnectionFactoryClass() <em>Managed Connection Factory Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getManagedConnectionFactoryClass()
- * @generated
- * @ordered
- */
- protected static final String MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String managedConnectionFactoryClass = MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT;
- /**
- * The default value of the '{@link #getConnectionFactoryInterface() <em>Connection Factory Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryInterface()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_FACTORY_INTERFACE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String connectionFactoryInterface = CONNECTION_FACTORY_INTERFACE_EDEFAULT;
- /**
- * The default value of the '{@link #getConnectionFactoryImplClass() <em>Connection Factory Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionFactoryImplClass()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String connectionFactoryImplClass = CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT;
- /**
- * The default value of the '{@link #getConnectionInterface() <em>Connection Interface</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionInterface()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_INTERFACE_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String connectionInterface = CONNECTION_INTERFACE_EDEFAULT;
- /**
- * The default value of the '{@link #getConnectionImplClass() <em>Connection Impl Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConnectionImplClass()
- * @generated
- * @ordered
- */
- protected static final String CONNECTION_IMPL_CLASS_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String connectionImplClass = CONNECTION_IMPL_CLASS_EDEFAULT;
- /**
- * The default value of the '{@link #getTransactionSupport() <em>Transaction Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransactionSupport()
- * @generated
- * @ordered
- */
- protected static final TransactionSupportKind TRANSACTION_SUPPORT_EDEFAULT = TransactionSupportKind.NO_TRANSACTION_LITERAL;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected TransactionSupportKind transactionSupport = TRANSACTION_SUPPORT_EDEFAULT;
- /**
- * This is true if the Transaction Support attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean transactionSupportESet = false;
-
- /**
- * The default value of the '{@link #isReauthenticationSupport() <em>Reauthentication Support</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isReauthenticationSupport()
- * @generated
- * @ordered
- */
- protected static final boolean REAUTHENTICATION_SUPPORT_EDEFAULT = false;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected boolean reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT;
- /**
- * This is true if the Reauthentication Support attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean reauthenticationSupportESet = false;
-
- /**
- * The default value of the '{@link #getResourceAdapterClass() <em>Resource Adapter Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getResourceAdapterClass()
- * @generated
- * @ordered
- */
- protected static final String RESOURCE_ADAPTER_CLASS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getResourceAdapterClass() <em>Resource Adapter Class</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getResourceAdapterClass()
- * @generated
- * @ordered
- */
- protected String resourceAdapterClass = RESOURCE_ADAPTER_CLASS_EDEFAULT;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList securityPermissions = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList authenticationMechanisms = null;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected EList configProperties = null;
- /**
- * The cached value of the '{@link #getOutboundResourceAdapter() <em>Outbound Resource Adapter</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOutboundResourceAdapter()
- * @generated
- * @ordered
- */
- protected OutboundResourceAdapter outboundResourceAdapter = null;
-
- /**
- * The cached value of the '{@link #getInboundResourceAdapter() <em>Inbound Resource Adapter</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInboundResourceAdapter()
- * @generated
- * @ordered
- */
- protected InboundResourceAdapter inboundResourceAdapter = null;
-
- /**
- * The cached value of the '{@link #getAdminObjects() <em>Admin Objects</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAdminObjects()
- * @generated
- * @ordered
- */
- protected EList adminObjects = null;
-
- protected ResourceAdapterImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.RESOURCE_ADAPTER;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the fully qualified name of the Java class that implements the javax.resource.spi.Managed-ConnectionFactory interface. This Java class is provided as part of resource adapter's implementation of connector architecture specified contracts.
-
- */
- public String getManagedConnectionFactoryClass() {
- return managedConnectionFactoryClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setManagedConnectionFactoryClass(String newManagedConnectionFactoryClass) {
- String oldManagedConnectionFactoryClass = managedConnectionFactoryClass;
- managedConnectionFactoryClass = newManagedConnectionFactoryClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS, oldManagedConnectionFactoryClass, managedConnectionFactoryClass));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the fully-qualified name of the ConnectionFactory interface supported by the resource adapter.
-
- */
- public String getConnectionFactoryInterface() {
- return connectionFactoryInterface;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setConnectionFactoryInterface(String newConnectionFactoryInterface) {
- String oldConnectionFactoryInterface = connectionFactoryInterface;
- connectionFactoryInterface = newConnectionFactoryInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE, oldConnectionFactoryInterface, connectionFactoryInterface));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the fully-qualified name of the ConnectionFactory class that implements resource adapter specific ConnectionFactory interface.
- */
- public String getConnectionFactoryImplClass() {
- return connectionFactoryImplClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setConnectionFactoryImplClass(String newConnectionFactoryImplClass) {
- String oldConnectionFactoryImplClass = connectionFactoryImplClass;
- connectionFactoryImplClass = newConnectionFactoryImplClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS, oldConnectionFactoryImplClass, connectionFactoryImplClass));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getConnectionInterface() {
- return connectionInterface;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setConnectionInterface(String newConnectionInterface) {
- String oldConnectionInterface = connectionInterface;
- connectionInterface = newConnectionInterface;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE, oldConnectionInterface, connectionInterface));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies the fully-qualified name of the Connection interface supported by the resource adapter.
- */
- public String getConnectionImplClass() {
- return connectionImplClass;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setConnectionImplClass(String newConnectionImplClass) {
- String oldConnectionImplClass = connectionImplClass;
- connectionImplClass = newConnectionImplClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS, oldConnectionImplClass, connectionImplClass));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The transaction-support element specifies the level of transaction
- * support provided by the resource adapter.
- * The value of transaction-support must be one of the following:
- * NoTransaction
- * LocalTransaction
- * XATransaction
- */
- public TransactionSupportKind getTransactionSupport() {
- return transactionSupport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTransactionSupport(TransactionSupportKind newTransactionSupport) {
- TransactionSupportKind oldTransactionSupport = transactionSupport;
- transactionSupport = newTransactionSupport == null ? TRANSACTION_SUPPORT_EDEFAULT : newTransactionSupport;
- boolean oldTransactionSupportESet = transactionSupportESet;
- transactionSupportESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, transactionSupport, !oldTransactionSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetTransactionSupport() {
- TransactionSupportKind oldTransactionSupport = transactionSupport;
- boolean oldTransactionSupportESet = transactionSupportESet;
- transactionSupport = TRANSACTION_SUPPORT_EDEFAULT;
- transactionSupportESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT, oldTransactionSupport, TRANSACTION_SUPPORT_EDEFAULT, oldTransactionSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetTransactionSupport() {
- return transactionSupportESet;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * Specifies whether the resource adapter implementation supports re-authentication of existing Managed-Connection instance. Note that this information is for the resource adapter implementation and not for the underlying EIS instance.
- */
- public boolean isReauthenticationSupport() {
- return reauthenticationSupport;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setReauthenticationSupport(boolean newReauthenticationSupport) {
- boolean oldReauthenticationSupport = reauthenticationSupport;
- reauthenticationSupport = newReauthenticationSupport;
- boolean oldReauthenticationSupportESet = reauthenticationSupportESet;
- reauthenticationSupportESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, reauthenticationSupport, !oldReauthenticationSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetReauthenticationSupport() {
- boolean oldReauthenticationSupport = reauthenticationSupport;
- boolean oldReauthenticationSupportESet = reauthenticationSupportESet;
- reauthenticationSupport = REAUTHENTICATION_SUPPORT_EDEFAULT;
- reauthenticationSupportESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT, oldReauthenticationSupport, REAUTHENTICATION_SUPPORT_EDEFAULT, oldReauthenticationSupportESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetReauthenticationSupport() {
- return reauthenticationSupportESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getResourceAdapterClass() {
- return resourceAdapterClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setResourceAdapterClass(String newResourceAdapterClass) {
- String oldResourceAdapterClass = resourceAdapterClass;
- resourceAdapterClass = newResourceAdapterClass;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS, oldResourceAdapterClass, resourceAdapterClass));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getSecurityPermissions() {
- if (securityPermissions == null) {
- securityPermissions = new EObjectContainmentEList(SecurityPermission.class, this, JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS);
- }
- return securityPermissions;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getAuthenticationMechanisms() {
- if (authenticationMechanisms == null) {
- authenticationMechanisms = new EObjectContainmentEList(AuthenticationMechanism.class, this, JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS);
- }
- return authenticationMechanisms;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public EList getConfigProperties() {
- if (configProperties == null) {
- configProperties = new EObjectContainmentEList(ConfigProperty.class, this, JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES);
- }
- return configProperties;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OutboundResourceAdapter getOutboundResourceAdapter() {
- return outboundResourceAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetOutboundResourceAdapter(OutboundResourceAdapter newOutboundResourceAdapter, NotificationChain msgs) {
- OutboundResourceAdapter oldOutboundResourceAdapter = outboundResourceAdapter;
- outboundResourceAdapter = newOutboundResourceAdapter;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, oldOutboundResourceAdapter, newOutboundResourceAdapter);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOutboundResourceAdapter(OutboundResourceAdapter newOutboundResourceAdapter) {
- if (newOutboundResourceAdapter != outboundResourceAdapter) {
- NotificationChain msgs = null;
- if (outboundResourceAdapter != null)
- msgs = ((InternalEObject)outboundResourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, null, msgs);
- if (newOutboundResourceAdapter != null)
- msgs = ((InternalEObject)newOutboundResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, null, msgs);
- msgs = basicSetOutboundResourceAdapter(newOutboundResourceAdapter, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER, newOutboundResourceAdapter, newOutboundResourceAdapter));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public InboundResourceAdapter getInboundResourceAdapter() {
- return inboundResourceAdapter;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetInboundResourceAdapter(InboundResourceAdapter newInboundResourceAdapter, NotificationChain msgs) {
- InboundResourceAdapter oldInboundResourceAdapter = inboundResourceAdapter;
- inboundResourceAdapter = newInboundResourceAdapter;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, oldInboundResourceAdapter, newInboundResourceAdapter);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setInboundResourceAdapter(InboundResourceAdapter newInboundResourceAdapter) {
- if (newInboundResourceAdapter != inboundResourceAdapter) {
- NotificationChain msgs = null;
- if (inboundResourceAdapter != null)
- msgs = ((InternalEObject)inboundResourceAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, null, msgs);
- if (newInboundResourceAdapter != null)
- msgs = ((InternalEObject)newInboundResourceAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, null, msgs);
- msgs = basicSetInboundResourceAdapter(newInboundResourceAdapter, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER, newInboundResourceAdapter, newInboundResourceAdapter));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getAdminObjects() {
- if (adminObjects == null) {
- adminObjects = new EObjectContainmentEList(AdminObject.class, this, JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS);
- }
- return adminObjects;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS:
- return ((InternalEList)getSecurityPermissions()).basicRemove(otherEnd, msgs);
- case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return ((InternalEList)getAuthenticationMechanisms()).basicRemove(otherEnd, msgs);
- case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES:
- return ((InternalEList)getConfigProperties()).basicRemove(otherEnd, msgs);
- case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER:
- return basicSetOutboundResourceAdapter(null, msgs);
- case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER:
- return basicSetInboundResourceAdapter(null, msgs);
- case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS:
- return ((InternalEList)getAdminObjects()).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 JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS:
- return getManagedConnectionFactoryClass();
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE:
- return getConnectionFactoryInterface();
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS:
- return getConnectionFactoryImplClass();
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE:
- return getConnectionInterface();
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS:
- return getConnectionImplClass();
- case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- return getTransactionSupport();
- case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- return isReauthenticationSupport() ? Boolean.TRUE : Boolean.FALSE;
- case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS:
- return getResourceAdapterClass();
- case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS:
- return getSecurityPermissions();
- case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return getAuthenticationMechanisms();
- case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES:
- return getConfigProperties();
- case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER:
- return getOutboundResourceAdapter();
- case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER:
- return getInboundResourceAdapter();
- case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS:
- return getAdminObjects();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS:
- setManagedConnectionFactoryClass((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE:
- setConnectionFactoryInterface((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS:
- setConnectionFactoryImplClass((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE:
- setConnectionInterface((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS:
- setConnectionImplClass((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- setTransactionSupport((TransactionSupportKind)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- setReauthenticationSupport(((Boolean)newValue).booleanValue());
- return;
- case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS:
- setResourceAdapterClass((String)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS:
- getSecurityPermissions().clear();
- getSecurityPermissions().addAll((Collection)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- getAuthenticationMechanisms().clear();
- getAuthenticationMechanisms().addAll((Collection)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- getConfigProperties().addAll((Collection)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER:
- setOutboundResourceAdapter((OutboundResourceAdapter)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER:
- setInboundResourceAdapter((InboundResourceAdapter)newValue);
- return;
- case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS:
- getAdminObjects().clear();
- getAdminObjects().addAll((Collection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(int featureID) {
- switch (featureID) {
- case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS:
- setManagedConnectionFactoryClass(MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE:
- setConnectionFactoryInterface(CONNECTION_FACTORY_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS:
- setConnectionFactoryImplClass(CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE:
- setConnectionInterface(CONNECTION_INTERFACE_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS:
- setConnectionImplClass(CONNECTION_IMPL_CLASS_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- unsetTransactionSupport();
- return;
- case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- unsetReauthenticationSupport();
- return;
- case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS:
- setResourceAdapterClass(RESOURCE_ADAPTER_CLASS_EDEFAULT);
- return;
- case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS:
- getSecurityPermissions().clear();
- return;
- case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- getAuthenticationMechanisms().clear();
- return;
- case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES:
- getConfigProperties().clear();
- return;
- case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER:
- setOutboundResourceAdapter((OutboundResourceAdapter)null);
- return;
- case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER:
- setInboundResourceAdapter((InboundResourceAdapter)null);
- return;
- case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS:
- getAdminObjects().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.RESOURCE_ADAPTER__MANAGED_CONNECTION_FACTORY_CLASS:
- return MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT == null ? managedConnectionFactoryClass != null : !MANAGED_CONNECTION_FACTORY_CLASS_EDEFAULT.equals(managedConnectionFactoryClass);
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_INTERFACE:
- return CONNECTION_FACTORY_INTERFACE_EDEFAULT == null ? connectionFactoryInterface != null : !CONNECTION_FACTORY_INTERFACE_EDEFAULT.equals(connectionFactoryInterface);
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_FACTORY_IMPL_CLASS:
- return CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT == null ? connectionFactoryImplClass != null : !CONNECTION_FACTORY_IMPL_CLASS_EDEFAULT.equals(connectionFactoryImplClass);
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_INTERFACE:
- return CONNECTION_INTERFACE_EDEFAULT == null ? connectionInterface != null : !CONNECTION_INTERFACE_EDEFAULT.equals(connectionInterface);
- case JcaPackage.RESOURCE_ADAPTER__CONNECTION_IMPL_CLASS:
- return CONNECTION_IMPL_CLASS_EDEFAULT == null ? connectionImplClass != null : !CONNECTION_IMPL_CLASS_EDEFAULT.equals(connectionImplClass);
- case JcaPackage.RESOURCE_ADAPTER__TRANSACTION_SUPPORT:
- return isSetTransactionSupport();
- case JcaPackage.RESOURCE_ADAPTER__REAUTHENTICATION_SUPPORT:
- return isSetReauthenticationSupport();
- case JcaPackage.RESOURCE_ADAPTER__RESOURCE_ADAPTER_CLASS:
- return RESOURCE_ADAPTER_CLASS_EDEFAULT == null ? resourceAdapterClass != null : !RESOURCE_ADAPTER_CLASS_EDEFAULT.equals(resourceAdapterClass);
- case JcaPackage.RESOURCE_ADAPTER__SECURITY_PERMISSIONS:
- return securityPermissions != null && !securityPermissions.isEmpty();
- case JcaPackage.RESOURCE_ADAPTER__AUTHENTICATION_MECHANISMS:
- return authenticationMechanisms != null && !authenticationMechanisms.isEmpty();
- case JcaPackage.RESOURCE_ADAPTER__CONFIG_PROPERTIES:
- return configProperties != null && !configProperties.isEmpty();
- case JcaPackage.RESOURCE_ADAPTER__OUTBOUND_RESOURCE_ADAPTER:
- return outboundResourceAdapter != null;
- case JcaPackage.RESOURCE_ADAPTER__INBOUND_RESOURCE_ADAPTER:
- return inboundResourceAdapter != null;
- case JcaPackage.RESOURCE_ADAPTER__ADMIN_OBJECTS:
- return adminObjects != null && !adminObjects.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(" (managedConnectionFactoryClass: ");
- result.append(managedConnectionFactoryClass);
- result.append(", connectionFactoryInterface: ");
- result.append(connectionFactoryInterface);
- result.append(", connectionFactoryImplClass: ");
- result.append(connectionFactoryImplClass);
- result.append(", connectionInterface: ");
- result.append(connectionInterface);
- result.append(", connectionImplClass: ");
- result.append(connectionImplClass);
- result.append(", transactionSupport: ");
- if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>");
- result.append(", reauthenticationSupport: ");
- if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>");
- result.append(", resourceAdapterClass: ");
- result.append(resourceAdapterClass);
- result.append(')');
- return result.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java
deleted file mode 100644
index 9cfdd1c0e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/impl/SecurityPermissionImpl.java
+++ /dev/null
@@ -1,241 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.Description;
-import org.eclipse.jst.j2ee.common.internal.impl.J2EEEObjectImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-
-/**
- * Specifies a security permission that is required by the resource adapter code.
- *
- * The security permission listed in the deployment descriptor are ones that are different from those required by the default permission set as specified in the connector specification. The optional description can mention specific reason that resource adapter requires a given security permission.
- * @generated
- */
-public class SecurityPermissionImpl extends J2EEEObjectImpl implements SecurityPermission {
-
- /**
- * 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 #getSpecification() <em>Specification</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSpecification()
- * @generated
- * @ordered
- */
- protected static final String SPECIFICATION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String specification = SPECIFICATION_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;
-
- protected SecurityPermissionImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return JcaPackage.Literals.SECURITY_PERMISSION;
- }
-
- /**
- * @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, JcaPackage.SECURITY_PERMISSION__DESCRIPTION, oldDescription, description));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The element permission-spec specifies a security permission based on the Security policy file syntax.
-
- */
- public String getSpecification() {
- return specification;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setSpecification(String newSpecification) {
- String oldSpecification = specification;
- specification = newSpecification;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, JcaPackage.SECURITY_PERMISSION__SPECIFICATION, oldSpecification, specification));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case JcaPackage.SECURITY_PERMISSION__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 JcaPackage.SECURITY_PERMISSION__DESCRIPTION:
- return getDescription();
- case JcaPackage.SECURITY_PERMISSION__SPECIFICATION:
- return getSpecification();
- case JcaPackage.SECURITY_PERMISSION__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 JcaPackage.SECURITY_PERMISSION__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case JcaPackage.SECURITY_PERMISSION__SPECIFICATION:
- setSpecification((String)newValue);
- return;
- case JcaPackage.SECURITY_PERMISSION__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 JcaPackage.SECURITY_PERMISSION__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case JcaPackage.SECURITY_PERMISSION__SPECIFICATION:
- setSpecification(SPECIFICATION_EDEFAULT);
- return;
- case JcaPackage.SECURITY_PERMISSION__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case JcaPackage.SECURITY_PERMISSION__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case JcaPackage.SECURITY_PERMISSION__SPECIFICATION:
- return SPECIFICATION_EDEFAULT == null ? specification != null : !SPECIFICATION_EDEFAULT.equals(specification);
- case JcaPackage.SECURITY_PERMISSION__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(", specification: ");
- result.append(specification);
- result.append(')');
- return result.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java
deleted file mode 100644
index 686e4f1b7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JCADescriptionHelper.java
+++ /dev/null
@@ -1,157 +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.jca.internal.util;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-
-/**
- * @deprecated
- */
-public class JCADescriptionHelper {
- public static void setDescription(ConfigProperty property, String description, int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- property.setDescription(description);
- break;
- case J2EEVersionConstants.JCA_1_5_ID: {
- Description descriptionObj = CommonFactory.eINSTANCE.createDescription();
- descriptionObj.setValue(description);
- property.getDescriptions().add(descriptionObj);
- }
- }
- }
- public static String getDescription(ConfigProperty property,int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- return property.getDescription();
- case J2EEVersionConstants.JCA_1_5_ID: {
- EList localizedDescriptions = property.getDescriptions();
- if(localizedDescriptions == null || localizedDescriptions.size() == 0)
- return null;
- Description localizedDescription = (Description)localizedDescriptions.get(0);
- if(localizedDescription != null)
- return localizedDescription.getValue();
- }
- }
- return null;
- }
- public static void setDescription(SecurityPermission property, String description, int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- property.setDescription(description);
- break;
- case J2EEVersionConstants.JCA_1_5_ID: {
- Description descriptionObj = CommonFactory.eINSTANCE.createDescription();
- descriptionObj.setValue(description);
- property.getDescriptions().add(descriptionObj);
- }
- }
- }
-
- public static String getDescription(SecurityPermission property,int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- return property.getDescription();
- case J2EEVersionConstants.JCA_1_5_ID: {
- EList localizedDescriptions = property.getDescriptions();
- if(localizedDescriptions == null || localizedDescriptions.size() == 0)
- return null;
- Description localizedDescription = (Description)localizedDescriptions.get(0);
- if(localizedDescription != null)
- return localizedDescription.getValue();
- }
- }
- return null;
- }
- public static void setDescription(License property, String description, int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- property.setDescription(description);
- break;
- case J2EEVersionConstants.JCA_1_5_ID: {
- Description descriptionObj = CommonFactory.eINSTANCE.createDescription();
- descriptionObj.setValue(description);
- property.getDescriptions().add(descriptionObj);
- }
- }
- }
-
- public static String getDescription(License property,int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- return property.getDescription();
- case J2EEVersionConstants.JCA_1_5_ID: {
- EList localizedDescriptions = property.getDescriptions();
- if(localizedDescriptions == null || localizedDescriptions.size() == 0)
- return null;
- Description localizedDescription = (Description)localizedDescriptions.get(0);
- if(localizedDescription != null)
- return localizedDescription.getValue();
- }
- }
- return null;
- }
- public static void setDescription(AuthenticationMechanism property, String description, int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- property.setDescription(description);
- break;
- case J2EEVersionConstants.JCA_1_5_ID: {
- Description descriptionObj = CommonFactory.eINSTANCE.createDescription();
- descriptionObj.setValue(description);
- property.getDescriptions().add(descriptionObj);
- }
- }
- }
-
- public static String getDescription(AuthenticationMechanism property,int jcaVersionID) {
- switch(jcaVersionID) {
- case J2EEVersionConstants.JCA_1_0_ID:
- return property.getDescription();
- case J2EEVersionConstants.JCA_1_5_ID: {
- EList localizedDescriptions = property.getDescriptions();
- if(localizedDescriptions == null || localizedDescriptions.size() == 0)
- return null;
- Description localizedDescription = (Description)localizedDescriptions.get(0);
- if(localizedDescription != null)
- return localizedDescription.getValue();
- }
- }
- return null;
- }
- public static void setDescription(RequiredConfigPropertyType property, String description, int jcaVersionID) {
- if(jcaVersionID == J2EEVersionConstants.JCA_1_5_ID) {
- Description descriptionObj = CommonFactory.eINSTANCE.createDescription();
- descriptionObj.setValue(description);
- property.getDescriptions().add(descriptionObj);
- }
- }
- public static String getDescription(RequiredConfigPropertyType property,int jcaVersionID) {
- if(jcaVersionID == J2EEVersionConstants.JCA_1_5_ID) {
- EList localizedDescriptions = property.getDescriptions();
- if(localizedDescriptions == null || localizedDescriptions.size() == 0)
- return null;
- Description localizedDescription = (Description)localizedDescriptions.get(0);
- if(localizedDescription != null)
- return localizedDescription.getValue();
- }
- return null;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java
deleted file mode 100644
index bbde18fbd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaAdapterFactory.java
+++ /dev/null
@@ -1,408 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.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.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-
-
-public class JcaAdapterFactory extends AdapterFactoryImpl {
- protected static JcaPackage modelPackage;
-
- public JcaAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = (JcaPackage)EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI);
- }
- }
- public boolean isFactoryForType(Object type) {
- if (type == modelPackage) {
- return true;
- }
- if (type instanceof EObject) {
- return ((EObject)type).eClass().eContainer() == modelPackage;
- }
- return false;
- }
-
- protected JcaSwitch sw = new JcaSwitch() {
- public Object caseConnector(Connector object) {
- return createConnectorAdapter();
- }
- public Object caseLicense(License object) {
- return createLicenseAdapter();
- }
- public Object caseResourceAdapter(ResourceAdapter object) {
- return createResourceAdapterAdapter();
- }
- public Object caseSecurityPermission(SecurityPermission object) {
- return createSecurityPermissionAdapter();
- }
- public Object caseAuthenticationMechanism(AuthenticationMechanism object) {
- return createAuthenticationMechanismAdapter();
- }
- public Object caseConfigProperty(ConfigProperty object) {
- return createConfigPropertyAdapter();
- }
- };
-
- public Adapter createAdapter(Notifier target) {
- return (Adapter)modelSwitch.doSwitch((EObject)target); // sw
- }
-
- /**
- * 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 createConnectorAdapter() {
- return null;
- }
-
- public Adapter createLicenseAdapter() {
- return null;
- }
-
- public Adapter createResourceAdapterAdapter() {
- return null;
- }
-
- public Adapter createSecurityPermissionAdapter() {
- return null;
- }
-
- public Adapter createAuthenticationMechanismAdapter() {
- return null;
- }
-
- public Adapter createConfigPropertyAdapter() {
- 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 JcaSwitch modelSwitch =
- new JcaSwitch() {
- public Object caseConnector(Connector object) {
- return createConnectorAdapter();
- }
- public Object caseResourceAdapter(ResourceAdapter object) {
- return createResourceAdapterAdapter();
- }
- public Object caseAuthenticationMechanism(AuthenticationMechanism object) {
- return createAuthenticationMechanismAdapter();
- }
- public Object caseConfigProperty(ConfigProperty object) {
- return createConfigPropertyAdapter();
- }
- public Object caseSecurityPermission(SecurityPermission object) {
- return createSecurityPermissionAdapter();
- }
- public Object caseLicense(License object) {
- return createLicenseAdapter();
- }
- public Object caseInboundResourceAdapter(InboundResourceAdapter object) {
- return createInboundResourceAdapterAdapter();
- }
- public Object caseOutboundResourceAdapter(OutboundResourceAdapter object) {
- return createOutboundResourceAdapterAdapter();
- }
- public Object caseMessageAdapter(MessageAdapter object) {
- return createMessageAdapterAdapter();
- }
- public Object caseConnectionDefinition(ConnectionDefinition object) {
- return createConnectionDefinitionAdapter();
- }
- public Object caseAdminObject(AdminObject object) {
- return createAdminObjectAdapter();
- }
- public Object caseMessageListener(MessageListener object) {
- return createMessageListenerAdapter();
- }
- public Object caseActivationSpec(ActivationSpec object) {
- return createActivationSpecAdapter();
- }
- public Object caseRequiredConfigPropertyType(RequiredConfigPropertyType object) {
- return createRequiredConfigPropertyTypeAdapter();
- }
- public Object caseJ2EEEObject(J2EEEObject object) {
- return createJ2EEEObjectAdapter();
- }
- public Object caseDescriptionGroup(DescriptionGroup object) {
- return createDescriptionGroupAdapter();
- }
- public Object caseCompatibilityDescriptionGroup(CompatibilityDescriptionGroup object) {
- return createCompatibilityDescriptionGroupAdapter();
- }
- 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 createConnectorAdapterGen() {
-
- return null;
- }
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createLicenseAdapterGen() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.InboundResourceAdapter <em>Inbound Resource Adapter</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.jca.InboundResourceAdapter
- * @generated
- */
- public Adapter createInboundResourceAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.OutboundResourceAdapter <em>Outbound Resource Adapter</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.jca.OutboundResourceAdapter
- * @generated
- */
- public Adapter createOutboundResourceAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.MessageAdapter <em>Message Adapter</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.jca.MessageAdapter
- * @generated
- */
- public Adapter createMessageAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.ConnectionDefinition <em>Connection Definition</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.jca.ConnectionDefinition
- * @generated
- */
- public Adapter createConnectionDefinitionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.AdminObject <em>Admin 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.jca.AdminObject
- * @generated
- */
- public Adapter createAdminObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.MessageListener <em>Message 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.jca.MessageListener
- * @generated
- */
- public Adapter createMessageListenerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.ActivationSpec <em>Activation Spec</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.jca.ActivationSpec
- * @generated
- */
- public Adapter createActivationSpecAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType <em>Required Config Property 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.jca.RequiredConfigPropertyType
- * @generated
- */
- public Adapter createRequiredConfigPropertyTypeAdapter() {
- 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.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.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 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 createResourceAdapterAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createSecurityPermissionAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createAuthenticationMechanismAdapterGen() {
- return null;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public Adapter createConfigPropertyAdapterGen() {
- return null;
- }
-
-} //JcaAdapterFactory
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java
deleted file mode 100644
index b002fd7bc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/internal/util/JcaSwitch.java
+++ /dev/null
@@ -1,486 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.jca.internal.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.common.CompatibilityDescriptionGroup;
-import org.eclipse.jst.j2ee.common.DescriptionGroup;
-import org.eclipse.jst.j2ee.common.J2EEEObject;
-import org.eclipse.jst.j2ee.jca.ActivationSpec;
-import org.eclipse.jst.j2ee.jca.AdminObject;
-import org.eclipse.jst.j2ee.jca.AuthenticationMechanism;
-import org.eclipse.jst.j2ee.jca.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.InboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.License;
-import org.eclipse.jst.j2ee.jca.MessageAdapter;
-import org.eclipse.jst.j2ee.jca.MessageListener;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.RequiredConfigPropertyType;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-
-
-/**
- * <!-- 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.jca.JcaPackage
- * @generated
- */
-public class JcaSwitch {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static JcaPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public JcaSwitch() {
- if (modelPackage == null) {
- modelPackage = JcaPackage.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 JcaPackage.CONNECTOR: {
- Connector connector = (Connector)theEObject;
- Object result = caseConnector(connector);
- if (result == null) result = caseCompatibilityDescriptionGroup(connector);
- if (result == null) result = caseDescriptionGroup(connector);
- if (result == null) result = caseJ2EEEObject(connector);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.RESOURCE_ADAPTER: {
- ResourceAdapter resourceAdapter = (ResourceAdapter)theEObject;
- Object result = caseResourceAdapter(resourceAdapter);
- if (result == null) result = caseJ2EEEObject(resourceAdapter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.AUTHENTICATION_MECHANISM: {
- AuthenticationMechanism authenticationMechanism = (AuthenticationMechanism)theEObject;
- Object result = caseAuthenticationMechanism(authenticationMechanism);
- if (result == null) result = caseJ2EEEObject(authenticationMechanism);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.CONFIG_PROPERTY: {
- ConfigProperty configProperty = (ConfigProperty)theEObject;
- Object result = caseConfigProperty(configProperty);
- if (result == null) result = caseJ2EEEObject(configProperty);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.SECURITY_PERMISSION: {
- SecurityPermission securityPermission = (SecurityPermission)theEObject;
- Object result = caseSecurityPermission(securityPermission);
- if (result == null) result = caseJ2EEEObject(securityPermission);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.LICENSE: {
- License license = (License)theEObject;
- Object result = caseLicense(license);
- if (result == null) result = caseJ2EEEObject(license);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.INBOUND_RESOURCE_ADAPTER: {
- InboundResourceAdapter inboundResourceAdapter = (InboundResourceAdapter)theEObject;
- Object result = caseInboundResourceAdapter(inboundResourceAdapter);
- if (result == null) result = caseJ2EEEObject(inboundResourceAdapter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.OUTBOUND_RESOURCE_ADAPTER: {
- OutboundResourceAdapter outboundResourceAdapter = (OutboundResourceAdapter)theEObject;
- Object result = caseOutboundResourceAdapter(outboundResourceAdapter);
- if (result == null) result = caseJ2EEEObject(outboundResourceAdapter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.MESSAGE_ADAPTER: {
- MessageAdapter messageAdapter = (MessageAdapter)theEObject;
- Object result = caseMessageAdapter(messageAdapter);
- if (result == null) result = caseJ2EEEObject(messageAdapter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.CONNECTION_DEFINITION: {
- ConnectionDefinition connectionDefinition = (ConnectionDefinition)theEObject;
- Object result = caseConnectionDefinition(connectionDefinition);
- if (result == null) result = caseJ2EEEObject(connectionDefinition);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.ADMIN_OBJECT: {
- AdminObject adminObject = (AdminObject)theEObject;
- Object result = caseAdminObject(adminObject);
- if (result == null) result = caseJ2EEEObject(adminObject);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.MESSAGE_LISTENER: {
- MessageListener messageListener = (MessageListener)theEObject;
- Object result = caseMessageListener(messageListener);
- if (result == null) result = caseJ2EEEObject(messageListener);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.ACTIVATION_SPEC: {
- ActivationSpec activationSpec = (ActivationSpec)theEObject;
- Object result = caseActivationSpec(activationSpec);
- if (result == null) result = caseJ2EEEObject(activationSpec);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case JcaPackage.REQUIRED_CONFIG_PROPERTY_TYPE: {
- RequiredConfigPropertyType requiredConfigPropertyType = (RequiredConfigPropertyType)theEObject;
- Object result = caseRequiredConfigPropertyType(requiredConfigPropertyType);
- if (result == null) result = caseJ2EEEObject(requiredConfigPropertyType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Connector</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>Connector</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseConnector(Connector object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Resource Adapter</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 Adapter</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseResourceAdapter(ResourceAdapter object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Authentication Mechanism</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>Authentication Mechanism</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseAuthenticationMechanism(AuthenticationMechanism object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Config Property</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>Config Property</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseConfigProperty(ConfigProperty object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Security Permission</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 Permission</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseSecurityPermission(SecurityPermission object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>License</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>License</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseLicense(License object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Inbound Resource Adapter</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>Inbound Resource Adapter</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseInboundResourceAdapter(InboundResourceAdapter object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Outbound Resource Adapter</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>Outbound Resource Adapter</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseOutboundResourceAdapter(OutboundResourceAdapter object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Message Adapter</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 Adapter</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseMessageAdapter(MessageAdapter object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Connection Definition</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>Connection Definition</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseConnectionDefinition(ConnectionDefinition object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Admin 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>Admin Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseAdminObject(AdminObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Message 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>Message Listener</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseMessageListener(MessageListener object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Activation Spec</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>Activation Spec</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseActivationSpec(ActivationSpec object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Required Config Property 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>Required Config Property Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public Object caseRequiredConfigPropertyType(RequiredConfigPropertyType 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>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>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>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;
- }
-
-} //JcaSwitch

Back to the top