| /**
|
| * Copyright (c) 2010, 2019 Mia-Software and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v2.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v20.html
|
| *
|
| * Contributors:
|
| * Fabien Giquel (Mia-Software) - initial API and implementation
|
| * Nicolas Guyomar (Mia-Software) - initial API and implementation
|
| *
|
| */ |
| package org.eclipse.modisco.java.composition.javaapplication.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.modisco.java.composition.javaapplication.*;
|
| import org.eclipse.modisco.kdm.source.extension.ASTNodeSourceRegion;
|
| import org.eclipse.modisco.kdm.source.extension.CodeUnit2File;
|
| import org.eclipse.modisco.omg.kdm.core.Element;
|
| import org.eclipse.modisco.omg.kdm.source.SourceRegion;
|
|
|
| /**
|
| * <!-- 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.modisco.java.composition.javaapplication.JavaapplicationPackage
|
| * @generated
|
| */
|
| public class JavaapplicationAdapterFactory extends AdapterFactoryImpl {
|
| /**
|
| * The cached model package.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| protected static JavaapplicationPackage modelPackage;
|
|
|
| /**
|
| * Creates an instance of the adapter factory.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public JavaapplicationAdapterFactory() {
|
| if (modelPackage == null) {
|
| modelPackage = JavaapplicationPackage.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 JavaapplicationSwitch<Adapter> modelSwitch =
|
| new JavaapplicationSwitch<Adapter>() {
|
| @Override
|
| public Adapter caseJavaNodeSourceRegion(JavaNodeSourceRegion object) {
|
| return createJavaNodeSourceRegionAdapter();
|
| }
|
| @Override
|
| public Adapter caseJava2File(Java2File object) {
|
| return createJava2FileAdapter();
|
| }
|
| @Override
|
| public Adapter caseJavaApplication(JavaApplication object) {
|
| return createJavaApplicationAdapter();
|
| }
|
| @Override
|
| public Adapter caseJava2Directory(Java2Directory object) {
|
| return createJava2DirectoryAdapter();
|
| }
|
| @Override
|
| public Adapter caseJavaJar2File(JavaJar2File object) {
|
| return createJavaJar2FileAdapter();
|
| }
|
| @Override
|
| public Adapter caseElement(Element object) {
|
| return createElementAdapter();
|
| }
|
| @Override
|
| public Adapter caseSourceRegion(SourceRegion object) {
|
| return createSourceRegionAdapter();
|
| }
|
| @Override
|
| public Adapter caseASTNodeSourceRegion(ASTNodeSourceRegion object) {
|
| return createASTNodeSourceRegionAdapter();
|
| }
|
| @Override
|
| public Adapter caseCodeUnit2File(CodeUnit2File object) {
|
| return createCodeUnit2FileAdapter();
|
| }
|
| @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.modisco.java.composition.javaapplication.JavaNodeSourceRegion <em>Java Node Source Region</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.modisco.java.composition.javaapplication.JavaNodeSourceRegion
|
| * @generated
|
| */
|
| public Adapter createJavaNodeSourceRegionAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.java.composition.javaapplication.Java2File <em>Java2 File</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.modisco.java.composition.javaapplication.Java2File
|
| * @generated
|
| */
|
| public Adapter createJava2FileAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.java.composition.javaapplication.JavaApplication <em>Java Application</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.modisco.java.composition.javaapplication.JavaApplication
|
| * @generated
|
| */
|
| public Adapter createJavaApplicationAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.java.composition.javaapplication.Java2Directory <em>Java2 Directory</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.modisco.java.composition.javaapplication.Java2Directory
|
| * @generated
|
| */
|
| public Adapter createJava2DirectoryAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.java.composition.javaapplication.JavaJar2File <em>Java Jar2 File</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.modisco.java.composition.javaapplication.JavaJar2File
|
| * @generated
|
| */
|
| public Adapter createJavaJar2FileAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.core.Element <em>Element</em>}'.
|
| * <!-- begin-user-doc -->
|
| * This default implementation returns null so that we can easily ignore cases;
|
| * it's useful to ignore a case when inheritance will catch all the cases anyway.
|
| * <!-- end-user-doc -->
|
| * @return the new adapter.
|
| * @see org.eclipse.modisco.omg.kdm.core.Element
|
| * @generated
|
| */
|
| public Adapter createElementAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.source.SourceRegion <em>Region</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.modisco.omg.kdm.source.SourceRegion
|
| * @generated
|
| */
|
| public Adapter createSourceRegionAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.kdm.source.extension.ASTNodeSourceRegion <em>AST Node Source Region</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.modisco.kdm.source.extension.ASTNodeSourceRegion
|
| * @generated
|
| */
|
| public Adapter createASTNodeSourceRegionAdapter() {
|
| return null;
|
| }
|
|
|
| /**
|
| * Creates a new adapter for an object of class '{@link org.eclipse.modisco.kdm.source.extension.CodeUnit2File <em>Code Unit2 File</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.modisco.kdm.source.extension.CodeUnit2File
|
| * @generated
|
| */
|
| public Adapter createCodeUnit2FileAdapter() {
|
| 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;
|
| }
|
|
|
| } //JavaapplicationAdapterFactory
|