/** */ package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.util; import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.*; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; /** * * The Switch for the model's inheritance hierarchy. * It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the caseXXX method for each class of the model, * starting with the actual class of the object * and proceeding up the inheritance hierarchy * until a non-null result is returned, * which is the result of the switch. * * @see hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage * @generated */ public class PartialinterpretationSwitch extends Switch { /** * The cached model package * * * @generated */ protected static PartialinterpretationPackage modelPackage; /** * Creates an instance of the switch. * * * @generated */ public PartialinterpretationSwitch() { if (modelPackage == null) { modelPackage = PartialinterpretationPackage.eINSTANCE; } } /** * Checks whether this is a switch for the given package. * * * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ @Override protected boolean isSwitchFor(EPackage ePackage) { return ePackage == modelPackage; } /** * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. * * * @return the first non-null result returned by a caseXXX call. * @generated */ @Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { case PartialinterpretationPackage.PARTIAL_INTERPRETATION: { PartialInterpretation partialInterpretation = (PartialInterpretation)theEObject; T result = casePartialInterpretation(partialInterpretation); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.PARTIAL_CONSTANT_INTERPRETATION: { PartialConstantInterpretation partialConstantInterpretation = (PartialConstantInterpretation)theEObject; T result = casePartialConstantInterpretation(partialConstantInterpretation); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION: { PartialRelationInterpretation partialRelationInterpretation = (PartialRelationInterpretation)theEObject; T result = casePartialRelationInterpretation(partialRelationInterpretation); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.PARTIAL_FUNCTION_INTERPRETATION: { PartialFunctionInterpretation partialFunctionInterpretation = (PartialFunctionInterpretation)theEObject; T result = casePartialFunctionInterpretation(partialFunctionInterpretation); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION: { PartialTypeInterpratation partialTypeInterpratation = (PartialTypeInterpratation)theEObject; T result = casePartialTypeInterpratation(partialTypeInterpratation); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.RELATION_LINK: { RelationLink relationLink = (RelationLink)theEObject; T result = caseRelationLink(relationLink); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.UNARY_ELEMENT_RELATION_LINK: { UnaryElementRelationLink unaryElementRelationLink = (UnaryElementRelationLink)theEObject; T result = caseUnaryElementRelationLink(unaryElementRelationLink); if (result == null) result = caseRelationLink(unaryElementRelationLink); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.BINARY_ELEMENT_RELATION_LINK: { BinaryElementRelationLink binaryElementRelationLink = (BinaryElementRelationLink)theEObject; T result = caseBinaryElementRelationLink(binaryElementRelationLink); if (result == null) result = caseRelationLink(binaryElementRelationLink); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.NARY_RELATION_LINK: { NaryRelationLink naryRelationLink = (NaryRelationLink)theEObject; T result = caseNaryRelationLink(naryRelationLink); if (result == null) result = caseRelationLink(naryRelationLink); if (result == null) result = defaultCase(theEObject); return result; } case PartialinterpretationPackage.NARY_RELATION_LINK_ELEMENT: { NaryRelationLinkElement naryRelationLinkElement = (NaryRelationLinkElement)theEObject; T result = caseNaryRelationLinkElement(naryRelationLinkElement); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of 'Partial Interpretation'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Partial Interpretation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePartialInterpretation(PartialInterpretation object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Partial Constant Interpretation'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Partial Constant Interpretation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePartialConstantInterpretation(PartialConstantInterpretation object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Partial Relation Interpretation'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Partial Relation Interpretation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePartialRelationInterpretation(PartialRelationInterpretation object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Partial Function Interpretation'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Partial Function Interpretation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePartialFunctionInterpretation(PartialFunctionInterpretation object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Partial Type Interpratation'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Partial Type Interpratation'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePartialTypeInterpratation(PartialTypeInterpratation object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Relation Link'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Relation Link'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseRelationLink(RelationLink object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Unary Element Relation Link'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Unary Element Relation Link'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseUnaryElementRelationLink(UnaryElementRelationLink object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Binary Element Relation Link'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Binary Element Relation Link'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBinaryElementRelationLink(BinaryElementRelationLink object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Nary Relation Link'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Nary Relation Link'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNaryRelationLink(NaryRelationLink object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Nary Relation Link Element'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Nary Relation Link Element'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNaryRelationLinkElement(NaryRelationLinkElement object) { return null; } /** * Returns the result of interpreting the object as an instance of 'EObject'. * * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'EObject'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ @Override public T defaultCase(EObject object) { return null; } } //PartialinterpretationSwitch