| /** |
| */ |
| package org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.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.papyrus.designer.languages.java.profile.PapyrusJava.*; |
| |
| /** |
| * <!-- 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.papyrus.designer.languages.java.profile.PapyrusJava.PapyrusJavaPackage |
| * @generated |
| */ |
| public class PapyrusJavaAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static PapyrusJavaPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PapyrusJavaAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = PapyrusJavaPackage.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 PapyrusJavaSwitch<Adapter> modelSwitch = |
| new PapyrusJavaSwitch<Adapter>() { |
| @Override |
| public Adapter caseArray(Array object) { |
| return createArrayAdapter(); |
| } |
| @Override |
| public Adapter caseExternal(External object) { |
| return createExternalAdapter(); |
| } |
| @Override |
| public Adapter caseExternLibrary(ExternLibrary object) { |
| return createExternLibraryAdapter(); |
| } |
| @Override |
| public Adapter caseImport(Import object) { |
| return createImportAdapter(); |
| } |
| @Override |
| public Adapter caseNoCodeGen(NoCodeGen object) { |
| return createNoCodeGenAdapter(); |
| } |
| @Override |
| public Adapter caseTemplate(Template object) { |
| return createTemplateAdapter(); |
| } |
| @Override |
| public Adapter caseTemplateBinding(TemplateBinding object) { |
| return createTemplateBindingAdapter(); |
| } |
| @Override |
| public Adapter caseTemplateParameter(TemplateParameter object) { |
| return createTemplateParameterAdapter(); |
| } |
| @Override |
| public Adapter caseManualGeneration(ManualGeneration object) { |
| return createManualGenerationAdapter(); |
| } |
| @Override |
| public Adapter caseVariadic(Variadic object) { |
| return createVariadicAdapter(); |
| } |
| @Override |
| public Adapter caseVolatile(Volatile object) { |
| return createVolatileAdapter(); |
| } |
| @Override |
| public Adapter caseTransient(Transient object) { |
| return createTransientAdapter(); |
| } |
| @Override |
| public Adapter caseSynchronized(Synchronized object) { |
| return createSynchronizedAdapter(); |
| } |
| @Override |
| public Adapter caseStrictfp(Strictfp object) { |
| return createStrictfpAdapter(); |
| } |
| @Override |
| public Adapter caseNative(Native object) { |
| return createNativeAdapter(); |
| } |
| @Override |
| public Adapter caseDefault(Default object) { |
| return createDefaultAdapter(); |
| } |
| @Override |
| public Adapter caseStaticClassifier(StaticClassifier object) { |
| return createStaticClassifierAdapter(); |
| } |
| @Override |
| public Adapter caseFinal(Final object) { |
| return createFinalAdapter(); |
| } |
| @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.papyrus.designer.languages.java.profile.PapyrusJava.Array <em>Array</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.papyrus.designer.languages.java.profile.PapyrusJava.Array |
| * @generated |
| */ |
| public Adapter createArrayAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.External <em>External</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.papyrus.designer.languages.java.profile.PapyrusJava.External |
| * @generated |
| */ |
| public Adapter createExternalAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.ExternLibrary <em>Extern Library</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.papyrus.designer.languages.java.profile.PapyrusJava.ExternLibrary |
| * @generated |
| */ |
| public Adapter createExternLibraryAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Import <em>Import</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.papyrus.designer.languages.java.profile.PapyrusJava.Import |
| * @generated |
| */ |
| public Adapter createImportAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.NoCodeGen <em>No Code Gen</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.papyrus.designer.languages.java.profile.PapyrusJava.NoCodeGen |
| * @generated |
| */ |
| public Adapter createNoCodeGenAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Template <em>Template</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.papyrus.designer.languages.java.profile.PapyrusJava.Template |
| * @generated |
| */ |
| public Adapter createTemplateAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.TemplateBinding <em>Template Binding</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.papyrus.designer.languages.java.profile.PapyrusJava.TemplateBinding |
| * @generated |
| */ |
| public Adapter createTemplateBindingAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.TemplateParameter <em>Template Parameter</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.papyrus.designer.languages.java.profile.PapyrusJava.TemplateParameter |
| * @generated |
| */ |
| public Adapter createTemplateParameterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.ManualGeneration <em>Manual Generation</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.papyrus.designer.languages.java.profile.PapyrusJava.ManualGeneration |
| * @generated |
| */ |
| public Adapter createManualGenerationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Variadic <em>Variadic</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.papyrus.designer.languages.java.profile.PapyrusJava.Variadic |
| * @generated |
| */ |
| public Adapter createVariadicAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Volatile <em>Volatile</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.papyrus.designer.languages.java.profile.PapyrusJava.Volatile |
| * @generated |
| */ |
| public Adapter createVolatileAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Transient <em>Transient</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.papyrus.designer.languages.java.profile.PapyrusJava.Transient |
| * @generated |
| */ |
| public Adapter createTransientAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Synchronized <em>Synchronized</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.papyrus.designer.languages.java.profile.PapyrusJava.Synchronized |
| * @generated |
| */ |
| public Adapter createSynchronizedAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Strictfp <em>Strictfp</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.papyrus.designer.languages.java.profile.PapyrusJava.Strictfp |
| * @generated |
| */ |
| public Adapter createStrictfpAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Native <em>Native</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.papyrus.designer.languages.java.profile.PapyrusJava.Native |
| * @generated |
| */ |
| public Adapter createNativeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Default <em>Default</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.papyrus.designer.languages.java.profile.PapyrusJava.Default |
| * @generated |
| */ |
| public Adapter createDefaultAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.StaticClassifier <em>Static Classifier</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.papyrus.designer.languages.java.profile.PapyrusJava.StaticClassifier |
| * @generated |
| */ |
| public Adapter createStaticClassifierAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.designer.languages.java.profile.PapyrusJava.Final <em>Final</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.papyrus.designer.languages.java.profile.PapyrusJava.Final |
| * @generated |
| */ |
| public Adapter createFinalAdapter() { |
| 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; |
| } |
| |
| } //PapyrusJavaAdapterFactory |