/** * Copyright (c) 2011 Obeo. * 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: * Obeo - initial API and implementation */ package org.obeonetwork.dsl.typeslibrary.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.obeonetwork.dsl.typeslibrary.*; /** * <!-- 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.obeonetwork.dsl.typeslibrary.TypesLibraryPackage * @generated */ public class TypesLibraryAdapterFactory extends AdapterFactoryImpl { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String copyright = "Copyright (c) 2011 Obeo.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Obeo - initial API and implementation"; /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static TypesLibraryPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypesLibraryAdapterFactory() { if (modelPackage == null) { modelPackage = TypesLibraryPackage.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 TypesLibrarySwitch<Adapter> modelSwitch = new TypesLibrarySwitch<Adapter>() { @Override public Adapter caseNativeTypesLibrary(NativeTypesLibrary object) { return createNativeTypesLibraryAdapter(); } @Override public Adapter caseTypeInstance(TypeInstance object) { return createTypeInstanceAdapter(); } @Override public Adapter caseNativeType(NativeType object) { return createNativeTypeAdapter(); } @Override public Adapter caseComplexNamedType(ComplexNamedType object) { return createComplexNamedTypeAdapter(); } @Override public Adapter caseSimpleNamedType(SimpleNamedType object) { return createSimpleNamedTypeAdapter(); } @Override public Adapter caseType(Type object) { return createTypeAdapter(); } @Override public Adapter caseUserDefinedType(UserDefinedType object) { return createUserDefinedTypeAdapter(); } @Override public Adapter caseUserDefinedTypeRef(UserDefinedTypeRef object) { return createUserDefinedTypeRefAdapter(); } @Override public Adapter caseUserDefinedTypesLibrary(UserDefinedTypesLibrary object) { return createUserDefinedTypesLibraryAdapter(); } @Override public Adapter caseTypesLibraryUser(TypesLibraryUser object) { return createTypesLibraryUserAdapter(); } @Override public Adapter caseTypesLibrary(TypesLibrary object) { return createTypesLibraryAdapter(); } @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.obeonetwork.dsl.typeslibrary.NativeTypesLibrary <em>Native Types 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.obeonetwork.dsl.typeslibrary.NativeTypesLibrary * @generated */ public Adapter createNativeTypesLibraryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.TypeInstance <em>Type Instance</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.obeonetwork.dsl.typeslibrary.TypeInstance * @generated */ public Adapter createTypeInstanceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.NativeType <em>Native 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.obeonetwork.dsl.typeslibrary.NativeType * @generated */ public Adapter createNativeTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.ComplexNamedType <em>Complex Named 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.obeonetwork.dsl.typeslibrary.ComplexNamedType * @generated */ public Adapter createComplexNamedTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.SimpleNamedType <em>Simple Named 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.obeonetwork.dsl.typeslibrary.SimpleNamedType * @generated */ public Adapter createSimpleNamedTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.Type <em>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.obeonetwork.dsl.typeslibrary.Type * @generated */ public Adapter createTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.UserDefinedType <em>User Defined 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.obeonetwork.dsl.typeslibrary.UserDefinedType * @generated */ public Adapter createUserDefinedTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.UserDefinedTypeRef <em>User Defined Type Ref</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.obeonetwork.dsl.typeslibrary.UserDefinedTypeRef * @generated */ public Adapter createUserDefinedTypeRefAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.UserDefinedTypesLibrary <em>User Defined Types 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.obeonetwork.dsl.typeslibrary.UserDefinedTypesLibrary * @generated */ public Adapter createUserDefinedTypesLibraryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.TypesLibraryUser <em>User</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.obeonetwork.dsl.typeslibrary.TypesLibraryUser * @generated */ public Adapter createTypesLibraryUserAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.typeslibrary.TypesLibrary <em>Types 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.obeonetwork.dsl.typeslibrary.TypesLibrary * @generated */ public Adapter createTypesLibraryAdapter() { 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; } } //TypesLibraryAdapterFactory