|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.model.util.ModelSwitch<T>
public class ModelSwitch<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.
ModelPackage
Field Summary | |
---|---|
protected static ModelPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
ModelSwitch()
Creates an instance of the switch |
Method Summary | |
---|---|
T |
caseAbstractFactoryComponentFactory(AbstractFactoryComponentFactory object)
Returns the result of interpreting the object as an instance of 'Abstract Factory Component Factory' |
T |
caseAbstractPatternElement(AbstractPatternElement object)
Returns the result of interpreting the object as an instance of 'Abstract Pattern Element' |
T |
caseAbstractViewpoint(AbstractViewpoint object)
Returns the result of interpreting the object as an instance of 'Abstract Viewpoint' |
T |
caseContext(Context object)
Returns the result of interpreting the object as an instance of 'Context' |
T |
caseContextElement(ContextElement object)
Returns the result of interpreting the object as an instance of 'Context Element' |
T |
caseContract(Contract object)
Returns the result of interpreting the object as an instance of 'Contract' |
T |
caseContractElement(ContractElement object)
Returns the result of interpreting the object as an instance of 'Contract Element' |
T |
caseContractElementReference(ContractElementReference object)
Returns the result of interpreting the object as an instance of 'Contract Element Reference' |
T |
caseDomain(Domain object)
Returns the result of interpreting the object as an instance of 'Domain' |
T |
caseFactory(Factory object)
Returns the result of interpreting the object as an instance of 'Factory' |
T |
caseFactoryComponent(FactoryComponent object)
Returns the result of interpreting the object as an instance of 'Factory Component' |
T |
caseFactoryComponentInvocation(FactoryComponentInvocation object)
Returns the result of interpreting the object as an instance of 'Factory Component Invocation' |
T |
caseMappingModel(MappingModel object)
Returns the result of interpreting the object as an instance of 'Mapping Model' |
T |
caseMappingViewpoint(MappingViewpoint object)
Returns the result of interpreting the object as an instance of 'Mapping Viewpoint' |
T |
caseNamedModelElementWithId(NamedModelElementWithId object)
Returns the result of interpreting the object as an instance of 'Named Model Element With Id' |
T |
casePatternLibrary(PatternLibrary object)
Returns the result of interpreting the object as an instance of 'Pattern Library' |
T |
casePatternModel(PatternModel object)
Returns the result of interpreting the object as an instance of 'Pattern Model' |
T |
casePatternViewpoint(PatternViewpoint object)
Returns the result of interpreting the object as an instance of 'Pattern Viewpoint' |
T |
caseProductionPlan(ProductionPlan object)
Returns the result of interpreting the object as an instance of 'Production Plan' |
T |
caseSpecification(Specification object)
Returns the result of interpreting the object as an instance of 'Specification' |
T |
caseTaskFactoryHolder(TaskFactoryHolder object)
Returns the result of interpreting the object as an instance of 'Task Factory Holder' |
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type' |
T |
defaultCase(EObject object)
Returns the result of interpreting 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 |
---|
protected static ModelPackage modelPackage
Constructor Detail |
---|
public ModelSwitch()
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 caseNamedModelElementWithId(NamedModelElementWithId object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFactoryComponent(FactoryComponent object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDomain(Domain object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSpecification(Specification object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractViewpoint(AbstractViewpoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContract(Contract object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContractElement(ContractElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContractElementReference(ContractElementReference object)
object
- the target of the switch.
doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.
doSwitch(EObject)
public T casePatternViewpoint(PatternViewpoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractPatternElement(AbstractPatternElement object)
object
- the target of the switch.
doSwitch(EObject)
public T casePatternLibrary(PatternLibrary object)
object
- the target of the switch.
doSwitch(EObject)
public T casePatternModel(PatternModel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFactory(Factory object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractFactoryComponentFactory(AbstractFactoryComponentFactory object)
object
- the target of the switch.
doSwitch(EObject)
public T caseProductionPlan(ProductionPlan object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContext(Context object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContextElement(ContextElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFactoryComponentInvocation(FactoryComponentInvocation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTaskFactoryHolder(TaskFactoryHolder object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMappingViewpoint(MappingViewpoint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMappingModel(MappingModel 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)
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.