| /******************************************************************************* |
| * Copyright (c) 2011-2019 EclipseSource Muenchen GmbH and others. |
| * |
| * 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: |
| * Eugen Neufeld - initial API and implementation |
| * Christian W. Damus - bug 543190 |
| *******************************************************************************/ |
| package org.eclipse.emf.ecp.view.validation.test.model.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.emf.ecp.view.validation.test.model.Book; |
| import org.eclipse.emf.ecp.view.validation.test.model.Computer; |
| import org.eclipse.emf.ecp.view.validation.test.model.Container; |
| import org.eclipse.emf.ecp.view.validation.test.model.Content; |
| import org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContainer; |
| import org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContent; |
| import org.eclipse.emf.ecp.view.validation.test.model.Librarian; |
| import org.eclipse.emf.ecp.view.validation.test.model.Library; |
| import org.eclipse.emf.ecp.view.validation.test.model.Mainboard; |
| import org.eclipse.emf.ecp.view.validation.test.model.Person; |
| import org.eclipse.emf.ecp.view.validation.test.model.PowerBlock; |
| import org.eclipse.emf.ecp.view.validation.test.model.Referencer; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableContent; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild2; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithValidation; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithoutValidation; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableObject; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableWithMultiplicity; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableWithUnique; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicity; |
| import org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicityConcrete; |
| import org.eclipse.emf.ecp.view.validation.test.model.TestPackage; |
| import org.eclipse.emf.ecp.view.validation.test.model.Writer; |
| |
| /** |
| * <!-- 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.emf.ecp.view.validation.test.model.TestPackage |
| * @generated |
| */ |
| public class TestAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| protected static TestPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public TestAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = TestPackage.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 TestSwitch<Adapter> modelSwitch = new TestSwitch<Adapter>() { |
| @Override |
| public Adapter caseLibrary(Library object) { |
| return createLibraryAdapter(); |
| } |
| |
| @Override |
| public Adapter caseWriter(Writer object) { |
| return createWriterAdapter(); |
| } |
| |
| @Override |
| public Adapter caseBook(Book object) { |
| return createBookAdapter(); |
| } |
| |
| @Override |
| public Adapter caseLibrarian(Librarian object) { |
| return createLibrarianAdapter(); |
| } |
| |
| @Override |
| public Adapter caseComputer(Computer object) { |
| return createComputerAdapter(); |
| } |
| |
| @Override |
| public Adapter caseMainboard(Mainboard object) { |
| return createMainboardAdapter(); |
| } |
| |
| @Override |
| public Adapter casePowerBlock(PowerBlock object) { |
| return createPowerBlockAdapter(); |
| } |
| |
| @Override |
| public Adapter caseContainer(Container object) { |
| return createContainerAdapter(); |
| } |
| |
| @Override |
| public Adapter caseContent(Content object) { |
| return createContentAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableWithMultiplicity(TableWithMultiplicity object) { |
| return createTableWithMultiplicityAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableContent(TableContent object) { |
| return createTableContentAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableContentWithoutValidation(TableContentWithoutValidation object) { |
| return createTableContentWithoutValidationAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableContentWithValidation(TableContentWithValidation object) { |
| return createTableContentWithValidationAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableWithoutMultiplicity(TableWithoutMultiplicity object) { |
| return createTableWithoutMultiplicityAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableWithUnique(TableWithUnique object) { |
| return createTableWithUniqueAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableContentWithInnerChild2(TableContentWithInnerChild2 object) { |
| return createTableContentWithInnerChild2Adapter(); |
| } |
| |
| @Override |
| public Adapter caseTableContentWithInnerChild(TableContentWithInnerChild object) { |
| return createTableContentWithInnerChildAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableWithoutMultiplicityConcrete(TableWithoutMultiplicityConcrete object) { |
| return createTableWithoutMultiplicityConcreteAdapter(); |
| } |
| |
| @Override |
| public Adapter caseReferencer(Referencer object) { |
| return createReferencerAdapter(); |
| } |
| |
| @Override |
| public Adapter caseCrossReferenceContainer(CrossReferenceContainer object) { |
| return createCrossReferenceContainerAdapter(); |
| } |
| |
| @Override |
| public Adapter caseCrossReferenceContent(CrossReferenceContent object) { |
| return createCrossReferenceContentAdapter(); |
| } |
| |
| @Override |
| public Adapter casePerson(Person object) { |
| return createPersonAdapter(); |
| } |
| |
| @Override |
| public Adapter caseTableObject(TableObject object) { |
| return createTableObjectAdapter(); |
| } |
| |
| @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.emf.ecp.view.validation.test.model.Library |
| * <em>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.emf.ecp.view.validation.test.model.Library |
| * @generated |
| */ |
| public Adapter createLibraryAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Writer |
| * <em>Writer</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.emf.ecp.view.validation.test.model.Writer |
| * @generated |
| */ |
| public Adapter createWriterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Book |
| * <em>Book</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.emf.ecp.view.validation.test.model.Book |
| * @generated |
| */ |
| public Adapter createBookAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Librarian |
| * <em>Librarian</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.emf.ecp.view.validation.test.model.Librarian |
| * @generated |
| */ |
| public Adapter createLibrarianAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Computer |
| * <em>Computer</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.emf.ecp.view.validation.test.model.Computer |
| * @generated |
| */ |
| public Adapter createComputerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Mainboard |
| * <em>Mainboard</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.emf.ecp.view.validation.test.model.Mainboard |
| * @generated |
| */ |
| public Adapter createMainboardAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.PowerBlock |
| * <em>Power Block</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.emf.ecp.view.validation.test.model.PowerBlock |
| * @generated |
| */ |
| public Adapter createPowerBlockAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Container |
| * <em>Container</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.emf.ecp.view.validation.test.model.Container |
| * @generated |
| */ |
| public Adapter createContainerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Content |
| * <em>Content</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.emf.ecp.view.validation.test.model.Content |
| * @generated |
| */ |
| public Adapter createContentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableWithMultiplicity <em>Table With Multiplicity</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.emf.ecp.view.validation.test.model.TableWithMultiplicity |
| * @generated |
| */ |
| public Adapter createTableWithMultiplicityAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.TableContent |
| * <em>Table Content</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.emf.ecp.view.validation.test.model.TableContent |
| * @generated |
| */ |
| public Adapter createTableContentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableContentWithoutValidation <em>Table Content Without |
| * Validation</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.emf.ecp.view.validation.test.model.TableContentWithoutValidation |
| * @generated |
| */ |
| public Adapter createTableContentWithoutValidationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableContentWithValidation <em>Table Content With |
| * Validation</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.emf.ecp.view.validation.test.model.TableContentWithValidation |
| * @generated |
| */ |
| public Adapter createTableContentWithValidationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicity <em>Table Without |
| * Multiplicity</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.emf.ecp.view.validation.test.model.TableWithoutMultiplicity |
| * @generated |
| */ |
| public Adapter createTableWithoutMultiplicityAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableWithUnique <em>Table With Unique</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.emf.ecp.view.validation.test.model.TableWithUnique |
| * @generated |
| */ |
| public Adapter createTableWithUniqueAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild2 <em>Table Content With Inner |
| * Child2</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.emf.ecp.view.validation.test.model.TableContentWithInnerChild2 |
| * @generated |
| */ |
| public Adapter createTableContentWithInnerChild2Adapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild <em>Table Content With Inner |
| * Child</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.emf.ecp.view.validation.test.model.TableContentWithInnerChild |
| * @generated |
| */ |
| public Adapter createTableContentWithInnerChildAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicityConcrete <em>Table Without |
| * Multiplicity Concrete</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.emf.ecp.view.validation.test.model.TableWithoutMultiplicityConcrete |
| * @generated |
| */ |
| public Adapter createTableWithoutMultiplicityConcreteAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Referencer |
| * <em>Referencer</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.emf.ecp.view.validation.test.model.Referencer |
| * @generated |
| */ |
| public Adapter createReferencerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContainer <em>Cross Reference |
| * Container</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.emf.ecp.view.validation.test.model.CrossReferenceContainer |
| * @generated |
| */ |
| public Adapter createCrossReferenceContainerAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class |
| * '{@link org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContent <em>Cross Reference Content</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.emf.ecp.view.validation.test.model.CrossReferenceContent |
| * @generated |
| */ |
| public Adapter createCrossReferenceContentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.Person |
| * <em>Person</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.emf.ecp.view.validation.test.model.Person |
| * @generated |
| */ |
| public Adapter createPersonAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.validation.test.model.TableObject |
| * <em>Table Object</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.emf.ecp.view.validation.test.model.TableObject |
| * @generated |
| */ |
| public Adapter createTableObjectAdapter() { |
| 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; |
| } |
| |
| } // TestAdapterFactory |