org.eclipse.gmt.modisco.omg.kdm.structure.util
Class StructureSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.structure.util.StructureSwitch<T>

public class StructureSwitch<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:
StructurePackage
Generated:

Constructor Summary
StructureSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractStructureElement(AbstractStructureElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Structure Element'.
 T caseAbstractStructureRelationship(AbstractStructureRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Structure Relationship'.
 T caseArchitectureView(ArchitectureView object)
          Returns the result of interpreting the object as an instance of 'Architecture View'.
 T caseComponent(Component object)
          Returns the result of interpreting the object as an instance of 'Component'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMFramework(KDMFramework object)
          Returns the result of interpreting the object as an instance of 'KDM Framework'.
 T caseKDMModel(KDMModel object)
          Returns the result of interpreting the object as an instance of 'KDM Model'.
 T caseKDMRelationship(KDMRelationship object)
          Returns the result of interpreting the object as an instance of 'KDM Relationship'.
 T caseLayer(Layer object)
          Returns the result of interpreting the object as an instance of 'Layer'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseSoftwareSystem(SoftwareSystem object)
          Returns the result of interpreting the object as an instance of 'Software System'.
 T caseStructureElement(StructureElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseStructureModel(StructureModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T caseStructureRelationship(StructureRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseSubsystem(Subsystem object)
          Returns the result of interpreting the object as an instance of 'Subsystem'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(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

StructureSwitch

public StructureSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(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.
Generated:

caseAbstractStructureElement

public T caseAbstractStructureElement(AbstractStructureElement object)
Returns the result of interpreting the object as an instance of 'Abstract Structure 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 interpreting the object as an instance of 'Abstract Structure Element'.
See Also:
doSwitch(EObject)
Generated:

caseSubsystem

public T caseSubsystem(Subsystem object)
Returns the result of interpreting the object as an instance of 'Subsystem'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseLayer

public T caseLayer(Layer object)
Returns the result of interpreting the object as an instance of 'Layer'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseStructureModel

public T caseStructureModel(StructureModel object)
Returns the result of interpreting the object as an instance of '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 interpreting the object as an instance of 'Model'.
See Also:
doSwitch(EObject)
Generated:

caseComponent

public T caseComponent(Component object)
Returns the result of interpreting the object as an instance of 'Component'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseSoftwareSystem

public T caseSoftwareSystem(SoftwareSystem object)
Returns the result of interpreting the object as an instance of 'Software System'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Software System'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractStructureRelationship

public T caseAbstractStructureRelationship(AbstractStructureRelationship object)
Returns the result of interpreting the object as an instance of 'Abstract Structure Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Abstract Structure Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseStructureRelationship

public T caseStructureRelationship(StructureRelationship object)
Returns the result of interpreting the object as an instance of 'Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

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

caseArchitectureView

public T caseArchitectureView(ArchitectureView object)
Returns the result of interpreting the object as an instance of 'Architecture View'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Architecture View'.
See Also:
doSwitch(EObject)
Generated:

caseStructureElement

public T caseStructureElement(StructureElement object)
Returns the result of interpreting the object as an instance of '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 interpreting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseElement

public T caseElement(Element object)
Returns the result of interpreting the object as an instance of '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 interpreting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseModelElement

public T caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model 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 interpreting the object as an instance of 'Model Element'.
See Also:
doSwitch(EObject)
Generated:

caseKDMEntity

public T caseKDMEntity(KDMEntity object)
Returns the result of interpreting the object as an instance of 'KDM Entity'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'KDM Entity'.
See Also:
doSwitch(EObject)
Generated:

caseKDMFramework

public T caseKDMFramework(KDMFramework object)
Returns the result of interpreting the object as an instance of 'KDM Framework'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'KDM Framework'.
See Also:
doSwitch(EObject)
Generated:

caseKDMModel

public T caseKDMModel(KDMModel object)
Returns the result of interpreting the object as an instance of 'KDM 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 interpreting the object as an instance of 'KDM Model'.
See Also:
doSwitch(EObject)
Generated:

caseKDMRelationship

public T caseKDMRelationship(KDMRelationship object)
Returns the result of interpreting the object as an instance of 'KDM Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'KDM Relationship'.
See Also:
doSwitch(EObject)
Generated:

defaultCase

public T defaultCase(EObject object)
Returns the result of interpreting 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 interpreting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)
Generated: