blob: eac7a9febeef770ae7f0133f1fcac61052f04b36 [file] [log] [blame]
/**
*/
package flowchart.impl;
import flowchart.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class FlowchartFactoryImpl extends EFactoryImpl implements FlowchartFactory
{
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static FlowchartFactory init()
{
try
{
FlowchartFactory theFlowchartFactory = (FlowchartFactory)EPackage.Registry.INSTANCE.getEFactory("flowchart");
if (theFlowchartFactory != null)
{
return theFlowchartFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new FlowchartFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FlowchartFactoryImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass)
{
switch (eClass.getClassifierID())
{
case FlowchartPackage.FLOWCHART: return createFlowchart();
case FlowchartPackage.TRANSITION: return createTransition();
case FlowchartPackage.SUBFLOW: return createSubflow();
case FlowchartPackage.ACTION: return createAction();
case FlowchartPackage.DECISION: return createDecision();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Flowchart createFlowchart()
{
FlowchartImpl flowchart = new FlowchartImpl();
return flowchart;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Transition createTransition()
{
TransitionImpl transition = new TransitionImpl();
return transition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Subflow createSubflow()
{
SubflowImpl subflow = new SubflowImpl();
return subflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Action createAction()
{
ActionImpl action = new ActionImpl();
return action;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Decision createDecision()
{
DecisionImpl decision = new DecisionImpl();
return decision;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FlowchartPackage getFlowchartPackage()
{
return (FlowchartPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static FlowchartPackage getPackage()
{
return FlowchartPackage.eINSTANCE;
}
} //FlowchartFactoryImpl