|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.gcore.util.GcoreSwitch
public class GcoreSwitch
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.
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 |
---|
public GcoreSwitch()
Method Detail |
---|
public java.lang.Object doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public java.lang.Object caseGDiagram(GDiagram object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGElement(GElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGFolder(GFolder object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGImport(GImport object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGLinkElement(GLinkElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGModelElement(GModelElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGNamedElement(GNamedElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGNodeElement(GNodeElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGRootFolder(GRootFolder object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGSheet(GSheet object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGSheetLink(GSheetLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGSheetNode(GSheetNode object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGPersistentCoModel(GPersistentCoModel object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGTransientCoModel(GTransientCoModel object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGPersistentSheetNode(GPersistentSheetNode object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGPersistentNamedSheetNode(GPersistentNamedSheetNode object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGTransientSheetLink(GTransientSheetLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGStickyLink(GStickyLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGStickyNote(GStickyNote object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGTransientSheetNode(GTransientSheetNode object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGPersistentSheetLink(GPersistentSheetLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGDiagramParent(GDiagramParent object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |