/** * <copyright> * </copyright> * * $Id$ */ package orgomg.cwm.resource.relational.util; import java.util.List; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import orgomg.cwm.foundation.datatypes.TypeAlias; import orgomg.cwm.foundation.keysindexes.Index; import orgomg.cwm.foundation.keysindexes.IndexedFeature; import orgomg.cwm.foundation.keysindexes.KeyRelationship; import orgomg.cwm.foundation.keysindexes.UniqueKey; import orgomg.cwm.objectmodel.behavioral.BehavioralFeature; import orgomg.cwm.objectmodel.behavioral.Method; import orgomg.cwm.objectmodel.behavioral.Parameter; import orgomg.cwm.objectmodel.core.Attribute; import orgomg.cwm.objectmodel.core.Classifier; import orgomg.cwm.objectmodel.core.Constraint; import orgomg.cwm.objectmodel.core.DataType; import orgomg.cwm.objectmodel.core.Element; import orgomg.cwm.objectmodel.core.Feature; import orgomg.cwm.objectmodel.core.ModelElement; import orgomg.cwm.objectmodel.core.Namespace; import orgomg.cwm.objectmodel.core.StructuralFeature; import orgomg.cwm.objectmodel.instance.DataValue; import orgomg.cwm.objectmodel.instance.Extent; import orgomg.cwm.objectmodel.instance.Instance; import orgomg.cwm.resource.relational.*; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. * It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the <code>caseXXX</code> method for each class of the model, * starting with the actual class of the object * and proceeding up the inheritance hierarchy * until a non-null result is returned, * which is the result of the switch. * <!-- end-user-doc --> * @see orgomg.cwm.resource.relational.RelationalPackage * @generated */ public class RelationalSwitch<T> { /** * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static RelationalPackage modelPackage; /** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public RelationalSwitch() { if (modelPackage == null) { modelPackage = RelationalPackage.eINSTANCE; } } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ public T doSwitch(EObject theEObject) { return doSwitch(theEObject.eClass(), theEObject); } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected T doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); } else { List<EClass> eSuperTypes = theEClass.getESuperTypes(); return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); } } /** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { case RelationalPackage.CATALOG: { Catalog catalog = (Catalog)theEObject; T result = caseCatalog(catalog); if (result == null) result = casePackage(catalog); if (result == null) result = caseNamespace(catalog); if (result == null) result = caseModelElement(catalog); if (result == null) result = caseElement(catalog); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SCHEMA: { Schema schema = (Schema)theEObject; T result = caseSchema(schema); if (result == null) result = casePackage(schema); if (result == null) result = caseNamespace(schema); if (result == null) result = caseModelElement(schema); if (result == null) result = caseElement(schema); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.COLUMN_SET: { ColumnSet columnSet = (ColumnSet)theEObject; T result = caseColumnSet(columnSet); if (result == null) result = caseClass(columnSet); if (result == null) result = caseClassifier(columnSet); if (result == null) result = caseNamespace(columnSet); if (result == null) result = caseModelElement(columnSet); if (result == null) result = caseElement(columnSet); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.NAMED_COLUMN_SET: { NamedColumnSet namedColumnSet = (NamedColumnSet)theEObject; T result = caseNamedColumnSet(namedColumnSet); if (result == null) result = caseColumnSet(namedColumnSet); if (result == null) result = caseClass(namedColumnSet); if (result == null) result = caseClassifier(namedColumnSet); if (result == null) result = caseNamespace(namedColumnSet); if (result == null) result = caseModelElement(namedColumnSet); if (result == null) result = caseElement(namedColumnSet); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.TABLE: { Table table = (Table)theEObject; T result = caseTable(table); if (result == null) result = caseNamedColumnSet(table); if (result == null) result = caseColumnSet(table); if (result == null) result = caseClass(table); if (result == null) result = caseClassifier(table); if (result == null) result = caseNamespace(table); if (result == null) result = caseModelElement(table); if (result == null) result = caseElement(table); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.VIEW: { View view = (View)theEObject; T result = caseView(view); if (result == null) result = caseNamedColumnSet(view); if (result == null) result = caseColumnSet(view); if (result == null) result = caseClass(view); if (result == null) result = caseClassifier(view); if (result == null) result = caseNamespace(view); if (result == null) result = caseModelElement(view); if (result == null) result = caseElement(view); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.QUERY_COLUMN_SET: { QueryColumnSet queryColumnSet = (QueryColumnSet)theEObject; T result = caseQueryColumnSet(queryColumnSet); if (result == null) result = caseColumnSet(queryColumnSet); if (result == null) result = caseClass(queryColumnSet); if (result == null) result = caseClassifier(queryColumnSet); if (result == null) result = caseNamespace(queryColumnSet); if (result == null) result = caseModelElement(queryColumnSet); if (result == null) result = caseElement(queryColumnSet); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_DATA_TYPE: { SQLDataType sqlDataType = (SQLDataType)theEObject; T result = caseSQLDataType(sqlDataType); if (result == null) result = caseClassifier(sqlDataType); if (result == null) result = caseNamespace(sqlDataType); if (result == null) result = caseModelElement(sqlDataType); if (result == null) result = caseElement(sqlDataType); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_DISTINCT_TYPE: { SQLDistinctType sqlDistinctType = (SQLDistinctType)theEObject; T result = caseSQLDistinctType(sqlDistinctType); if (result == null) result = caseSQLDataType(sqlDistinctType); if (result == null) result = caseTypeAlias(sqlDistinctType); if (result == null) result = caseDataType(sqlDistinctType); if (result == null) result = caseClassifier(sqlDistinctType); if (result == null) result = caseNamespace(sqlDistinctType); if (result == null) result = caseModelElement(sqlDistinctType); if (result == null) result = caseElement(sqlDistinctType); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_SIMPLE_TYPE: { SQLSimpleType sqlSimpleType = (SQLSimpleType)theEObject; T result = caseSQLSimpleType(sqlSimpleType); if (result == null) result = caseSQLDataType(sqlSimpleType); if (result == null) result = caseDataType(sqlSimpleType); if (result == null) result = caseClassifier(sqlSimpleType); if (result == null) result = caseNamespace(sqlSimpleType); if (result == null) result = caseModelElement(sqlSimpleType); if (result == null) result = caseElement(sqlSimpleType); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_STRUCTURED_TYPE: { SQLStructuredType sqlStructuredType = (SQLStructuredType)theEObject; T result = caseSQLStructuredType(sqlStructuredType); if (result == null) result = caseClass(sqlStructuredType); if (result == null) result = caseSQLDataType(sqlStructuredType); if (result == null) result = caseClassifier(sqlStructuredType); if (result == null) result = caseNamespace(sqlStructuredType); if (result == null) result = caseModelElement(sqlStructuredType); if (result == null) result = caseElement(sqlStructuredType); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.COLUMN: { Column column = (Column)theEObject; T result = caseColumn(column); if (result == null) result = caseAttribute(column); if (result == null) result = caseStructuralFeature(column); if (result == null) result = caseFeature(column); if (result == null) result = caseModelElement(column); if (result == null) result = caseElement(column); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.PROCEDURE: { Procedure procedure = (Procedure)theEObject; T result = caseProcedure(procedure); if (result == null) result = caseMethod(procedure); if (result == null) result = caseBehavioralFeature(procedure); if (result == null) result = caseFeature(procedure); if (result == null) result = caseModelElement(procedure); if (result == null) result = caseElement(procedure); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.TRIGGER: { Trigger trigger = (Trigger)theEObject; T result = caseTrigger(trigger); if (result == null) result = caseModelElement(trigger); if (result == null) result = caseElement(trigger); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_INDEX: { SQLIndex sqlIndex = (SQLIndex)theEObject; T result = caseSQLIndex(sqlIndex); if (result == null) result = caseIndex(sqlIndex); if (result == null) result = caseModelElement(sqlIndex); if (result == null) result = caseElement(sqlIndex); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.UNIQUE_CONSTRAINT: { UniqueConstraint uniqueConstraint = (UniqueConstraint)theEObject; T result = caseUniqueConstraint(uniqueConstraint); if (result == null) result = caseUniqueKey(uniqueConstraint); if (result == null) result = caseModelElement(uniqueConstraint); if (result == null) result = caseElement(uniqueConstraint); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.FOREIGN_KEY: { ForeignKey foreignKey = (ForeignKey)theEObject; T result = caseForeignKey(foreignKey); if (result == null) result = caseKeyRelationship(foreignKey); if (result == null) result = caseModelElement(foreignKey); if (result == null) result = caseElement(foreignKey); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_INDEX_COLUMN: { SQLIndexColumn sqlIndexColumn = (SQLIndexColumn)theEObject; T result = caseSQLIndexColumn(sqlIndexColumn); if (result == null) result = caseIndexedFeature(sqlIndexColumn); if (result == null) result = caseModelElement(sqlIndexColumn); if (result == null) result = caseElement(sqlIndexColumn); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.PRIMARY_KEY: { PrimaryKey primaryKey = (PrimaryKey)theEObject; T result = casePrimaryKey(primaryKey); if (result == null) result = caseUniqueConstraint(primaryKey); if (result == null) result = caseUniqueKey(primaryKey); if (result == null) result = caseModelElement(primaryKey); if (result == null) result = caseElement(primaryKey); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.ROW: { Row row = (Row)theEObject; T result = caseRow(row); if (result == null) result = caseObject(row); if (result == null) result = caseInstance(row); if (result == null) result = caseModelElement(row); if (result == null) result = caseElement(row); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.COLUMN_VALUE: { ColumnValue columnValue = (ColumnValue)theEObject; T result = caseColumnValue(columnValue); if (result == null) result = caseDataValue(columnValue); if (result == null) result = caseInstance(columnValue); if (result == null) result = caseModelElement(columnValue); if (result == null) result = caseElement(columnValue); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.CHECK_CONSTRAINT: { CheckConstraint checkConstraint = (CheckConstraint)theEObject; T result = caseCheckConstraint(checkConstraint); if (result == null) result = caseConstraint(checkConstraint); if (result == null) result = caseModelElement(checkConstraint); if (result == null) result = caseElement(checkConstraint); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.ROW_SET: { RowSet rowSet = (RowSet)theEObject; T result = caseRowSet(rowSet); if (result == null) result = caseExtent(rowSet); if (result == null) result = casePackage(rowSet); if (result == null) result = caseNamespace(rowSet); if (result == null) result = caseModelElement(rowSet); if (result == null) result = caseElement(rowSet); if (result == null) result = defaultCase(theEObject); return result; } case RelationalPackage.SQL_PARAMETER: { SQLParameter sqlParameter = (SQLParameter)theEObject; T result = caseSQLParameter(sqlParameter); if (result == null) result = caseParameter(sqlParameter); if (result == null) result = caseModelElement(sqlParameter); if (result == null) result = caseElement(sqlParameter); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of '<em>Catalog</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Catalog</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCatalog(Catalog object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Schema</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Schema</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSchema(Schema object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Column Set</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Column Set</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseColumnSet(ColumnSet object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Named Column Set</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Named Column Set</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNamedColumnSet(NamedColumnSet object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Table</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Table</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTable(Table object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>View</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>View</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseView(View object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Query Column Set</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Query Column Set</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseQueryColumnSet(QueryColumnSet object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Data Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Data Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLDataType(SQLDataType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Distinct Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Distinct Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLDistinctType(SQLDistinctType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Simple Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Simple Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLSimpleType(SQLSimpleType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Structured Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Structured Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLStructuredType(SQLStructuredType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Column</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Column</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseColumn(Column object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Procedure</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Procedure</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseProcedure(Procedure object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Trigger</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Trigger</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTrigger(Trigger object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Index</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Index</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLIndex(SQLIndex object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Unique Constraint</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Unique Constraint</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseUniqueConstraint(UniqueConstraint object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Foreign Key</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Foreign Key</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseForeignKey(ForeignKey object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Index Column</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Index Column</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLIndexColumn(SQLIndexColumn object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Primary Key</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Primary Key</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePrimaryKey(PrimaryKey object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Row</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Row</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseRow(Row object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Column Value</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Column Value</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseColumnValue(ColumnValue object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Check Constraint</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Check Constraint</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCheckConstraint(CheckConstraint object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Row Set</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Row Set</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseRowSet(RowSet object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>SQL Parameter</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>SQL Parameter</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSQLParameter(SQLParameter object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Element</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseElement(Element object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Model Element</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Model Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseModelElement(ModelElement object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Namespace</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Namespace</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNamespace(Namespace object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Package</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Package</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePackage(orgomg.cwm.objectmodel.core.Package object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Classifier</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Classifier</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseClassifier(Classifier object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Class</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Class</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseClass(orgomg.cwm.objectmodel.core.Class object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Data Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Data Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDataType(DataType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Type Alias</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Type Alias</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTypeAlias(TypeAlias object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Feature</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Feature</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseFeature(Feature object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Structural Feature</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Structural Feature</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStructuralFeature(StructuralFeature object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Attribute</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Attribute</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAttribute(Attribute object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Feature</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Feature</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBehavioralFeature(BehavioralFeature object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Method</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Method</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseMethod(Method object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Index</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Index</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIndex(Index object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Unique Key</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Unique Key</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseUniqueKey(UniqueKey object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Key Relationship</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Key Relationship</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseKeyRelationship(KeyRelationship object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Indexed Feature</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Indexed Feature</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIndexedFeature(IndexedFeature object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Instance</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Instance</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseInstance(Instance object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Object</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Object</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseObject(orgomg.cwm.objectmodel.instance.Object object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Data Value</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Data Value</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDataValue(DataValue object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Constraint</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Constraint</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseConstraint(Constraint object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Extent</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Extent</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseExtent(Extent object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseParameter(Parameter object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>EObject</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ public T defaultCase(EObject object) { return null; } } //RelationalSwitch