|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.mm.util.MmSwitch
public class MmSwitch
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.
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 |
---|
public MmSwitch()
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 caseGInheritance(GInheritance object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGAssociation(GAssociation object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGClass(GClass object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGPackage(GPackage object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGDataType(GDataType object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGEnum(GEnum object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGEnumLiteral(GEnumLiteral object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMmSheet(MmSheet object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGClassAttribute(GClassAttribute object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGClassOperation(GClassOperation object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGAttribution(GAttribution object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGClassNode(GClassNode object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGSheetAttribute(GSheetAttribute object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseMmSheetLink(MmSheetLink 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 caseGElement(GElement 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 caseGNodeElement(GNodeElement 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 caseGLinkElement(GLinkElement 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 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 caseGSheetLink(GSheetLink 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 caseGTransientSheetLink(GTransientSheetLink object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseGDiagram(GDiagram 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 caseGNamedElement(GNamedElement 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 |