blob: 57f30ff3c221851ca041ede9bf54ee336d6ca184 [file] [log] [blame]
/**
* Copyright (c) 2007 Borland Software Corporation
*
* 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:
* Borland Software Corporation - initial API and implementation
*
* $Id: TraceAdapterFactory.java,v 1.1 2008/04/07 19:00:39 aigdalov Exp $
*/
package org.eclipse.m2m.internal.qvt.oml.trace.util;
import java.util.Map;
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.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.m2m.internal.qvt.oml.expressions.MappingOperation;
import org.eclipse.m2m.internal.qvt.oml.trace.*;
/**
* <!-- 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.m2m.internal.qvt.oml.trace.TracePackage
* @generated
*/
public class TraceAdapterFactory extends AdapterFactoryImpl {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright (c) 2007 Borland Software Corporation\r\n\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 Borland Software Corporation - initial API and implementation";
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static TracePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TraceAdapterFactory() {
if (modelPackage == null) {
modelPackage = TracePackage.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 TraceSwitch<Adapter> modelSwitch =
new TraceSwitch<Adapter>() {
@Override
public Adapter caseTrace(Trace object) {
return createTraceAdapter();
}
@Override
public Adapter caseTraceRecord(TraceRecord object) {
return createTraceRecordAdapter();
}
@Override
public Adapter caseVarParameterValue(VarParameterValue object) {
return createVarParameterValueAdapter();
}
@Override
public Adapter caseMappingOperationToTraceRecordMapEntry(Map.Entry<MappingOperation, EList<TraceRecord>> object) {
return createMappingOperationToTraceRecordMapEntryAdapter();
}
@Override
public Adapter caseEMappingOperation(EMappingOperation object) {
return createEMappingOperationAdapter();
}
@Override
public Adapter caseEValue(EValue object) {
return createEValueAdapter();
}
@Override
public Adapter caseETuplePartValue(ETuplePartValue object) {
return createETuplePartValueAdapter();
}
@Override
public Adapter caseEMappingContext(EMappingContext object) {
return createEMappingContextAdapter();
}
@Override
public Adapter caseEMappingParameters(EMappingParameters object) {
return createEMappingParametersAdapter();
}
@Override
public Adapter caseEMappingResults(EMappingResults object) {
return createEMappingResultsAdapter();
}
@Override
public Adapter caseObjectToTraceRecordMapEntry(Map.Entry<Object, EList<TraceRecord>> object) {
return createObjectToTraceRecordMapEntryAdapter();
}
@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.m2m.internal.qvt.oml.trace.Trace <em>Trace</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.m2m.internal.qvt.oml.trace.Trace
* @generated
*/
public Adapter createTraceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.TraceRecord <em>Record</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.m2m.internal.qvt.oml.trace.TraceRecord
* @generated
*/
public Adapter createTraceRecordAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.VarParameterValue <em>Var Parameter Value</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.m2m.internal.qvt.oml.trace.VarParameterValue
* @generated
*/
public Adapter createVarParameterValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>Mapping Operation To Trace Record Map Entry</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 java.util.Map.Entry
* @generated
*/
public Adapter createMappingOperationToTraceRecordMapEntryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.EMappingOperation <em>EMapping Operation</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.m2m.internal.qvt.oml.trace.EMappingOperation
* @generated
*/
public Adapter createEMappingOperationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.EValue <em>EValue</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.m2m.internal.qvt.oml.trace.EValue
* @generated
*/
public Adapter createEValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.ETuplePartValue <em>ETuple Part Value</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.m2m.internal.qvt.oml.trace.ETuplePartValue
* @generated
*/
public Adapter createETuplePartValueAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.EMappingContext <em>EMapping Context</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.m2m.internal.qvt.oml.trace.EMappingContext
* @generated
*/
public Adapter createEMappingContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.EMappingParameters <em>EMapping Parameters</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.m2m.internal.qvt.oml.trace.EMappingParameters
* @generated
*/
public Adapter createEMappingParametersAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.m2m.internal.qvt.oml.trace.EMappingResults <em>EMapping Results</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.m2m.internal.qvt.oml.trace.EMappingResults
* @generated
*/
public Adapter createEMappingResultsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>Object To Trace Record Map Entry</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 java.util.Map.Entry
* @generated
*/
public Adapter createObjectToTraceRecordMapEntryAdapter() {
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;
}
} //TraceAdapterFactory