org.eclipse.gmt.modisco.omg.kdm.source.util
Class SourceSwitch<T>

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

public class SourceSwitch<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:
SourcePackage
Generated:

Constructor Summary
SourceSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractInventoryElement(AbstractInventoryElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Inventory Element'.
 T caseAbstractInventoryRelationship(AbstractInventoryRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Inventory Relationship'.
 T caseBinaryFile(BinaryFile object)
          Returns the result of interpreting the object as an instance of 'Binary File'.
 T caseConfiguration(Configuration object)
          Returns the result of interpreting the object as an instance of 'Configuration'.
 T caseDependsOn(DependsOn object)
          Returns the result of interpreting the object as an instance of 'Depends On'.
 T caseDirectory(Directory object)
          Returns the result of interpreting the object as an instance of 'Directory'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseExecutableFile(ExecutableFile object)
          Returns the result of interpreting the object as an instance of 'Executable File'.
 T caseImage(Image object)
          Returns the result of interpreting the object as an instance of 'Image'.
 T caseInventoryContainer(InventoryContainer object)
          Returns the result of interpreting the object as an instance of 'Inventory Container'.
 T caseInventoryElement(InventoryElement object)
          Returns the result of interpreting the object as an instance of 'Inventory Element'.
 T caseInventoryItem(InventoryItem object)
          Returns the result of interpreting the object as an instance of 'Inventory Item'.
 T caseInventoryModel(InventoryModel object)
          Returns the result of interpreting the object as an instance of 'Inventory Model'.
 T caseInventoryRelationship(InventoryRelationship object)
          Returns the result of interpreting the object as an instance of 'Inventory Relationship'.
 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 caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseProject(Project object)
          Returns the result of interpreting the object as an instance of 'Project'.
 T caseResourceDescription(ResourceDescription object)
          Returns the result of interpreting the object as an instance of 'Resource Description'.
 T caseSourceFile(SourceFile object)
          Returns the result of interpreting the object as an instance of 'File'.
 T caseSourceRef(SourceRef object)
          Returns the result of interpreting the object as an instance of 'Ref'.
 T caseSourceRegion(SourceRegion object)
          Returns the result of interpreting the object as an instance of 'Region'.
 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

SourceSwitch

public SourceSwitch()
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:

caseInventoryModel

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

caseAbstractInventoryElement

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

caseAbstractInventoryRelationship

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

caseInventoryItem

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

caseSourceFile

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

caseImage

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

caseConfiguration

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

caseResourceDescription

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

caseBinaryFile

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

caseExecutableFile

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

caseInventoryContainer

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

caseDirectory

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

caseProject

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

caseDependsOn

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

caseSourceRef

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

caseSourceRegion

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

caseInventoryElement

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

caseInventoryRelationship

public T caseInventoryRelationship(InventoryRelationship object)
Returns the result of interpreting the object as an instance of 'Inventory 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 'Inventory Relationship'.
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:

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:

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:

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: