org.eclipse.gmt.umlx.gcore.util
Class GcoreSwitch

java.lang.Object
  extended by org.eclipse.gmt.umlx.gcore.util.GcoreSwitch

public class GcoreSwitch
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:
GcorePackage

Constructor Summary
GcoreSwitch()
          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 caseGDiagram(GDiagram object)
          Returns the result of interpretting the object as an instance of 'GDiagram'.
 java.lang.Object caseGDiagramParent(GDiagramParent object)
          Returns the result of interpretting the object as an instance of 'GDiagram Parent'.
 java.lang.Object caseGElement(GElement object)
          Returns the result of interpretting the object as an instance of 'GElement'.
 java.lang.Object caseGFolder(GFolder object)
          Returns the result of interpretting the object as an instance of 'GFolder'.
 java.lang.Object caseGImport(GImport object)
          Returns the result of interpretting the object as an instance of 'GImport'.
 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 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 caseGPersistentSheetLink(GPersistentSheetLink object)
          Returns the result of interpretting the object as an instance of 'GPersistent Sheet Link'.
 java.lang.Object caseGPersistentSheetNode(GPersistentSheetNode object)
          Returns the result of interpretting the object as an instance of 'GPersistent Sheet Node'.
 java.lang.Object caseGRootFolder(GRootFolder object)
          Returns the result of interpretting the object as an instance of 'GRoot Folder'.
 java.lang.Object caseGSheet(GSheet object)
          Returns the result of interpretting the object as an instance of 'GSheet'.
 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 caseGStickyLink(GStickyLink object)
          Returns the result of interpretting the object as an instance of 'GSticky Link'.
 java.lang.Object caseGStickyNote(GStickyNote object)
          Returns the result of interpretting the object as an instance of 'GSticky Note'.
 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 caseGTransientSheetNode(GTransientSheetNode object)
          Returns the result of interpretting the object as an instance of 'GTransient Sheet Node'.
 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

GcoreSwitch

public GcoreSwitch()
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.

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)

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)

caseGFolder

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

caseGImport

public java.lang.Object caseGImport(GImport object)
Returns the result of interpretting the object as an instance of 'GImport'. 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 'GImport'.
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)

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)

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)

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)

caseGRootFolder

public java.lang.Object caseGRootFolder(GRootFolder object)
Returns the result of interpretting the object as an instance of 'GRoot Folder'. 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 'GRoot Folder'.
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)

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)

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)

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)

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)

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)

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)

caseGStickyLink

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

caseGStickyNote

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

caseGTransientSheetNode

public java.lang.Object caseGTransientSheetNode(GTransientSheetNode object)
Returns the result of interpretting the object as an instance of 'GTransient 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 'GTransient Sheet Node'.
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)

caseGPersistentSheetLink

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

caseGDiagramParent

public java.lang.Object caseGDiagramParent(GDiagramParent object)
Returns the result of interpretting the object as an instance of 'GDiagram Parent'. 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 Parent'.
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)