All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kieker.model.collection.impl.CollectionFactoryImpl Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
/**
 */
package kieker.model.collection.impl;

import java.util.Map;

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;

import kieker.model.analysismodel.type.OperationType;
import kieker.model.collection.CollectionFactory;
import kieker.model.collection.CollectionPackage;
import kieker.model.collection.Connections;
import kieker.model.collection.Coupling;
import kieker.model.collection.OperationCollection;

/**
 * 
 * An implementation of the model Factory.
 * 
 * @generated
 */
public class CollectionFactoryImpl extends EFactoryImpl implements CollectionFactory {
	/**
	 * Creates the default factory implementation.
	 * 
	 * 
	 * @generated
	 */
	public static CollectionFactory init() {
		try {
			CollectionFactory theCollectionFactory = (CollectionFactory)EPackage.Registry.INSTANCE.getEFactory(CollectionPackage.eNS_URI);
			if (theCollectionFactory != null) {
				return theCollectionFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new CollectionFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * 
	 * 
	 * @generated
	 */
	public CollectionFactoryImpl() {
		super();
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case CollectionPackage.CONNECTIONS: return createConnections();
			case CollectionPackage.OPERATION_COLLECTION: return createOperationCollection();
			case CollectionPackage.COUPLING_TO_OPERATION_MAP: return (EObject)createCouplingToOperationMap();
			case CollectionPackage.NAME_TO_OPERATION_MAP: return (EObject)createNameToOperationMap();
			case CollectionPackage.COUPLING: return createCoupling();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public Connections createConnections() {
		ConnectionsImpl connections = new ConnectionsImpl();
		return connections;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public OperationCollection createOperationCollection() {
		OperationCollectionImpl operationCollection = new OperationCollectionImpl();
		return operationCollection;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	public Map.Entry createCouplingToOperationMap() {
		CouplingToOperationMapImpl couplingToOperationMap = new CouplingToOperationMapImpl();
		return couplingToOperationMap;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	public Map.Entry createNameToOperationMap() {
		NameToOperationMapImpl nameToOperationMap = new NameToOperationMapImpl();
		return nameToOperationMap;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public Coupling createCoupling() {
		CouplingImpl coupling = new CouplingImpl();
		return coupling;
	}

	/**
	 * 
	 * 
	 * @generated
	 */
	@Override
	public CollectionPackage getCollectionPackage() {
		return (CollectionPackage)getEPackage();
	}

	/**
	 * 
	 * 
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static CollectionPackage getPackage() {
		return CollectionPackage.eINSTANCE;
	}

} // CollectionFactoryImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy