blob: 89878f2b092c0c09ae37210929f504d8b87d7077 [file] [log] [blame]
/*
* Copyright (c) 2011 CEA 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:
* CEA - initial API and implementation
*
*/
package org.eclipse.uml2.uml.profile.l2.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.uml2.uml.profile.l2.Auxiliary;
import org.eclipse.uml2.uml.profile.l2.Call;
import org.eclipse.uml2.uml.profile.l2.Create;
import org.eclipse.uml2.uml.profile.l2.Derive;
import org.eclipse.uml2.uml.profile.l2.Destroy;
import org.eclipse.uml2.uml.profile.l2.Document;
import org.eclipse.uml2.uml.profile.l2.Entity;
import org.eclipse.uml2.uml.profile.l2.Executable;
import org.eclipse.uml2.uml.profile.l2.File;
import org.eclipse.uml2.uml.profile.l2.Focus;
import org.eclipse.uml2.uml.profile.l2.Framework;
import org.eclipse.uml2.uml.profile.l2.Implement;
import org.eclipse.uml2.uml.profile.l2.ImplementationClass;
import org.eclipse.uml2.uml.profile.l2.Instantiate;
import org.eclipse.uml2.uml.profile.l2.L2Package;
import org.eclipse.uml2.uml.profile.l2.Library;
import org.eclipse.uml2.uml.profile.l2.Metaclass;
import org.eclipse.uml2.uml.profile.l2.ModelLibrary;
import org.eclipse.uml2.uml.profile.l2.Realization;
import org.eclipse.uml2.uml.profile.l2.Refine;
import org.eclipse.uml2.uml.profile.l2.Responsibility;
import org.eclipse.uml2.uml.profile.l2.Script;
import org.eclipse.uml2.uml.profile.l2.Send;
import org.eclipse.uml2.uml.profile.l2.Service;
import org.eclipse.uml2.uml.profile.l2.Source;
import org.eclipse.uml2.uml.profile.l2.Specification;
import org.eclipse.uml2.uml.profile.l2.Subsystem;
import org.eclipse.uml2.uml.profile.l2.Trace;
import org.eclipse.uml2.uml.profile.l2.Type;
import org.eclipse.uml2.uml.profile.l2.Utility;
/**
* <!-- 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.uml2.uml.profile.l2.L2Package
* @generated
*/
public class L2AdapterFactory
extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static L2Package modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public L2AdapterFactory() {
if (modelPackage == null) {
modelPackage = L2Package.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 L2Switch<Adapter> modelSwitch = new L2Switch<Adapter>() {
@Override
public Adapter caseAuxiliary(Auxiliary object) {
return createAuxiliaryAdapter();
}
@Override
public Adapter caseCall(Call object) {
return createCallAdapter();
}
@Override
public Adapter caseCreate(Create object) {
return createCreateAdapter();
}
@Override
public Adapter caseDerive(Derive object) {
return createDeriveAdapter();
}
@Override
public Adapter caseDestroy(Destroy object) {
return createDestroyAdapter();
}
@Override
public Adapter caseDocument(Document object) {
return createDocumentAdapter();
}
@Override
public Adapter caseFile(File object) {
return createFileAdapter();
}
@Override
public Adapter caseEntity(Entity object) {
return createEntityAdapter();
}
@Override
public Adapter caseExecutable(Executable object) {
return createExecutableAdapter();
}
@Override
public Adapter caseFocus(Focus object) {
return createFocusAdapter();
}
@Override
public Adapter caseFramework(Framework object) {
return createFrameworkAdapter();
}
@Override
public Adapter caseImplement(Implement object) {
return createImplementAdapter();
}
@Override
public Adapter caseImplementationClass(ImplementationClass object) {
return createImplementationClassAdapter();
}
@Override
public Adapter caseInstantiate(Instantiate object) {
return createInstantiateAdapter();
}
@Override
public Adapter caseLibrary(Library object) {
return createLibraryAdapter();
}
@Override
public Adapter caseMetaclass(Metaclass object) {
return createMetaclassAdapter();
}
@Override
public Adapter caseModelLibrary(ModelLibrary object) {
return createModelLibraryAdapter();
}
@Override
public Adapter caseProcess(
org.eclipse.uml2.uml.profile.l2.Process object) {
return createProcessAdapter();
}
@Override
public Adapter caseRealization(Realization object) {
return createRealizationAdapter();
}
@Override
public Adapter caseRefine(Refine object) {
return createRefineAdapter();
}
@Override
public Adapter caseResponsibility(Responsibility object) {
return createResponsibilityAdapter();
}
@Override
public Adapter caseScript(Script object) {
return createScriptAdapter();
}
@Override
public Adapter caseSend(Send object) {
return createSendAdapter();
}
@Override
public Adapter caseService(Service object) {
return createServiceAdapter();
}
@Override
public Adapter caseSource(Source object) {
return createSourceAdapter();
}
@Override
public Adapter caseSpecification(Specification object) {
return createSpecificationAdapter();
}
@Override
public Adapter caseSubsystem(Subsystem object) {
return createSubsystemAdapter();
}
@Override
public Adapter caseTrace(Trace object) {
return createTraceAdapter();
}
@Override
public Adapter caseType(Type object) {
return createTypeAdapter();
}
@Override
public Adapter caseUtility(Utility object) {
return createUtilityAdapter();
}
@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.uml2.uml.profile.l2.Auxiliary <em>Auxiliary</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.uml2.uml.profile.l2.Auxiliary
* @generated
*/
public Adapter createAuxiliaryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Call <em>Call</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.uml2.uml.profile.l2.Call
* @generated
*/
public Adapter createCallAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Create <em>Create</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.uml2.uml.profile.l2.Create
* @generated
*/
public Adapter createCreateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Derive <em>Derive</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.uml2.uml.profile.l2.Derive
* @generated
*/
public Adapter createDeriveAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Destroy <em>Destroy</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.uml2.uml.profile.l2.Destroy
* @generated
*/
public Adapter createDestroyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Document <em>Document</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.uml2.uml.profile.l2.Document
* @generated
*/
public Adapter createDocumentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.File <em>File</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.uml2.uml.profile.l2.File
* @generated
*/
public Adapter createFileAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Entity <em>Entity</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.uml2.uml.profile.l2.Entity
* @generated
*/
public Adapter createEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Executable <em>Executable</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.uml2.uml.profile.l2.Executable
* @generated
*/
public Adapter createExecutableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Focus <em>Focus</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.uml2.uml.profile.l2.Focus
* @generated
*/
public Adapter createFocusAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Framework <em>Framework</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.uml2.uml.profile.l2.Framework
* @generated
*/
public Adapter createFrameworkAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Implement <em>Implement</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.uml2.uml.profile.l2.Implement
* @generated
*/
public Adapter createImplementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.ImplementationClass <em>Implementation Class</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.uml2.uml.profile.l2.ImplementationClass
* @generated
*/
public Adapter createImplementationClassAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Instantiate <em>Instantiate</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.uml2.uml.profile.l2.Instantiate
* @generated
*/
public Adapter createInstantiateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.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.uml2.uml.profile.l2.Library
* @generated
*/
public Adapter createLibraryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Metaclass <em>Metaclass</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.uml2.uml.profile.l2.Metaclass
* @generated
*/
public Adapter createMetaclassAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.ModelLibrary <em>Model 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.uml2.uml.profile.l2.ModelLibrary
* @generated
*/
public Adapter createModelLibraryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Process <em>Process</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.uml2.uml.profile.l2.Process
* @generated
*/
public Adapter createProcessAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Realization <em>Realization</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.uml2.uml.profile.l2.Realization
* @generated
*/
public Adapter createRealizationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Refine <em>Refine</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.uml2.uml.profile.l2.Refine
* @generated
*/
public Adapter createRefineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Responsibility <em>Responsibility</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.uml2.uml.profile.l2.Responsibility
* @generated
*/
public Adapter createResponsibilityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Script <em>Script</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.uml2.uml.profile.l2.Script
* @generated
*/
public Adapter createScriptAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Send <em>Send</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.uml2.uml.profile.l2.Send
* @generated
*/
public Adapter createSendAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Service <em>Service</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.uml2.uml.profile.l2.Service
* @generated
*/
public Adapter createServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Source <em>Source</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.uml2.uml.profile.l2.Source
* @generated
*/
public Adapter createSourceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Specification <em>Specification</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.uml2.uml.profile.l2.Specification
* @generated
*/
public Adapter createSpecificationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Subsystem <em>Subsystem</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.uml2.uml.profile.l2.Subsystem
* @generated
*/
public Adapter createSubsystemAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.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.uml2.uml.profile.l2.Trace
* @generated
*/
public Adapter createTraceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.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.eclipse.uml2.uml.profile.l2.Type
* @generated
*/
public Adapter createTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.uml2.uml.profile.l2.Utility <em>Utility</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.uml2.uml.profile.l2.Utility
* @generated
*/
public Adapter createUtilityAdapter() {
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;
}
} //L2AdapterFactory