org.eclipse.gmt.umlx.mm.util
Class MmSwitch

java.lang.Object
  extended by org.eclipse.gmt.umlx.mm.util.MmSwitch

public class MmSwitch
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:
MmPackage

Constructor Summary
MmSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
          Returns the result of interpretting the object as an instance of 'EModel Element'.
 java.lang.Object caseGAssociation(GAssociation object)
          Returns the result of interpretting the object as an instance of 'GAssociation'.
 java.lang.Object caseGAttribution(GAttribution object)
          Returns the result of interpretting the object as an instance of 'GAttribution'.
 java.lang.Object caseGClass(GClass object)
          Returns the result of interpretting the object as an instance of 'GClass'.
 java.lang.Object caseGClassAttribute(GClassAttribute object)
          Returns the result of interpretting the object as an instance of 'GClass Attribute'.
 java.lang.Object caseGClassNode(GClassNode object)
          Returns the result of interpretting the object as an instance of 'GClass Node'.
 java.lang.Object caseGClassOperation(GClassOperation object)
          Returns the result of interpretting the object as an instance of 'GClass Operation'.
 java.lang.Object caseGDataType(GDataType object)
          Returns the result of interpretting the object as an instance of 'GData Type'.
 java.lang.Object caseGDiagram(GDiagram object)
          Returns the result of interpretting the object as an instance of 'GDiagram'.
 java.lang.Object caseGElement(GElement object)
          Returns the result of interpretting the object as an instance of 'GElement'.
 java.lang.Object caseGEnum(GEnum object)
          Returns the result of interpretting the object as an instance of 'GEnum'.
 java.lang.Object caseGEnumLiteral(GEnumLiteral object)
          Returns the result of interpretting the object as an instance of 'GEnum Literal'.
 java.lang.Object caseGInheritance(GInheritance object)
          Returns the result of interpretting the object as an instance of 'GInheritance'.
 java.lang.Object caseGLinkElement(GLinkElement object)
          Returns the result of interpretting the object as an instance of 'GLink Element'.
 java.lang.Object caseGModelElement(GModelElement object)
          Returns the result of interpretting the object as an instance of 'GModel Element'.
 java.lang.Object caseGNamedElement(GNamedElement object)
          Returns the result of interpretting the object as an instance of 'GNamed Element'.
 java.lang.Object caseGNodeElement(GNodeElement object)
          Returns the result of interpretting the object as an instance of 'GNode Element'.
 java.lang.Object caseGPackage(GPackage object)
          Returns the result of interpretting the object as an instance of 'GPackage'.
 java.lang.Object caseGPersistentCoModel(GPersistentCoModel object)
          Returns the result of interpretting the object as an instance of 'GPersistent Co Model'.
 java.lang.Object caseGPersistentNamedSheetNode(GPersistentNamedSheetNode object)
          Returns the result of interpretting the object as an instance of 'GPersistent Named Sheet Node'.
 java.lang.Object caseGPersistentSheetNode(GPersistentSheetNode object)
          Returns the result of interpretting the object as an instance of 'GPersistent Sheet Node'.
 java.lang.Object caseGSheet(GSheet object)
          Returns the result of interpretting the object as an instance of 'GSheet'.
 java.lang.Object caseGSheetAttribute(GSheetAttribute object)
          Returns the result of interpretting the object as an instance of 'GSheet Attribute'.
 java.lang.Object caseGSheetLink(GSheetLink object)
          Returns the result of interpretting the object as an instance of 'GSheet Link'.
 java.lang.Object caseGSheetNode(GSheetNode object)
          Returns the result of interpretting the object as an instance of 'GSheet Node'.
 java.lang.Object caseGTransientCoModel(GTransientCoModel object)
          Returns the result of interpretting the object as an instance of 'GTransient Co Model'.
 java.lang.Object caseGTransientSheetLink(GTransientSheetLink object)
          Returns the result of interpretting the object as an instance of 'GTransient Sheet Link'.
 java.lang.Object caseMmSheet(MmSheet object)
          Returns the result of interpretting the object as an instance of 'Sheet'.
 java.lang.Object caseMmSheetLink(MmSheetLink object)
          Returns the result of interpretting the object as an instance of 'Sheet Link'.
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 java.lang.Object 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

MmSwitch

public MmSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object 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.

caseGInheritance

public java.lang.Object caseGInheritance(GInheritance object)
Returns the result of interpretting the object as an instance of 'GInheritance'. 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 'GInheritance'.
See Also:
doSwitch(EObject)

caseGAssociation

public java.lang.Object caseGAssociation(GAssociation object)
Returns the result of interpretting the object as an instance of 'GAssociation'. 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 'GAssociation'.
See Also:
doSwitch(EObject)

caseGClass

public java.lang.Object caseGClass(GClass object)
Returns the result of interpretting the object as an instance of 'GClass'. 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 'GClass'.
See Also:
doSwitch(EObject)

caseGPackage

public java.lang.Object caseGPackage(GPackage object)
Returns the result of interpretting the object as an instance of 'GPackage'. 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 'GPackage'.
See Also:
doSwitch(EObject)

caseGDataType

public java.lang.Object caseGDataType(GDataType object)
Returns the result of interpretting the object as an instance of 'GData Type'. 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 'GData Type'.
See Also:
doSwitch(EObject)

caseGEnum

public java.lang.Object caseGEnum(GEnum object)
Returns the result of interpretting the object as an instance of 'GEnum'. 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 'GEnum'.
See Also:
doSwitch(EObject)

caseGEnumLiteral

public java.lang.Object caseGEnumLiteral(GEnumLiteral object)
Returns the result of interpretting the object as an instance of 'GEnum Literal'. 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 'GEnum Literal'.
See Also:
doSwitch(EObject)

caseMmSheet

public java.lang.Object caseMmSheet(MmSheet object)
Returns the result of interpretting the object as an instance of 'Sheet'. 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 'Sheet'.
See Also:
doSwitch(EObject)

caseGClassAttribute

public java.lang.Object caseGClassAttribute(GClassAttribute object)
Returns the result of interpretting the object as an instance of 'GClass Attribute'. 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 'GClass Attribute'.
See Also:
doSwitch(EObject)

caseGClassOperation

public java.lang.Object caseGClassOperation(GClassOperation object)
Returns the result of interpretting the object as an instance of 'GClass Operation'. 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 'GClass Operation'.
See Also:
doSwitch(EObject)

caseGAttribution

public java.lang.Object caseGAttribution(GAttribution object)
Returns the result of interpretting the object as an instance of 'GAttribution'. 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 'GAttribution'.
See Also:
doSwitch(EObject)

caseGClassNode

public java.lang.Object caseGClassNode(GClassNode object)
Returns the result of interpretting the object as an instance of 'GClass 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 'GClass Node'.
See Also:
doSwitch(EObject)

caseGSheetAttribute

public java.lang.Object caseGSheetAttribute(GSheetAttribute object)
Returns the result of interpretting the object as an instance of 'GSheet Attribute'. 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 'GSheet Attribute'.
See Also:
doSwitch(EObject)

caseMmSheetLink

public java.lang.Object caseMmSheetLink(MmSheetLink object)
Returns the result of interpretting the object as an instance of 'Sheet Link'. 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 'Sheet Link'.
See Also:
doSwitch(EObject)

caseEModelElement

public java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
Returns the result of interpretting the object as an instance of 'EModel Element'. 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 'EModel Element'.
See Also:
doSwitch(EObject)

caseGElement

public java.lang.Object caseGElement(GElement object)
Returns the result of interpretting the object as an instance of 'GElement'. 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 'GElement'.
See Also:
doSwitch(EObject)

caseGModelElement

public java.lang.Object caseGModelElement(GModelElement object)
Returns the result of interpretting the object as an instance of 'GModel Element'. 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 'GModel Element'.
See Also:
doSwitch(EObject)

caseGNodeElement

public java.lang.Object caseGNodeElement(GNodeElement object)
Returns the result of interpretting the object as an instance of 'GNode Element'. 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 'GNode Element'.
See Also:
doSwitch(EObject)

caseGSheetNode

public java.lang.Object caseGSheetNode(GSheetNode object)
Returns the result of interpretting the object as an instance of 'GSheet 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 'GSheet Node'.
See Also:
doSwitch(EObject)

caseGLinkElement

public java.lang.Object caseGLinkElement(GLinkElement object)
Returns the result of interpretting the object as an instance of 'GLink Element'. 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 'GLink Element'.
See Also:
doSwitch(EObject)

caseGPersistentCoModel

public java.lang.Object caseGPersistentCoModel(GPersistentCoModel object)
Returns the result of interpretting the object as an instance of 'GPersistent Co Model'. 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 'GPersistent Co Model'.
See Also:
doSwitch(EObject)

caseGPersistentSheetNode

public java.lang.Object caseGPersistentSheetNode(GPersistentSheetNode object)
Returns the result of interpretting the object as an instance of 'GPersistent Sheet 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 'GPersistent Sheet Node'.
See Also:
doSwitch(EObject)

caseGPersistentNamedSheetNode

public java.lang.Object caseGPersistentNamedSheetNode(GPersistentNamedSheetNode object)
Returns the result of interpretting the object as an instance of 'GPersistent Named Sheet 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 'GPersistent Named Sheet Node'.
See Also:
doSwitch(EObject)

caseGSheetLink

public java.lang.Object caseGSheetLink(GSheetLink object)
Returns the result of interpretting the object as an instance of 'GSheet Link'. 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 'GSheet Link'.
See Also:
doSwitch(EObject)

caseGTransientCoModel

public java.lang.Object caseGTransientCoModel(GTransientCoModel object)
Returns the result of interpretting the object as an instance of 'GTransient Co Model'. 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 'GTransient Co Model'.
See Also:
doSwitch(EObject)

caseGTransientSheetLink

public java.lang.Object caseGTransientSheetLink(GTransientSheetLink object)
Returns the result of interpretting the object as an instance of 'GTransient Sheet Link'. 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 'GTransient Sheet Link'.
See Also:
doSwitch(EObject)

caseGDiagram

public java.lang.Object caseGDiagram(GDiagram object)
Returns the result of interpretting the object as an instance of 'GDiagram'. 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 'GDiagram'.
See Also:
doSwitch(EObject)

caseGSheet

public java.lang.Object caseGSheet(GSheet object)
Returns the result of interpretting the object as an instance of 'GSheet'. 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 'GSheet'.
See Also:
doSwitch(EObject)

caseGNamedElement

public java.lang.Object caseGNamedElement(GNamedElement object)
Returns the result of interpretting the object as an instance of 'GNamed Element'. 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 'GNamed Element'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object 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)