public class SourceSwitch<T>
extends java.lang.Object
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.
SourcePackage| Constructor and Description |
|---|
SourceSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public T doSwitch(EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T caseInventoryModel(InventoryModel object)
object - the target of the switch.doSwitch(EObject)public T caseAbstractInventoryElement(AbstractInventoryElement object)
object - the target of the switch.doSwitch(EObject)public T caseAbstractInventoryRelationship(AbstractInventoryRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseInventoryItem(InventoryItem object)
object - the target of the switch.doSwitch(EObject)public T caseSourceFile(SourceFile object)
object - the target of the switch.doSwitch(EObject)public T caseImage(Image object)
object - the target of the switch.doSwitch(EObject)public T caseConfiguration(Configuration object)
object - the target of the switch.doSwitch(EObject)public T caseResourceDescription(ResourceDescription object)
object - the target of the switch.doSwitch(EObject)public T caseBinaryFile(BinaryFile object)
object - the target of the switch.doSwitch(EObject)public T caseExecutableFile(ExecutableFile object)
object - the target of the switch.doSwitch(EObject)public T caseInventoryContainer(InventoryContainer object)
object - the target of the switch.doSwitch(EObject)public T caseDirectory(Directory object)
object - the target of the switch.doSwitch(EObject)public T caseProject(Project object)
object - the target of the switch.doSwitch(EObject)public T caseDependsOn(DependsOn object)
object - the target of the switch.doSwitch(EObject)public T caseSourceRef(SourceRef object)
object - the target of the switch.doSwitch(EObject)public T caseSourceRegion(SourceRegion object)
object - the target of the switch.doSwitch(EObject)public T caseInventoryElement(InventoryElement object)
object - the target of the switch.doSwitch(EObject)public T caseInventoryRelationship(InventoryRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseElement(Element object)
object - the target of the switch.doSwitch(EObject)public T caseModelElement(ModelElement object)
object - the target of the switch.doSwitch(EObject)public T caseKDMFramework(KDMFramework object)
object - the target of the switch.doSwitch(EObject)public T caseKDMModel(KDMModel object)
object - the target of the switch.doSwitch(EObject)public T caseKDMEntity(KDMEntity object)
object - the target of the switch.doSwitch(EObject)public T caseKDMRelationship(KDMRelationship object)
object - the target of the switch.doSwitch(EObject)public T defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)