org.eclipse.gmt.umlx.eqvtr.cst.util
Class EqvtrCSTSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.eqvtr.cst.util.EqvtrCSTSwitch<T>

public class EqvtrCSTSwitch<T>
extends java.lang.Object

The Switch for the model's inheritance hierarchy. It supports the call 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 Also:
EqvtrCSTPackage

Constructor Summary
EqvtrCSTSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractDomainCS(AbstractDomainCS object)
          Returns the result of interpretting the object as an instance of 'Abstract Domain CS'.
 T caseCollectionTemplateCS(CollectionTemplateCS object)
          Returns the result of interpretting the object as an instance of 'Collection Template CS'.
 T caseCSTNode(org.eclipse.ocl.internal.cst.CSTNode object)
          Returns the result of interpretting the object as an instance of 'Node'.
 T caseDefaultValueCS(DefaultValueCS object)
          Returns the result of interpretting the object as an instance of 'Default Value CS'.
 T caseDomainCS(DomainCS object)
          Returns the result of interpretting the object as an instance of 'Domain CS'.
 T caseFilenameCS(FilenameCS object)
          Returns the result of interpretting the object as an instance of 'Filename CS'.
 T caseIdentifiedCS(IdentifiedCS object)
          Returns the result of interpretting the object as an instance of 'Identified CS'.
 T caseIdentifierCS(IdentifierCS object)
          Returns the result of interpretting the object as an instance of 'Identifier CS'.
 T caseKeyDeclCS(KeyDeclCS object)
          Returns the result of interpretting the object as an instance of 'Key Decl CS'.
 T caseModelDeclCS(ModelDeclCS object)
          Returns the result of interpretting the object as an instance of 'Model Decl CS'.
 T caseObjectTemplateCS(ObjectTemplateCS object)
          Returns the result of interpretting the object as an instance of 'Object Template CS'.
 T caseOCLExpressionCS(org.eclipse.ocl.internal.cst.OCLExpressionCS object)
          Returns the result of interpretting the object as an instance of 'OCL Expression CS'.
 T caseOppositePropertyIdCS(OppositePropertyIdCS object)
          Returns the result of interpretting the object as an instance of 'Opposite Property Id CS'.
 T caseParamDeclarationCS(ParamDeclarationCS object)
          Returns the result of interpretting the object as an instance of 'Param Declaration CS'.
 T casePrimitiveTypeDomainCS(PrimitiveTypeDomainCS object)
          Returns the result of interpretting the object as an instance of 'Primitive Type Domain CS'.
 T casePropertyTemplateCS(PropertyTemplateCS object)
          Returns the result of interpretting the object as an instance of 'Property Template CS'.
 T caseQueryCS(QueryCS object)
          Returns the result of interpretting the object as an instance of 'Query CS'.
 T caseRelationCS(RelationCS object)
          Returns the result of interpretting the object as an instance of 'Relation CS'.
 T caseTemplateCS(TemplateCS object)
          Returns the result of interpretting the object as an instance of 'Template CS'.
 T caseTemplateVariableCS(TemplateVariableCS object)
          Returns the result of interpretting the object as an instance of 'Template Variable CS'.
 T caseTopLevelCS(TopLevelCS object)
          Returns the result of interpretting the object as an instance of 'Top Level CS'.
 T caseTransformationCS(TransformationCS object)
          Returns the result of interpretting the object as an instance of 'Transformation CS'.
 T caseVarDeclarationCS(VarDeclarationCS object)
          Returns the result of interpretting the object as an instance of 'Var Declaration CS'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqvtrCSTSwitch

public EqvtrCSTSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

caseTopLevelCS

public T caseTopLevelCS(TopLevelCS object)
Returns the result of interpretting the object as an instance of 'Top Level CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Top Level CS'.
See Also:
doSwitch(EObject)

caseTransformationCS

public T caseTransformationCS(TransformationCS object)
Returns the result of interpretting the object as an instance of 'Transformation CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Transformation CS'.
See Also:
doSwitch(EObject)

caseIdentifierCS

public T caseIdentifierCS(IdentifierCS object)
Returns the result of interpretting the object as an instance of 'Identifier CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identifier CS'.
See Also:
doSwitch(EObject)

caseFilenameCS

public T caseFilenameCS(FilenameCS object)
Returns the result of interpretting the object as an instance of 'Filename CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Filename CS'.
See Also:
doSwitch(EObject)

caseModelDeclCS

public T caseModelDeclCS(ModelDeclCS object)
Returns the result of interpretting the object as an instance of 'Model Decl CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Model Decl CS'.
See Also:
doSwitch(EObject)

caseKeyDeclCS

public T caseKeyDeclCS(KeyDeclCS object)
Returns the result of interpretting the object as an instance of 'Key Decl CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Key Decl CS'.
See Also:
doSwitch(EObject)

caseRelationCS

public T caseRelationCS(RelationCS object)
Returns the result of interpretting the object as an instance of 'Relation CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Relation CS'.
See Also:
doSwitch(EObject)

caseQueryCS

public T caseQueryCS(QueryCS object)
Returns the result of interpretting the object as an instance of 'Query CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Query CS'.
See Also:
doSwitch(EObject)

caseDomainCS

public T caseDomainCS(DomainCS object)
Returns the result of interpretting the object as an instance of 'Domain CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Domain CS'.
See Also:
doSwitch(EObject)

casePrimitiveTypeDomainCS

public T casePrimitiveTypeDomainCS(PrimitiveTypeDomainCS object)
Returns the result of interpretting the object as an instance of 'Primitive Type Domain CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Primitive Type Domain CS'.
See Also:
doSwitch(EObject)

caseVarDeclarationCS

public T caseVarDeclarationCS(VarDeclarationCS object)
Returns the result of interpretting the object as an instance of 'Var Declaration CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Var Declaration CS'.
See Also:
doSwitch(EObject)

caseIdentifiedCS

public T caseIdentifiedCS(IdentifiedCS object)
Returns the result of interpretting the object as an instance of 'Identified CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Identified CS'.
See Also:
doSwitch(EObject)

caseDefaultValueCS

public T caseDefaultValueCS(DefaultValueCS object)
Returns the result of interpretting the object as an instance of 'Default Value CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Default Value CS'.
See Also:
doSwitch(EObject)

caseAbstractDomainCS

public T caseAbstractDomainCS(AbstractDomainCS object)
Returns the result of interpretting the object as an instance of 'Abstract Domain CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Abstract Domain CS'.
See Also:
doSwitch(EObject)

caseOppositePropertyIdCS

public T caseOppositePropertyIdCS(OppositePropertyIdCS object)
Returns the result of interpretting the object as an instance of 'Opposite Property Id CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Opposite Property Id CS'.
See Also:
doSwitch(EObject)

caseTemplateVariableCS

public T caseTemplateVariableCS(TemplateVariableCS object)
Returns the result of interpretting the object as an instance of 'Template Variable CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Template Variable CS'.
See Also:
doSwitch(EObject)

casePropertyTemplateCS

public T casePropertyTemplateCS(PropertyTemplateCS object)
Returns the result of interpretting the object as an instance of 'Property Template CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Property Template CS'.
See Also:
doSwitch(EObject)

caseTemplateCS

public T caseTemplateCS(TemplateCS object)
Returns the result of interpretting the object as an instance of 'Template CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Template CS'.
See Also:
doSwitch(EObject)

caseObjectTemplateCS

public T caseObjectTemplateCS(ObjectTemplateCS object)
Returns the result of interpretting the object as an instance of 'Object Template CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Object Template CS'.
See Also:
doSwitch(EObject)

caseCollectionTemplateCS

public T caseCollectionTemplateCS(CollectionTemplateCS object)
Returns the result of interpretting the object as an instance of 'Collection Template CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Collection Template CS'.
See Also:
doSwitch(EObject)

caseParamDeclarationCS

public T caseParamDeclarationCS(ParamDeclarationCS object)
Returns the result of interpretting the object as an instance of 'Param Declaration CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Param Declaration CS'.
See Also:
doSwitch(EObject)

caseCSTNode

public T caseCSTNode(org.eclipse.ocl.internal.cst.CSTNode object)
Returns the result of interpretting the object as an instance of 'Node'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Node'.
See Also:
doSwitch(EObject)

caseOCLExpressionCS

public T caseOCLExpressionCS(org.eclipse.ocl.internal.cst.OCLExpressionCS object)
Returns the result of interpretting the object as an instance of 'OCL Expression CS'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'OCL Expression CS'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting 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.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)