/**
*/
package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.util;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.SymbolicDeclaration;
import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TermDescription;
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;
}
case PartialinterpretationPackage.PRIMITIVE_ELEMENT: {
PrimitiveElement primitiveElement = (PrimitiveElement)theEObject;
T result = casePrimitiveElement(primitiveElement);
if (result == null) result = caseDefinedElement(primitiveElement);
if (result == null) result = caseSymbolicDeclaration(primitiveElement);
if (result == null) result = caseTermDescription(primitiveElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.BOOLEAN_ELEMENT: {
BooleanElement booleanElement = (BooleanElement)theEObject;
T result = caseBooleanElement(booleanElement);
if (result == null) result = casePrimitiveElement(booleanElement);
if (result == null) result = caseDefinedElement(booleanElement);
if (result == null) result = caseSymbolicDeclaration(booleanElement);
if (result == null) result = caseTermDescription(booleanElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.INTEGER_ELEMENT: {
IntegerElement integerElement = (IntegerElement)theEObject;
T result = caseIntegerElement(integerElement);
if (result == null) result = casePrimitiveElement(integerElement);
if (result == null) result = caseDefinedElement(integerElement);
if (result == null) result = caseSymbolicDeclaration(integerElement);
if (result == null) result = caseTermDescription(integerElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.REAL_ELEMENT: {
RealElement realElement = (RealElement)theEObject;
T result = caseRealElement(realElement);
if (result == null) result = casePrimitiveElement(realElement);
if (result == null) result = caseDefinedElement(realElement);
if (result == null) result = caseSymbolicDeclaration(realElement);
if (result == null) result = caseTermDescription(realElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.STRING_ELEMENT: {
StringElement stringElement = (StringElement)theEObject;
T result = caseStringElement(stringElement);
if (result == null) result = casePrimitiveElement(stringElement);
if (result == null) result = caseDefinedElement(stringElement);
if (result == null) result = caseSymbolicDeclaration(stringElement);
if (result == null) result = caseTermDescription(stringElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.SCOPE: {
Scope scope = (Scope)theEObject;
T result = caseScope(scope);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_PRIMITIVE_INTERPRETATION: {
PartialPrimitiveInterpretation partialPrimitiveInterpretation = (PartialPrimitiveInterpretation)theEObject;
T result = casePartialPrimitiveInterpretation(partialPrimitiveInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialPrimitiveInterpretation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_BOOLEAN_INTERPRETATION: {
PartialBooleanInterpretation partialBooleanInterpretation = (PartialBooleanInterpretation)theEObject;
T result = casePartialBooleanInterpretation(partialBooleanInterpretation);
if (result == null) result = casePartialPrimitiveInterpretation(partialBooleanInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialBooleanInterpretation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_INTEGER_INTERPRETATION: {
PartialIntegerInterpretation partialIntegerInterpretation = (PartialIntegerInterpretation)theEObject;
T result = casePartialIntegerInterpretation(partialIntegerInterpretation);
if (result == null) result = casePartialPrimitiveInterpretation(partialIntegerInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialIntegerInterpretation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_REAL_INTERPRETATION: {
PartialRealInterpretation partialRealInterpretation = (PartialRealInterpretation)theEObject;
T result = casePartialRealInterpretation(partialRealInterpretation);
if (result == null) result = casePartialPrimitiveInterpretation(partialRealInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialRealInterpretation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_STRING_INTERPRETATION: {
PartialStringInterpretation partialStringInterpretation = (PartialStringInterpretation)theEObject;
T result = casePartialStringInterpretation(partialStringInterpretation);
if (result == null) result = casePartialPrimitiveInterpretation(partialStringInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialStringInterpretation);
if (result == null) result = defaultCase(theEObject);
return result;
}
case PartialinterpretationPackage.PARTIAL_COMPLEX_TYPE_INTERPRETATION: {
PartialComplexTypeInterpretation partialComplexTypeInterpretation = (PartialComplexTypeInterpretation)theEObject;
T result = casePartialComplexTypeInterpretation(partialComplexTypeInterpretation);
if (result == null) result = casePartialTypeInterpratation(partialComplexTypeInterpretation);
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 'Primitive 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 'Primitive Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePrimitiveElement(PrimitiveElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Boolean 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 'Boolean Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBooleanElement(BooleanElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Integer 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 'Integer Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseIntegerElement(IntegerElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Real 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 'Real Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseRealElement(RealElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'String 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 'String Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseStringElement(StringElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Scope'.
*
* 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 'Scope'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseScope(Scope object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial Primitive 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 Primitive Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialPrimitiveInterpretation(PartialPrimitiveInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial Boolean 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 Boolean Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialBooleanInterpretation(PartialBooleanInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial Integer 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 Integer Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialIntegerInterpretation(PartialIntegerInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial Real 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 Real Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialRealInterpretation(PartialRealInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial String 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 String Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialStringInterpretation(PartialStringInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Partial Complex Type 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 Complex Type Interpretation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePartialComplexTypeInterpretation(PartialComplexTypeInterpretation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Term Description'.
*
* 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 'Term Description'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTermDescription(TermDescription object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Symbolic Declaration'.
*
* 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 'Symbolic Declaration'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSymbolicDeclaration(SymbolicDeclaration object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Defined 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 'Defined Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDefinedElement(DefinedElement 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