/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2007 Matthias Braeuer (braeuer.matthias@web.de). * * All rights reserved. * * * * This work was done as a project at the Chair for Software Technology, * * Dresden University Of Technology, Germany (http://st.inf.tu-dresden.de). * * It is understood that any modification not identified as such is not * * covered by the preceding statement. * * * * This work is free software; you can redistribute it and/or modify it * * under the terms of the GNU Library General Public License as published * * by the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This work is distributed in the hope that it will be useful, but WITHOUT * * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public * * License for more details. * * * * You should have received a copy of the GNU Library General Public License * * along with this library; if not, you can view it online at * * http://www.fsf.org/licensing/licenses/gpl.html. * * * * To submit a bug report, send a comment, or get the latest news on this * * project, please visit the website: http://dresden-ocl.sourceforge.net. * * For more information on OCL and related projects visit the OCL Portal: * * http://st.inf.tu-dresden.de/ocl * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $Id$ */ package org.dresdenocl.essentialocl.types.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.dresdenocl.essentialocl.types.*; import org.dresdenocl.essentialocl.types.AnyType; import org.dresdenocl.essentialocl.types.BagType; import org.dresdenocl.essentialocl.types.CollectionType; import org.dresdenocl.essentialocl.types.InvalidType; import org.dresdenocl.essentialocl.types.OclLibrary; import org.dresdenocl.essentialocl.types.OrderedSetType; import org.dresdenocl.essentialocl.types.SequenceType; import org.dresdenocl.essentialocl.types.SetType; import org.dresdenocl.essentialocl.types.TupleType; import org.dresdenocl.essentialocl.types.TypeType; import org.dresdenocl.essentialocl.types.VoidType; import org.dresdenocl.essentialocl.types.impl.TypesPackageImpl; import org.dresdenocl.pivotmodel.ConstrainableElement; import org.dresdenocl.pivotmodel.GenericElement; import org.dresdenocl.pivotmodel.NamedElement; import org.dresdenocl.pivotmodel.Type; /** * <!-- 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.dresdenocl.essentialocl.types.impl.TypesPackageImpl * @generated */ public class TypesAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static TypesPackageImpl modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypesAdapterFactory() { if (modelPackage == null) { modelPackage = TypesPackageImpl.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 TypesSwitch<Adapter> modelSwitch = new TypesSwitch<Adapter>() { @Override public Adapter caseBagType(BagType object) { return createBagTypeAdapter(); } @Override public Adapter caseTupleType(TupleType object) { return createTupleTypeAdapter(); } @Override public Adapter caseCollectionType(CollectionType object) { return createCollectionTypeAdapter(); } @Override public Adapter caseInvalidType(InvalidType object) { return createInvalidTypeAdapter(); } @Override public Adapter caseOrderedSetType(OrderedSetType object) { return createOrderedSetTypeAdapter(); } @Override public Adapter caseSequenceType(SequenceType object) { return createSequenceTypeAdapter(); } @Override public Adapter caseSetType(SetType object) { return createSetTypeAdapter(); } @Override public Adapter caseVoidType(VoidType object) { return createVoidTypeAdapter(); } @Override public Adapter caseTypeType(TypeType object) { return createTypeTypeAdapter(); } @Override public Adapter caseOclLibrary(OclLibrary object) { return createOclLibraryAdapter(); } @Override public Adapter caseAnyType(AnyType object) { return createAnyTypeAdapter(); } @Override public Adapter caseNamedElement(NamedElement object) { return createNamedElementAdapter(); } @Override public Adapter caseConstrainableElement(ConstrainableElement object) { return createConstrainableElementAdapter(); } @Override public Adapter caseGenericElement(GenericElement object) { return createGenericElementAdapter(); } @Override public Adapter caseType(Type object) { return createTypeAdapter(); } @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.dresdenocl.essentialocl.types.BagType <em>Bag 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.dresdenocl.essentialocl.types.BagType * @generated */ public Adapter createBagTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.TupleType <em>Tuple 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.dresdenocl.essentialocl.types.TupleType * @generated */ public Adapter createTupleTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.CollectionType <em>Collection 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.dresdenocl.essentialocl.types.CollectionType * @generated */ public Adapter createCollectionTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.InvalidType <em>Invalid 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.dresdenocl.essentialocl.types.InvalidType * @generated */ public Adapter createInvalidTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.OrderedSetType <em>Ordered Set 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.dresdenocl.essentialocl.types.OrderedSetType * @generated */ public Adapter createOrderedSetTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.SequenceType <em>Sequence 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.dresdenocl.essentialocl.types.SequenceType * @generated */ public Adapter createSequenceTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.SetType <em>Set 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.dresdenocl.essentialocl.types.SetType * @generated */ public Adapter createSetTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.VoidType <em>Void 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.dresdenocl.essentialocl.types.VoidType * @generated */ public Adapter createVoidTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.TypeType <em>Type 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.dresdenocl.essentialocl.types.TypeType * @generated */ public Adapter createTypeTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.OclLibrary <em>Ocl 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.dresdenocl.essentialocl.types.OclLibrary * @generated */ public Adapter createOclLibraryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.essentialocl.types.AnyType <em>Any 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.dresdenocl.essentialocl.types.AnyType * @generated */ public Adapter createAnyTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.pivotmodel.NamedElement <em>Named 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.dresdenocl.pivotmodel.NamedElement * @generated */ public Adapter createNamedElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.pivotmodel.ConstrainableElement <em>Constrainable 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.dresdenocl.pivotmodel.ConstrainableElement * @generated */ public Adapter createConstrainableElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.pivotmodel.GenericElement <em>Generic 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.dresdenocl.pivotmodel.GenericElement * @generated */ public Adapter createGenericElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.dresdenocl.pivotmodel.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.dresdenocl.pivotmodel.Type * @generated */ public Adapter createTypeAdapter() { 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; } } //TypesAdapterFactory