/** */ package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.*; 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 PartialinterpretationFactoryImpl extends EFactoryImpl implements PartialinterpretationFactory { /** * Creates the default factory implementation. * * * @generated */ public static PartialinterpretationFactory init() { try { PartialinterpretationFactory thePartialinterpretationFactory = (PartialinterpretationFactory)EPackage.Registry.INSTANCE.getEFactory(PartialinterpretationPackage.eNS_URI); if (thePartialinterpretationFactory != null) { return thePartialinterpretationFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new PartialinterpretationFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public PartialinterpretationFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case PartialinterpretationPackage.PARTIAL_INTERPRETATION: return createPartialInterpretation(); case PartialinterpretationPackage.PARTIAL_CONSTANT_INTERPRETATION: return createPartialConstantInterpretation(); case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION: return createPartialRelationInterpretation(); case PartialinterpretationPackage.PARTIAL_FUNCTION_INTERPRETATION: return createPartialFunctionInterpretation(); case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION: return createPartialTypeInterpratation(); case PartialinterpretationPackage.UNARY_ELEMENT_RELATION_LINK: return createUnaryElementRelationLink(); case PartialinterpretationPackage.BINARY_ELEMENT_RELATION_LINK: return createBinaryElementRelationLink(); case PartialinterpretationPackage.NARY_RELATION_LINK: return createNaryRelationLink(); case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT: return createNaryRelationLinkElement(); case PartialinterpretationPackage.BOOLEAN_ELEMENT: return createBooleanElement(); case PartialinterpretationPackage.INTEGER_ELEMENT: return createIntegerElement(); case PartialinterpretationPackage.REAL_ELEMENT: return createRealElement(); case PartialinterpretationPackage.STRING_ELEMENT: return createStringElement(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public PartialInterpretation createPartialInterpretation() { PartialInterpretationImpl partialInterpretation = new PartialInterpretationImpl(); return partialInterpretation; } /** * * * @generated */ public PartialConstantInterpretation createPartialConstantInterpretation() { PartialConstantInterpretationImpl partialConstantInterpretation = new PartialConstantInterpretationImpl(); return partialConstantInterpretation; } /** * * * @generated */ public PartialRelationInterpretation createPartialRelationInterpretation() { PartialRelationInterpretationImpl partialRelationInterpretation = new PartialRelationInterpretationImpl(); return partialRelationInterpretation; } /** * * * @generated */ public PartialFunctionInterpretation createPartialFunctionInterpretation() { PartialFunctionInterpretationImpl partialFunctionInterpretation = new PartialFunctionInterpretationImpl(); return partialFunctionInterpretation; } /** * * * @generated */ public PartialTypeInterpratation createPartialTypeInterpratation() { PartialTypeInterpratationImpl partialTypeInterpratation = new PartialTypeInterpratationImpl(); return partialTypeInterpratation; } /** * * * @generated */ public UnaryElementRelationLink createUnaryElementRelationLink() { UnaryElementRelationLinkImpl unaryElementRelationLink = new UnaryElementRelationLinkImpl(); return unaryElementRelationLink; } /** * * * @generated */ public BinaryElementRelationLink createBinaryElementRelationLink() { BinaryElementRelationLinkImpl binaryElementRelationLink = new BinaryElementRelationLinkImpl(); return binaryElementRelationLink; } /** * * * @generated */ public NaryRelationLink createNaryRelationLink() { NaryRelationLinkImpl naryRelationLink = new NaryRelationLinkImpl(); return naryRelationLink; } /** * * * @generated */ public NaryRelationLinkElement createNaryRelationLinkElement() { NaryRelationLinkElementImpl naryRelationLinkElement = new NaryRelationLinkElementImpl(); return naryRelationLinkElement; } /** * * * @generated */ public BooleanElement createBooleanElement() { BooleanElementImpl booleanElement = new BooleanElementImpl(); return booleanElement; } /** * * * @generated */ public IntegerElement createIntegerElement() { IntegerElementImpl integerElement = new IntegerElementImpl(); return integerElement; } /** * * * @generated */ public RealElement createRealElement() { RealElementImpl realElement = new RealElementImpl(); return realElement; } /** * * * @generated */ public StringElement createStringElement() { StringElementImpl stringElement = new StringElementImpl(); return stringElement; } /** * * * @generated */ public PartialinterpretationPackage getPartialinterpretationPackage() { return (PartialinterpretationPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static PartialinterpretationPackage getPackage() { return PartialinterpretationPackage.eINSTANCE; } } //PartialinterpretationFactoryImpl