/**
* 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.database.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.database.*;
import org.obeonetwork.dsl.typeslibrary.TypesLibraryUser;
/**
* <!-- 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.database.DatabasePackage
* @generated
*/
public class DatabaseAdapterFactory 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 DatabasePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DatabaseAdapterFactory() {
if (modelPackage == null) {
modelPackage = DatabasePackage.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 DatabaseSwitch<Adapter> modelSwitch =
new DatabaseSwitch<Adapter>() {
@Override
public Adapter caseNamedElement(NamedElement object) {
return createNamedElementAdapter();
}
@Override
public Adapter caseDataBase(DataBase object) {
return createDataBaseAdapter();
}
@Override
public Adapter caseAbstractTable(AbstractTable object) {
return createAbstractTableAdapter();
}
@Override
public Adapter caseColumn(Column object) {
return createColumnAdapter();
}
@Override
public Adapter caseIndex(Index object) {
return createIndexAdapter();
}
@Override
public Adapter caseView(View object) {
return createViewAdapter();
}
@Override
public Adapter caseTable(Table object) {
return createTableAdapter();
}
@Override
public Adapter casePrimaryKey(PrimaryKey object) {
return createPrimaryKeyAdapter();
}
@Override
public Adapter caseForeignKey(ForeignKey object) {
return createForeignKeyAdapter();
}
@Override
public Adapter caseForeignKeyElement(ForeignKeyElement object) {
return createForeignKeyElementAdapter();
}
@Override
public Adapter caseIndexElement(IndexElement object) {
return createIndexElementAdapter();
}
@Override
public Adapter caseConstraint(Constraint object) {
return createConstraintAdapter();
}
@Override
public Adapter caseDatabaseElement(DatabaseElement object) {
return createDatabaseElementAdapter();
}
@Override
public Adapter caseSchema(Schema object) {
return createSchemaAdapter();
}
@Override
public Adapter caseSequence(Sequence object) {
return createSequenceAdapter();
}
@Override
public Adapter caseTableContainer(TableContainer object) {
return createTableContainerAdapter();
}
@Override
public Adapter caseTypesLibraryUser(TypesLibraryUser object) {
return createTypesLibraryUserAdapter();
}
@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.database.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.obeonetwork.dsl.database.NamedElement
* @generated
*/
public Adapter createNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.DataBase <em>Data Base</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.database.DataBase
* @generated
*/
public Adapter createDataBaseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.AbstractTable <em>Abstract Table</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.database.AbstractTable
* @generated
*/
public Adapter createAbstractTableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Column <em>Column</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.database.Column
* @generated
*/
public Adapter createColumnAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Index <em>Index</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.database.Index
* @generated
*/
public Adapter createIndexAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.View <em>View</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.database.View
* @generated
*/
public Adapter createViewAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Table <em>Table</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.database.Table
* @generated
*/
public Adapter createTableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.PrimaryKey <em>Primary Key</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.database.PrimaryKey
* @generated
*/
public Adapter createPrimaryKeyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.ForeignKey <em>Foreign Key</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.database.ForeignKey
* @generated
*/
public Adapter createForeignKeyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.ForeignKeyElement <em>Foreign Key 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.obeonetwork.dsl.database.ForeignKeyElement
* @generated
*/
public Adapter createForeignKeyElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.IndexElement <em>Index 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.obeonetwork.dsl.database.IndexElement
* @generated
*/
public Adapter createIndexElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Constraint <em>Constraint</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.database.Constraint
* @generated
*/
public Adapter createConstraintAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.DatabaseElement <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.obeonetwork.dsl.database.DatabaseElement
* @generated
*/
public Adapter createDatabaseElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Schema <em>Schema</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.database.Schema
* @generated
*/
public Adapter createSchemaAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.Sequence <em>Sequence</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.database.Sequence
* @generated
*/
public Adapter createSequenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.database.TableContainer <em>Table 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.obeonetwork.dsl.database.TableContainer
* @generated
*/
public Adapter createTableContainerAdapter() {
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 the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //DatabaseAdapterFactory