From ad35e53fa23be5312f1e4b8d830a73e8ade1f08c Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 29 Jun 2021 18:29:13 +0200 Subject: Generate all files on build --- .../model/problem/impl/ProblemFactoryImpl.java | 437 --------------------- 1 file changed, 437 deletions(-) delete mode 100644 language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java') diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java deleted file mode 100644 index 27da13e2..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java +++ /dev/null @@ -1,437 +0,0 @@ -/** - */ -package org.eclipse.viatra.solver.language.model.problem.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -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 org.eclipse.viatra.solver.language.model.problem.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ProblemFactoryImpl extends EFactoryImpl implements ProblemFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ProblemFactory init() { - try { - ProblemFactory theProblemFactory = (ProblemFactory) EPackage.Registry.INSTANCE - .getEFactory(ProblemPackage.eNS_URI); - if (theProblemFactory != null) { - return theProblemFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ProblemFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ProblemFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ProblemPackage.PROBLEM: - return createProblem(); - case ProblemPackage.CLASS_DECLARATION: - return createClassDeclaration(); - case ProblemPackage.REFERENCE_DECLARATION: - return createReferenceDeclaration(); - case ProblemPackage.PREDICATE_DEFINITION: - return createPredicateDefinition(); - case ProblemPackage.PARAMETER: - return createParameter(); - case ProblemPackage.CONJUNCTION: - return createConjunction(); - case ProblemPackage.ATOM: - return createAtom(); - case ProblemPackage.IMPLICIT_VARIABLE: - return createImplicitVariable(); - case ProblemPackage.NEGATIVE_LITERAL: - return createNegativeLiteral(); - case ProblemPackage.ASSERTION: - return createAssertion(); - case ProblemPackage.NODE: - return createNode(); - case ProblemPackage.SCOPE_DECLARATION: - return createScopeDeclaration(); - case ProblemPackage.TYPE_SCOPE: - return createTypeScope(); - case ProblemPackage.RANGE_MULTIPLICITY: - return createRangeMultiplicity(); - case ProblemPackage.EXACT_MULTIPLICITY: - return createExactMultiplicity(); - case ProblemPackage.UNBOUNDED_MULTIPLICITY: - return createUnboundedMultiplicity(); - case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT: - return createVariableOrNodeArgument(); - case ProblemPackage.ENUM_DECLARATION: - return createEnumDeclaration(); - case ProblemPackage.INT_CONSTANT: - return createIntConstant(); - case ProblemPackage.REAL_CONSTANT: - return createRealConstant(); - case ProblemPackage.STRING_CONSTANT: - return createStringConstant(); - case ProblemPackage.CONSTANT_ARGUMENT: - return createConstantArgument(); - case ProblemPackage.NODE_ASSERTION_ARGUMENT: - return createNodeAssertionArgument(); - case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT: - return createConstantAssertionArgument(); - case ProblemPackage.NODE_VALUE_ASSERTION: - return createNodeValueAssertion(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case ProblemPackage.LOGIC_VALUE: - return createLogicValueFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case ProblemPackage.LOGIC_VALUE: - return convertLogicValueToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public Problem createProblem() { - ProblemImpl problem = new ProblemImpl(); - return problem; - } - - /** - * - * - * @generated - */ - public ClassDeclaration createClassDeclaration() { - ClassDeclarationImpl classDeclaration = new ClassDeclarationImpl(); - return classDeclaration; - } - - /** - * - * - * @generated - */ - public ReferenceDeclaration createReferenceDeclaration() { - ReferenceDeclarationImpl referenceDeclaration = new ReferenceDeclarationImpl(); - return referenceDeclaration; - } - - /** - * - * - * @generated - */ - public PredicateDefinition createPredicateDefinition() { - PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); - return predicateDefinition; - } - - /** - * - * - * @generated - */ - public Parameter createParameter() { - ParameterImpl parameter = new ParameterImpl(); - return parameter; - } - - /** - * - * - * @generated - */ - public Conjunction createConjunction() { - ConjunctionImpl conjunction = new ConjunctionImpl(); - return conjunction; - } - - /** - * - * - * @generated - */ - public Atom createAtom() { - AtomImpl atom = new AtomImpl(); - return atom; - } - - /** - * - * - * @generated - */ - public ImplicitVariable createImplicitVariable() { - ImplicitVariableImpl implicitVariable = new ImplicitVariableImpl(); - return implicitVariable; - } - - /** - * - * - * @generated - */ - public NegativeLiteral createNegativeLiteral() { - NegativeLiteralImpl negativeLiteral = new NegativeLiteralImpl(); - return negativeLiteral; - } - - /** - * - * - * @generated - */ - public Assertion createAssertion() { - AssertionImpl assertion = new AssertionImpl(); - return assertion; - } - - /** - * - * - * @generated - */ - public Node createNode() { - NodeImpl node = new NodeImpl(); - return node; - } - - /** - * - * - * @generated - */ - public ScopeDeclaration createScopeDeclaration() { - ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); - return scopeDeclaration; - } - - /** - * - * - * @generated - */ - public TypeScope createTypeScope() { - TypeScopeImpl typeScope = new TypeScopeImpl(); - return typeScope; - } - - /** - * - * - * @generated - */ - public RangeMultiplicity createRangeMultiplicity() { - RangeMultiplicityImpl rangeMultiplicity = new RangeMultiplicityImpl(); - return rangeMultiplicity; - } - - /** - * - * - * @generated - */ - public ExactMultiplicity createExactMultiplicity() { - ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); - return exactMultiplicity; - } - - /** - * - * - * @generated - */ - public UnboundedMultiplicity createUnboundedMultiplicity() { - UnboundedMultiplicityImpl unboundedMultiplicity = new UnboundedMultiplicityImpl(); - return unboundedMultiplicity; - } - - /** - * - * - * @generated - */ - public VariableOrNodeArgument createVariableOrNodeArgument() { - VariableOrNodeArgumentImpl variableOrNodeArgument = new VariableOrNodeArgumentImpl(); - return variableOrNodeArgument; - } - - /** - * - * - * @generated - */ - public EnumDeclaration createEnumDeclaration() { - EnumDeclarationImpl enumDeclaration = new EnumDeclarationImpl(); - return enumDeclaration; - } - - /** - * - * - * @generated - */ - public IntConstant createIntConstant() { - IntConstantImpl intConstant = new IntConstantImpl(); - return intConstant; - } - - /** - * - * - * @generated - */ - public RealConstant createRealConstant() { - RealConstantImpl realConstant = new RealConstantImpl(); - return realConstant; - } - - /** - * - * - * @generated - */ - public StringConstant createStringConstant() { - StringConstantImpl stringConstant = new StringConstantImpl(); - return stringConstant; - } - - /** - * - * - * @generated - */ - public ConstantArgument createConstantArgument() { - ConstantArgumentImpl constantArgument = new ConstantArgumentImpl(); - return constantArgument; - } - - /** - * - * - * @generated - */ - public NodeAssertionArgument createNodeAssertionArgument() { - NodeAssertionArgumentImpl nodeAssertionArgument = new NodeAssertionArgumentImpl(); - return nodeAssertionArgument; - } - - /** - * - * - * @generated - */ - public ConstantAssertionArgument createConstantAssertionArgument() { - ConstantAssertionArgumentImpl constantAssertionArgument = new ConstantAssertionArgumentImpl(); - return constantAssertionArgument; - } - - /** - * - * - * @generated - */ - public NodeValueAssertion createNodeValueAssertion() { - NodeValueAssertionImpl nodeValueAssertion = new NodeValueAssertionImpl(); - return nodeValueAssertion; - } - - /** - * - * - * @generated - */ - public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { - LogicValue result = LogicValue.get(initialValue); - if (result == null) - throw new IllegalArgumentException( - "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public ProblemPackage getProblemPackage() { - return (ProblemPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ProblemPackage getPackage() { - return ProblemPackage.eINSTANCE; - } - -} //ProblemFactoryImpl -- cgit v1.2.3-70-g09d2