/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jst.javaee.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.jst.javaee.jca.*; import org.eclipse.jst.javaee.jca.internal.metadata.JcaPackage; /** * <!-- begin-user-doc --> * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> * @see org.eclipse.jst.javaee.jca.internal.metadata.JcaPackage * @generated */ public class JcaAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static JcaPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public JcaAdapterFactory() { if (modelPackage == null) { modelPackage = JcaPackage.eINSTANCE; } } /** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the type of the object. * @generated */ @Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected JcaSwitch<Adapter> modelSwitch = new JcaSwitch<Adapter>() { @Override public Adapter caseActivationSpec(ActivationSpec object) { return createActivationSpecAdapter(); } @Override public Adapter caseAdminObject(AdminObject object) { return createAdminObjectAdapter(); } @Override public Adapter caseAuthenticationMechanism(AuthenticationMechanism object) { return createAuthenticationMechanismAdapter(); } @Override public Adapter caseConfigProperty(ConfigProperty object) { return createConfigPropertyAdapter(); } @Override public Adapter caseConnectionDefinition(ConnectionDefinition object) { return createConnectionDefinitionAdapter(); } @Override public Adapter caseConnector(Connector object) { return createConnectorAdapter(); } @Override public Adapter caseConnectorDeploymentDescriptor(ConnectorDeploymentDescriptor object) { return createConnectorDeploymentDescriptorAdapter(); } @Override public Adapter caseInboundResourceAdapter(InboundResourceAdapter object) { return createInboundResourceAdapterAdapter(); } @Override public Adapter caseLicense(License object) { return createLicenseAdapter(); } @Override public Adapter caseMessageAdapter(MessageAdapter object) { return createMessageAdapterAdapter(); } @Override public Adapter caseMessageListener(MessageListener object) { return createMessageListenerAdapter(); } @Override public Adapter caseOutboundResourceAdapter(OutboundResourceAdapter object) { return createOutboundResourceAdapterAdapter(); } @Override public Adapter caseRequiredConfigProperty(RequiredConfigProperty object) { return createRequiredConfigPropertyAdapter(); } @Override public Adapter caseResourceAdapter(ResourceAdapter object) { return createResourceAdapterAdapter(); } @Override public Adapter caseSecurityPermission(SecurityPermission object) { return createSecurityPermissionAdapter(); } @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } }; /** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.ActivationSpec * @generated */ public Adapter createActivationSpecAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.AdminObject * @generated */ public Adapter createAdminObjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.AuthenticationMechanism <em>Authentication Mechanism</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.javaee.jca.AuthenticationMechanism * @generated */ public Adapter createAuthenticationMechanismAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.ConfigProperty <em>Config Property</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.javaee.jca.ConfigProperty * @generated */ public Adapter createConfigPropertyAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.ConnectionDefinition * @generated */ public Adapter createConnectionDefinitionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.Connector <em>Connector</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.javaee.jca.Connector * @generated */ public Adapter createConnectorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.ConnectorDeploymentDescriptor <em>Connector Deployment Descriptor</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.javaee.jca.ConnectorDeploymentDescriptor * @generated */ public Adapter createConnectorDeploymentDescriptorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.InboundResourceAdapter * @generated */ public Adapter createInboundResourceAdapterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.License <em>License</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.javaee.jca.License * @generated */ public Adapter createLicenseAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.MessageAdapter * @generated */ public Adapter createMessageAdapterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.MessageListener * @generated */ public Adapter createMessageListenerAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.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.javaee.jca.OutboundResourceAdapter * @generated */ public Adapter createOutboundResourceAdapterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.RequiredConfigProperty <em>Required Config Property</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.javaee.jca.RequiredConfigProperty * @generated */ public Adapter createRequiredConfigPropertyAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.ResourceAdapter <em>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.javaee.jca.ResourceAdapter * @generated */ public Adapter createResourceAdapterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.jca.SecurityPermission <em>Security Permission</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.javaee.jca.SecurityPermission * @generated */ public Adapter createSecurityPermissionAdapter() { 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; } } //JcaAdapterFactory