public class StandardSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
StandardPackage
Modifier and Type | Field and Description |
---|---|
protected static StandardPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
StandardSwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseAuxiliary(Auxiliary object)
Returns the result of interpreting the object as an instance of 'Auxiliary'
|
T |
caseBuildComponent(BuildComponent object)
Returns the result of interpreting the object as an instance of 'Build Component'
|
T |
caseCall(Call object)
Returns the result of interpreting the object as an instance of 'Call'
|
T |
caseCreate(Create object)
Returns the result of interpreting the object as an instance of 'Create'
|
T |
caseDerive(Derive object)
Returns the result of interpreting the object as an instance of 'Derive'
|
T |
caseDestroy(Destroy object)
Returns the result of interpreting the object as an instance of 'Destroy'
|
T |
caseDocument(Document object)
Returns the result of interpreting the object as an instance of 'Document'
|
T |
caseEntity(Entity object)
Returns the result of interpreting the object as an instance of 'Entity'
|
T |
caseExecutable(Executable object)
Returns the result of interpreting the object as an instance of 'Executable'
|
T |
caseFile(File object)
Returns the result of interpreting the object as an instance of 'File'
|
T |
caseFocus(Focus object)
Returns the result of interpreting the object as an instance of 'Focus'
|
T |
caseFramework(Framework object)
Returns the result of interpreting the object as an instance of 'Framework'
|
T |
caseImplement(Implement object)
Returns the result of interpreting the object as an instance of 'Implement'
|
T |
caseImplementationClass(ImplementationClass object)
Returns the result of interpreting the object as an instance of 'Implementation Class'
|
T |
caseInstantiate(Instantiate object)
Returns the result of interpreting the object as an instance of 'Instantiate'
|
T |
caseLibrary(Library object)
Returns the result of interpreting the object as an instance of 'Library'
|
T |
caseMetaclass(Metaclass object)
Returns the result of interpreting the object as an instance of 'Metaclass'
|
T |
caseMetamodel(Metamodel object)
Returns the result of interpreting the object as an instance of 'Metamodel'
|
T |
caseModelLibrary(ModelLibrary object)
Returns the result of interpreting the object as an instance of 'Model Library'
|
T |
caseProcess(Process object)
Returns the result of interpreting the object as an instance of 'Process'
|
T |
caseRealization(Realization object)
Returns the result of interpreting the object as an instance of 'Realization'
|
T |
caseRefine(Refine object)
Returns the result of interpreting the object as an instance of 'Refine'
|
T |
caseResponsibility(Responsibility object)
Returns the result of interpreting the object as an instance of 'Responsibility'
|
T |
caseScript(Script object)
Returns the result of interpreting the object as an instance of 'Script'
|
T |
caseSend(Send object)
Returns the result of interpreting the object as an instance of 'Send'
|
T |
caseService(Service object)
Returns the result of interpreting the object as an instance of 'Service'
|
T |
caseSource(Source object)
Returns the result of interpreting the object as an instance of 'Source'
|
T |
caseSpecification(Specification object)
Returns the result of interpreting the object as an instance of 'Specification'
|
T |
caseSubsystem(Subsystem object)
Returns the result of interpreting the object as an instance of 'Subsystem'
|
T |
caseSystemModel(SystemModel object)
Returns the result of interpreting the object as an instance of 'System Model'
|
T |
caseTrace(Trace object)
Returns the result of interpreting the object as an instance of 'Trace'
|
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'
|
T |
caseUtility(Utility object)
Returns the result of interpreting the object as an instance of 'Utility'
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T |
doSwitch(int classifierID,
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 |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static StandardPackage modelPackage
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
ePackage
- the package in question.protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseAuxiliary(Auxiliary object)
object
- the target of the switch.doSwitch(EObject)
public T caseCall(Call object)
object
- the target of the switch.doSwitch(EObject)
public T caseCreate(Create object)
object
- the target of the switch.doSwitch(EObject)
public T caseDerive(Derive object)
object
- the target of the switch.doSwitch(EObject)
public T caseDestroy(Destroy object)
object
- the target of the switch.doSwitch(EObject)
public T caseDocument(Document object)
object
- the target of the switch.doSwitch(EObject)
public T caseFile(File object)
object
- the target of the switch.doSwitch(EObject)
public T caseEntity(Entity object)
object
- the target of the switch.doSwitch(EObject)
public T caseExecutable(Executable object)
object
- the target of the switch.doSwitch(EObject)
public T caseFocus(Focus object)
object
- the target of the switch.doSwitch(EObject)
public T caseFramework(Framework object)
object
- the target of the switch.doSwitch(EObject)
public T caseImplement(Implement object)
object
- the target of the switch.doSwitch(EObject)
public T caseImplementationClass(ImplementationClass object)
object
- the target of the switch.doSwitch(EObject)
public T caseInstantiate(Instantiate object)
object
- the target of the switch.doSwitch(EObject)
public T caseLibrary(Library object)
object
- the target of the switch.doSwitch(EObject)
public T caseMetaclass(Metaclass object)
object
- the target of the switch.doSwitch(EObject)
public T caseModelLibrary(ModelLibrary object)
object
- the target of the switch.doSwitch(EObject)
public T caseProcess(Process object)
object
- the target of the switch.doSwitch(EObject)
public T caseRealization(Realization object)
object
- the target of the switch.doSwitch(EObject)
public T caseRefine(Refine object)
object
- the target of the switch.doSwitch(EObject)
public T caseResponsibility(Responsibility object)
object
- the target of the switch.doSwitch(EObject)
public T caseScript(Script object)
object
- the target of the switch.doSwitch(EObject)
public T caseSend(Send object)
object
- the target of the switch.doSwitch(EObject)
public T caseService(Service object)
object
- the target of the switch.doSwitch(EObject)
public T caseSource(Source object)
object
- the target of the switch.doSwitch(EObject)
public T caseSpecification(Specification object)
object
- the target of the switch.doSwitch(EObject)
public T caseSubsystem(Subsystem object)
object
- the target of the switch.doSwitch(EObject)
public T caseTrace(Trace object)
object
- the target of the switch.doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseUtility(Utility object)
object
- the target of the switch.doSwitch(EObject)
public T caseBuildComponent(BuildComponent object)
object
- the target of the switch.doSwitch(EObject)
public T caseMetamodel(Metamodel object)
object
- the target of the switch.doSwitch(EObject)
public T caseSystemModel(SystemModel object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)