|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.Switch<T> org.eclipse.uml2.uml.profile.l2.util.L2Switch<T>
public class L2Switch<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.
L2Package
Field Summary | |
---|---|
protected static L2Package |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
L2Switch()
Creates an instance of the switch |
Method Summary | |
---|---|
T |
caseAuxiliary(Auxiliary object)
Returns the result of interpreting the object as an instance of 'Auxiliary' |
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 |
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 |
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 |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
---|
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static L2Package modelPackage
Constructor Detail |
---|
public L2Switch()
Method Detail |
---|
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
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 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)
|
Copyright 2003, 2012 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |