public class StructureSwitch<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.
StructurePackage| Constructor and Description |
|---|
StructureSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public StructureSwitch()
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 caseAbstractStructureElement(AbstractStructureElement object)
object - the target of the switch.doSwitch(EObject)public T caseSubsystem(Subsystem object)
object - the target of the switch.doSwitch(EObject)public T caseLayer(Layer object)
object - the target of the switch.doSwitch(EObject)public T caseStructureModel(StructureModel object)
object - the target of the switch.doSwitch(EObject)public T caseComponent(Component object)
object - the target of the switch.doSwitch(EObject)public T caseSoftwareSystem(SoftwareSystem object)
object - the target of the switch.doSwitch(EObject)public T caseAbstractStructureRelationship(AbstractStructureRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseStructureRelationship(StructureRelationship object)
object - the target of the switch.doSwitch(EObject)public T caseArchitectureView(ArchitectureView object)
object - the target of the switch.doSwitch(EObject)public T caseStructureElement(StructureElement 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 caseKDMEntity(KDMEntity 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 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)