| /** |
| */ |
| package SimpleBPMN.impl; |
| |
| import SimpleBPMN.*; |
| |
| 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 SimpleBPMNFactoryImpl extends EFactoryImpl implements SimpleBPMNFactory { |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static SimpleBPMNFactory init() { |
| try { |
| SimpleBPMNFactory theSimpleBPMNFactory = (SimpleBPMNFactory)EPackage.Registry.INSTANCE.getEFactory(SimpleBPMNPackage.eNS_URI); |
| if (theSimpleBPMNFactory != null) { |
| return theSimpleBPMNFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new SimpleBPMNFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SimpleBPMNFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case SimpleBPMNPackage.BUSINESS_PROCESS_DIAGRAM: return createBusinessProcessDiagram(); |
| case SimpleBPMNPackage.BPMN_ELEMENT: return createBPMNElement(); |
| case SimpleBPMNPackage.LANE: return createLane(); |
| case SimpleBPMNPackage.POOL: return createPool(); |
| case SimpleBPMNPackage.MESSAGE_FLOW: return createMessageFlow(); |
| case SimpleBPMNPackage.SEQUENCE_FLOW: return createSequenceFlow(); |
| case SimpleBPMNPackage.ASSOCIATION: return createAssociation(); |
| case SimpleBPMNPackage.XOR: return createXOR(); |
| case SimpleBPMNPackage.OR: return createOR(); |
| case SimpleBPMNPackage.AND: return createAND(); |
| case SimpleBPMNPackage.START_EVENT: return createStartEvent(); |
| case SimpleBPMNPackage.INTERMEDIATE_EVENT: return createIntermediateEvent(); |
| case SimpleBPMNPackage.END_EVENT: return createEndEvent(); |
| case SimpleBPMNPackage.ACTIVITY: return createActivity(); |
| case SimpleBPMNPackage.DATA_OBJECT: return createDataObject(); |
| case SimpleBPMNPackage.GROUP: return createGroup(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BusinessProcessDiagram createBusinessProcessDiagram() { |
| BusinessProcessDiagramImpl businessProcessDiagram = new BusinessProcessDiagramImpl(); |
| return businessProcessDiagram; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BPMNElement createBPMNElement() { |
| BPMNElementImpl bpmnElement = new BPMNElementImpl(); |
| return bpmnElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Lane createLane() { |
| LaneImpl lane = new LaneImpl(); |
| return lane; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Pool createPool() { |
| PoolImpl pool = new PoolImpl(); |
| return pool; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MessageFlow createMessageFlow() { |
| MessageFlowImpl messageFlow = new MessageFlowImpl(); |
| return messageFlow; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SequenceFlow createSequenceFlow() { |
| SequenceFlowImpl sequenceFlow = new SequenceFlowImpl(); |
| return sequenceFlow; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Association createAssociation() { |
| AssociationImpl association = new AssociationImpl(); |
| return association; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public XOR createXOR() { |
| XORImpl xor = new XORImpl(); |
| return xor; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OR createOR() { |
| ORImpl or = new ORImpl(); |
| return or; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AND createAND() { |
| ANDImpl and = new ANDImpl(); |
| return and; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public StartEvent createStartEvent() { |
| StartEventImpl startEvent = new StartEventImpl(); |
| return startEvent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public IntermediateEvent createIntermediateEvent() { |
| IntermediateEventImpl intermediateEvent = new IntermediateEventImpl(); |
| return intermediateEvent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EndEvent createEndEvent() { |
| EndEventImpl endEvent = new EndEventImpl(); |
| return endEvent; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Activity createActivity() { |
| ActivityImpl activity = new ActivityImpl(); |
| return activity; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataObject createDataObject() { |
| DataObjectImpl dataObject = new DataObjectImpl(); |
| return dataObject; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Group createGroup() { |
| GroupImpl group = new GroupImpl(); |
| return group; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SimpleBPMNPackage getSimpleBPMNPackage() { |
| return (SimpleBPMNPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static SimpleBPMNPackage getPackage() { |
| return SimpleBPMNPackage.eINSTANCE; |
| } |
| |
| } //SimpleBPMNFactoryImpl |