|
SAM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.sam.util.SAMSwitch<T>
public class SAMSwitch<T>
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.
SAMPackage
Field Summary | |
---|---|
static java.lang.String |
copyright
|
protected static SAMPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
SAMSwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
T |
caseAbstractState(AbstractState object)
Returns the result of interpretting the object as an instance of 'Abstract State'. |
T |
caseAutomaton(Automaton object)
Returns the result of interpretting the object as an instance of 'Automaton'. |
T |
caseComposition(Composition object)
Returns the result of interpretting the object as an instance of 'Composition'. |
T |
caseControlFlow(ControlFlow object)
Returns the result of interpretting the object as an instance of 'Control Flow'. |
T |
caseControlPort(ControlPort object)
Returns the result of interpretting the object as an instance of 'Control Port'. |
T |
caseDataFlow(DataFlow object)
Returns the result of interpretting the object as an instance of 'Data Flow'. |
T |
caseDataPort(DataPort object)
Returns the result of interpretting the object as an instance of 'Data Port'. |
T |
caseDataStore(DataStore object)
Returns the result of interpretting the object as an instance of 'Data Store'. |
T |
caseDecomposition(Decomposition object)
Returns the result of interpretting the object as an instance of 'Decomposition'. |
T |
caseEModelElement(EModelElement object)
Returns the result of interpretting the object as an instance of 'EModel Element'. |
T |
caseFlow(Flow object)
Returns the result of interpretting the object as an instance of 'Flow' |
T |
caseIdentifiedItem(IdentifiedItem object)
Returns the result of interpretting the object as an instance of 'Identified Item'. |
T |
caseInControlPort(InControlPort object)
Returns the result of interpretting the object as an instance of 'In Control Port'. |
T |
caseInDataPort(InDataPort object)
Returns the result of interpretting the object as an instance of 'In Data Port'. |
T |
caseInitialState(InitialState object)
Returns the result of interpretting the object as an instance of 'Initial State'. |
T |
caseInputPort(InputPort object)
Returns the result of interpretting the object as an instance of 'Input Port'. |
T |
caseMacroState(MacroState object)
Returns the result of interpretting the object as an instance of 'Macro State'. |
T |
caseModel(Model object)
Returns the result of interpretting the object as an instance of 'Model' |
T |
caseModelContent(ModelContent object)
Returns the result of interpretting the object as an instance of 'Model Content'. |
T |
caseMultiPort(MultiPort object)
Returns the result of interpretting the object as an instance of 'Multi Port'. |
T |
caseNamedItem(NamedItem object)
Returns the result of interpretting the object as an instance of 'Named Item'. |
T |
caseOutControlPort(OutControlPort object)
Returns the result of interpretting the object as an instance of 'Out Control Port'. |
T |
caseOutDataPort(OutDataPort object)
Returns the result of interpretting the object as an instance of 'Out Data Port'. |
T |
caseOutputPort(OutputPort object)
Returns the result of interpretting the object as an instance of 'Output Port'. |
T |
casePort(Port object)
Returns the result of interpretting the object as an instance of 'Port' |
T |
caseState(State object)
Returns the result of interpretting the object as an instance of 'State' |
T |
caseSynchronisationGate(SynchronisationGate object)
Returns the result of interpretting the object as an instance of 'Synchronisation Gate'. |
T |
caseSystem(System object)
Returns the result of interpretting the object as an instance of 'System' |
T |
caseTransition(Transition object)
Returns the result of interpretting the object as an instance of 'Transition'. |
T |
defaultCase(EObject object)
Returns the result of interpretting the object as an instance of 'EObject' |
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
T |
doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected T |
doSwitch(int classifierID,
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String copyright
protected static SAMPackage modelPackage
Constructor Detail |
---|
public SAMSwitch()
Method Detail |
---|
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.protected T doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseAbstractState(AbstractState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAutomaton(Automaton object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInitialState(InitialState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMacroState(MacroState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseState(State object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransition(Transition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseControlPort(ControlPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataPort(DataPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInControlPort(InControlPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInDataPort(InDataPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInputPort(InputPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOutControlPort(OutControlPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOutDataPort(OutDataPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOutputPort(OutputPort object)
object
- the target of the switch.
doSwitch(EObject)
public T casePort(Port object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComposition(Composition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseControlFlow(ControlFlow object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataFlow(DataFlow object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataStore(DataStore object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDecomposition(Decomposition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFlow(Flow object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSynchronisationGate(SynchronisationGate object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSystem(System object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModel(Model object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModelContent(ModelContent object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIdentifiedItem(IdentifiedItem object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedItem(NamedItem object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMultiPort(MultiPort object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEModelElement(EModelElement 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)
|
SAM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.