/**
* <copyright>
* </copyright>
*
* $Id$
*/
package activityDiagram.util;
import activityDiagram.*;
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;
/**
* <!-- 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 activityDiagram.ActivityDiagramPackage
* @generated
*/
public class ActivityDiagramAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ActivityDiagramPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActivityDiagramAdapterFactory() {
if (modelPackage == null) {
modelPackage = ActivityDiagramPackage.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 ActivityDiagramSwitch<Adapter> modelSwitch =
new ActivityDiagramSwitch<Adapter>() {
@Override
public Adapter caseactivityDiagramContainer(activityDiagramContainer object) {
return createactivityDiagramContainerAdapter();
}
@Override
public Adapter caseElement(Element object) {
return createElementAdapter();
}
@Override
public Adapter caseActivity(Activity object) {
return createActivityAdapter();
}
@Override
public Adapter caseAction(Action object) {
return createActionAdapter();
}
@Override
public Adapter caseControlFlow(ControlFlow object) {
return createControlFlowAdapter();
}
@Override
public Adapter caseSendSignal(SendSignal object) {
return createSendSignalAdapter();
}
@Override
public Adapter caseReceiveSignal(ReceiveSignal object) {
return createReceiveSignalAdapter();
}
@Override
public Adapter caseForkNode(ForkNode object) {
return createForkNodeAdapter();
}
@Override
public Adapter caseMergeNode(MergeNode object) {
return createMergeNodeAdapter();
}
@Override
public Adapter caseNode(Node object) {
return createNodeAdapter();
}
@Override
public Adapter caseDecisionNode(DecisionNode object) {
return createDecisionNodeAdapter();
}
@Override
public Adapter caseJoinNode(JoinNode object) {
return createJoinNodeAdapter();
}
@Override
public Adapter caseStartNode(StartNode object) {
return createStartNodeAdapter();
}
@Override
public Adapter caseEndNodeFlow(EndNodeFlow object) {
return createEndNodeFlowAdapter();
}
@Override
public Adapter caseEndNodeActivity(EndNodeActivity object) {
return createEndNodeActivityAdapter();
}
@Override
public Adapter caseEndNode(EndNode object) {
return createEndNodeAdapter();
}
@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 activityDiagram.activityDiagramContainer <em>activity Diagram 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 activityDiagram.activityDiagramContainer
* @generated
*/
public Adapter createactivityDiagramContainerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.Element <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 activityDiagram.Element
* @generated
*/
public Adapter createElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.Activity <em>Activity</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 activityDiagram.Activity
* @generated
*/
public Adapter createActivityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.Action <em>Action</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 activityDiagram.Action
* @generated
*/
public Adapter createActionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.ControlFlow <em>Control Flow</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 activityDiagram.ControlFlow
* @generated
*/
public Adapter createControlFlowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.SendSignal <em>Send Signal</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 activityDiagram.SendSignal
* @generated
*/
public Adapter createSendSignalAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.ReceiveSignal <em>Receive Signal</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 activityDiagram.ReceiveSignal
* @generated
*/
public Adapter createReceiveSignalAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.ForkNode <em>Fork Node</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 activityDiagram.ForkNode
* @generated
*/
public Adapter createForkNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.MergeNode <em>Merge Node</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 activityDiagram.MergeNode
* @generated
*/
public Adapter createMergeNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.Node <em>Node</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 activityDiagram.Node
* @generated
*/
public Adapter createNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.DecisionNode <em>Decision Node</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 activityDiagram.DecisionNode
* @generated
*/
public Adapter createDecisionNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.JoinNode <em>Join Node</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 activityDiagram.JoinNode
* @generated
*/
public Adapter createJoinNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.StartNode <em>Start Node</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 activityDiagram.StartNode
* @generated
*/
public Adapter createStartNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.EndNodeFlow <em>End Node Flow</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 activityDiagram.EndNodeFlow
* @generated
*/
public Adapter createEndNodeFlowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.EndNodeActivity <em>End Node Activity</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 activityDiagram.EndNodeActivity
* @generated
*/
public Adapter createEndNodeActivityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link activityDiagram.EndNode <em>End Node</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 activityDiagram.EndNode
* @generated
*/
public Adapter createEndNodeAdapter() {
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;
}
} //ActivityDiagramAdapterFactory