/** */ package hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.impl; import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.*; 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; /** * * An implementation of the model Factory. * * @generated */ public class LogicproblemFactoryImpl extends EFactoryImpl implements LogicproblemFactory { /** * Creates the default factory implementation. * * * @generated */ public static LogicproblemFactory init() { try { LogicproblemFactory theLogicproblemFactory = (LogicproblemFactory)EPackage.Registry.INSTANCE.getEFactory(LogicproblemPackage.eNS_URI); if (theLogicproblemFactory != null) { return theLogicproblemFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new LogicproblemFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public LogicproblemFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case LogicproblemPackage.LOGIC_PROBLEM: return createLogicProblem(); case LogicproblemPackage.CONTAINMENT_HIERARCHY: return createContainmentHierarchy(); case LogicproblemPackage.RELATION_ANNOTATION: return createRelationAnnotation(); case LogicproblemPackage.CONSTANT_ANNOTATION: return createConstantAnnotation(); case LogicproblemPackage.FUNCTION_ANNOTATION: return createFunctionAnnotation(); case LogicproblemPackage.ASSERTION_ANNOTATION: return createAssertionAnnotation(); case LogicproblemPackage.ANNOTATION: return createAnnotation(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public LogicProblem createLogicProblem() { LogicProblemImpl logicProblem = new LogicProblemImpl(); return logicProblem; } /** * * * @generated */ public ContainmentHierarchy createContainmentHierarchy() { ContainmentHierarchyImpl containmentHierarchy = new ContainmentHierarchyImpl(); return containmentHierarchy; } /** * * * @generated */ public RelationAnnotation createRelationAnnotation() { RelationAnnotationImpl relationAnnotation = new RelationAnnotationImpl(); return relationAnnotation; } /** * * * @generated */ public ConstantAnnotation createConstantAnnotation() { ConstantAnnotationImpl constantAnnotation = new ConstantAnnotationImpl(); return constantAnnotation; } /** * * * @generated */ public FunctionAnnotation createFunctionAnnotation() { FunctionAnnotationImpl functionAnnotation = new FunctionAnnotationImpl(); return functionAnnotation; } /** * * * @generated */ public AssertionAnnotation createAssertionAnnotation() { AssertionAnnotationImpl assertionAnnotation = new AssertionAnnotationImpl(); return assertionAnnotation; } /** * * * @generated */ public Annotation createAnnotation() { AnnotationImpl annotation = new AnnotationImpl(); return annotation; } /** * * * @generated */ public LogicproblemPackage getLogicproblemPackage() { return (LogicproblemPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static LogicproblemPackage getPackage() { return LogicproblemPackage.eINSTANCE; } } //LogicproblemFactoryImpl