blob: 15b5e2affbfbf7dbd55d9e3fe085b151dbe84394 [file] [log] [blame]
/**
* <copyright>
* </copyright>
*
* $Id: EjbAdapterFactory.java,v 1.1 2007/05/16 06:42:38 cbridgha Exp $
*/
package org.eclipse.jst.javaee.ejb.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.ejb.*;
import org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage;
/**
* <!-- 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.ejb.internal.metadata.EjbPackage
* @generated
*/
public class EjbAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static EjbPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EjbAdapterFactory() {
if (modelPackage == null) {
modelPackage = EjbPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch the delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EjbSwitch modelSwitch =
new EjbSwitch() {
public Object caseActivationConfig(ActivationConfig object) {
return createActivationConfigAdapter();
}
public Object caseActivationConfigProperty(ActivationConfigProperty object) {
return createActivationConfigPropertyAdapter();
}
public Object caseApplicationException(ApplicationException object) {
return createApplicationExceptionAdapter();
}
public Object caseAroundInvokeType(AroundInvokeType object) {
return createAroundInvokeTypeAdapter();
}
public Object caseAssemblyDescriptor(AssemblyDescriptor object) {
return createAssemblyDescriptorAdapter();
}
public Object caseCMPField(CMPField object) {
return createCMPFieldAdapter();
}
public Object caseCMRField(CMRField object) {
return createCMRFieldAdapter();
}
public Object caseContainerTransactionType(ContainerTransactionType object) {
return createContainerTransactionTypeAdapter();
}
public Object caseEJBJar(EJBJar object) {
return createEJBJarAdapter();
}
public Object caseEJBJarDeploymentDescriptor(EJBJarDeploymentDescriptor object) {
return createEJBJarDeploymentDescriptorAdapter();
}
public Object caseEJBRelation(EJBRelation object) {
return createEJBRelationAdapter();
}
public Object caseEJBRelationshipRole(EJBRelationshipRole object) {
return createEJBRelationshipRoleAdapter();
}
public Object caseEnterpriseBeans(EnterpriseBeans object) {
return createEnterpriseBeansAdapter();
}
public Object caseEntityBean(EntityBean object) {
return createEntityBeanAdapter();
}
public Object caseExcludeList(ExcludeList object) {
return createExcludeListAdapter();
}
public Object caseInitMethodType(InitMethodType object) {
return createInitMethodTypeAdapter();
}
public Object caseInterceptorBindingType(InterceptorBindingType object) {
return createInterceptorBindingTypeAdapter();
}
public Object caseInterceptorOrderType(InterceptorOrderType object) {
return createInterceptorOrderTypeAdapter();
}
public Object caseInterceptorsType(InterceptorsType object) {
return createInterceptorsTypeAdapter();
}
public Object caseInterceptorType(InterceptorType object) {
return createInterceptorTypeAdapter();
}
public Object caseMessageDrivenBean(MessageDrivenBean object) {
return createMessageDrivenBeanAdapter();
}
public Object caseMethodParams(MethodParams object) {
return createMethodParamsAdapter();
}
public Object caseMethodPermission(MethodPermission object) {
return createMethodPermissionAdapter();
}
public Object caseMethodType(MethodType object) {
return createMethodTypeAdapter();
}
public Object caseNamedMethodType(NamedMethodType object) {
return createNamedMethodTypeAdapter();
}
public Object caseQuery(Query object) {
return createQueryAdapter();
}
public Object caseQueryMethod(QueryMethod object) {
return createQueryMethodAdapter();
}
public Object caseRelationshipRoleSourceType(RelationshipRoleSourceType object) {
return createRelationshipRoleSourceTypeAdapter();
}
public Object caseRelationships(Relationships object) {
return createRelationshipsAdapter();
}
public Object caseRemoveMethodType(RemoveMethodType object) {
return createRemoveMethodTypeAdapter();
}
public Object caseSecurityIdentityType(SecurityIdentityType object) {
return createSecurityIdentityTypeAdapter();
}
public Object caseSessionBean(SessionBean object) {
return createSessionBeanAdapter();
}
public Object defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
public Adapter createAdapter(Notifier target) {
return (Adapter)modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.ActivationConfig <em>Activation Config</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.ejb.ActivationConfig
* @generated
*/
public Adapter createActivationConfigAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.ActivationConfigProperty <em>Activation 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.ejb.ActivationConfigProperty
* @generated
*/
public Adapter createActivationConfigPropertyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.ApplicationException <em>Application Exception</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.ejb.ApplicationException
* @generated
*/
public Adapter createApplicationExceptionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.AroundInvokeType <em>Around Invoke 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.javaee.ejb.AroundInvokeType
* @generated
*/
public Adapter createAroundInvokeTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.AssemblyDescriptor <em>Assembly 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.ejb.AssemblyDescriptor
* @generated
*/
public Adapter createAssemblyDescriptorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.CMPField <em>CMP Field</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.ejb.CMPField
* @generated
*/
public Adapter createCMPFieldAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.CMRField <em>CMR Field</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.ejb.CMRField
* @generated
*/
public Adapter createCMRFieldAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.ContainerTransactionType <em>Container Transaction 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.javaee.ejb.ContainerTransactionType
* @generated
*/
public Adapter createContainerTransactionTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EJBJar <em>EJB Jar</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.ejb.EJBJar
* @generated
*/
public Adapter createEJBJarAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EJBJarDeploymentDescriptor <em>EJB Jar 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.ejb.EJBJarDeploymentDescriptor
* @generated
*/
public Adapter createEJBJarDeploymentDescriptorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EJBRelation <em>EJB Relation</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.ejb.EJBRelation
* @generated
*/
public Adapter createEJBRelationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EJBRelationshipRole <em>EJB Relationship Role</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.ejb.EJBRelationshipRole
* @generated
*/
public Adapter createEJBRelationshipRoleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EnterpriseBeans <em>Enterprise Beans</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.ejb.EnterpriseBeans
* @generated
*/
public Adapter createEnterpriseBeansAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.EntityBean <em>Entity Bean</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.ejb.EntityBean
* @generated
*/
public Adapter createEntityBeanAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.ExcludeList <em>Exclude List</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.ejb.ExcludeList
* @generated
*/
public Adapter createExcludeListAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.InitMethodType <em>Init Method 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.javaee.ejb.InitMethodType
* @generated
*/
public Adapter createInitMethodTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.InterceptorBindingType <em>Interceptor Binding 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.javaee.ejb.InterceptorBindingType
* @generated
*/
public Adapter createInterceptorBindingTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.InterceptorOrderType <em>Interceptor Order 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.javaee.ejb.InterceptorOrderType
* @generated
*/
public Adapter createInterceptorOrderTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.InterceptorsType <em>Interceptors 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.javaee.ejb.InterceptorsType
* @generated
*/
public Adapter createInterceptorsTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.InterceptorType <em>Interceptor 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.javaee.ejb.InterceptorType
* @generated
*/
public Adapter createInterceptorTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.MessageDrivenBean <em>Message Driven Bean</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.ejb.MessageDrivenBean
* @generated
*/
public Adapter createMessageDrivenBeanAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.MethodParams <em>Method Params</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.ejb.MethodParams
* @generated
*/
public Adapter createMethodParamsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.MethodPermission <em>Method 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.ejb.MethodPermission
* @generated
*/
public Adapter createMethodPermissionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.MethodType <em>Method 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.javaee.ejb.MethodType
* @generated
*/
public Adapter createMethodTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.NamedMethodType <em>Named Method 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.javaee.ejb.NamedMethodType
* @generated
*/
public Adapter createNamedMethodTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.Query <em>Query</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.ejb.Query
* @generated
*/
public Adapter createQueryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.QueryMethod <em>Query Method</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.ejb.QueryMethod
* @generated
*/
public Adapter createQueryMethodAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.RelationshipRoleSourceType <em>Relationship Role Source 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.javaee.ejb.RelationshipRoleSourceType
* @generated
*/
public Adapter createRelationshipRoleSourceTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.Relationships <em>Relationships</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.ejb.Relationships
* @generated
*/
public Adapter createRelationshipsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.RemoveMethodType <em>Remove Method 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.javaee.ejb.RemoveMethodType
* @generated
*/
public Adapter createRemoveMethodTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.SecurityIdentityType <em>Security Identity 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.javaee.ejb.SecurityIdentityType
* @generated
*/
public Adapter createSecurityIdentityTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.jst.javaee.ejb.SessionBean <em>Session Bean</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.ejb.SessionBean
* @generated
*/
public Adapter createSessionBeanAdapter() {
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;
}
} //EjbAdapterFactory