Class ContextMappingDSLSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.contextmapper.dsl.contextMappingDSL.util.ContextMappingDSLSwitch<T>
public class ContextMappingDSLSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<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.
- See Also:
- Generated:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static ContextMappingDSLPackage
The cached model package -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAggregate
(Aggregate object) Returns the result of interpreting the object as an instance of 'Aggregate'.caseApplication
(Application object) Returns the result of interpreting the object as an instance of 'Application'.caseBoundedContext
(BoundedContext object) Returns the result of interpreting the object as an instance of 'Bounded Context'.Returns the result of interpreting the object as an instance of 'Command Invokation'.Returns the result of interpreting the object as an instance of 'Command Invokation Step'.Returns the result of interpreting the object as an instance of 'Concurrent Command Invokation'.Returns the result of interpreting the object as an instance of 'Concurrent Operation Invokation'.caseContextMap
(ContextMap object) Returns the result of interpreting the object as an instance of 'Context Map'.Returns the result of interpreting the object as an instance of 'Context Mapping Model'.Returns the result of interpreting the object as an instance of 'Customer Supplier Relationship'.caseDomain
(Domain object) Returns the result of interpreting the object as an instance of 'Domain'.Returns the result of interpreting the object as an instance of 'Domain Event Production Step'.caseDomainPart
(DomainPart object) Returns the result of interpreting the object as an instance of 'Domain Part'.Returns the result of interpreting the object as an instance of 'Either Command Or Operation'.Returns the result of interpreting the object as an instance of 'Either Command Or Operation Invokation'.caseEventProduction
(EventProduction object) Returns the result of interpreting the object as an instance of 'Event Production'.Returns the result of interpreting the object as an instance of 'Exclusive Alternative Command Invokation'.Returns the result of interpreting the object as an instance of 'Exclusive Alternative Event Production'.Returns the result of interpreting the object as an instance of 'Exclusive Alternative Operation Invokation'.caseFeature
(Feature object) Returns the result of interpreting the object as an instance of 'Feature'.Returns the result of interpreting the object as an instance of 'Flow'.caseFlowStep
(FlowStep object) Returns the result of interpreting the object as an instance of 'Flow Step'.caseImport
(Import object) Returns the result of interpreting the object as an instance of 'Import'.Returns the result of interpreting the object as an instance of 'Inclusive Alternative Command Invokation'.Returns the result of interpreting the object as an instance of 'Inclusive Alternative Event Production'.Returns the result of interpreting the object as an instance of 'Inclusive Alternative Operation Invokation'.Returns the result of interpreting the object as an instance of 'Multiple Event Production'.caseNormalFeature
(NormalFeature object) Returns the result of interpreting the object as an instance of 'Normal Feature'.Returns the result of interpreting the object as an instance of 'Operation Invokation'.casePartnership
(Partnership object) Returns the result of interpreting the object as an instance of 'Partnership'.caseRelationship
(Relationship object) Returns the result of interpreting the object as an instance of 'Relationship'.caseSculptorModule
(SculptorModule object) Returns the result of interpreting the object as an instance of 'Sculptor Module'.caseSharedKernel
(SharedKernel object) Returns the result of interpreting the object as an instance of 'Shared Kernel'.Returns the result of interpreting the object as an instance of 'Single Command Invokation'.Returns the result of interpreting the object as an instance of 'Single Event Production'.Returns the result of interpreting the object as an instance of 'Single Operation Invokation'.caseStoryFeature
(StoryFeature object) Returns the result of interpreting the object as an instance of 'Story Feature'.caseSubdomain
(Subdomain object) Returns the result of interpreting the object as an instance of 'Subdomain'.Returns the result of interpreting the object as an instance of 'Symmetric Relationship'.Returns the result of interpreting the object as an instance of 'Upstream Downstream Relationship'.caseUseCase
(UseCase object) Returns the result of interpreting the object as an instance of 'Use Case'.caseUserRequirement
(UserRequirement object) Returns the result of interpreting the object as an instance of 'User Requirement'.caseUserStory
(UserStory object) Returns the result of interpreting the object as an instance of 'User Story'.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) CallscaseXXX
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
-
Field Details
-
modelPackage
The cached model package- Generated:
-
-
Constructor Details
-
ContextMappingDSLSwitch
public ContextMappingDSLSwitch()Creates an instance of the switch.- Generated:
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
- Generated:
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call. - Generated:
-
caseContextMappingModel
Returns the result of interpreting the object as an instance of 'Context Mapping Model'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Context Mapping Model'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseImport
Returns the result of interpreting the object as an instance of 'Import'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Import'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseContextMap
Returns the result of interpreting the object as an instance of 'Context Map'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Context Map'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseBoundedContext
Returns the result of interpreting the object as an instance of 'Bounded Context'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bounded Context'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainPart
Returns the result of interpreting the object as an instance of 'Domain Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Domain Part'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomain
Returns the result of interpreting the object as an instance of 'Domain'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Domain'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSubdomain
Returns the result of interpreting the object as an instance of 'Subdomain'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Subdomain'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseRelationship
Returns the result of interpreting the object as an instance of 'Relationship'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Relationship'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSymmetricRelationship
Returns the result of interpreting the object as an instance of 'Symmetric Relationship'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Symmetric Relationship'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
casePartnership
Returns the result of interpreting the object as an instance of 'Partnership'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Partnership'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseUpstreamDownstreamRelationship
Returns the result of interpreting the object as an instance of 'Upstream Downstream Relationship'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Upstream Downstream Relationship'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseCustomerSupplierRelationship
Returns the result of interpreting the object as an instance of 'Customer Supplier Relationship'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Customer Supplier Relationship'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseAggregate
Returns the result of interpreting the object as an instance of 'Aggregate'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Aggregate'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseApplication
Returns the result of interpreting the object as an instance of 'Application'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Application'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseFlow
Returns the result of interpreting the object as an instance of 'Flow'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Flow'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseFlowStep
Returns the result of interpreting the object as an instance of 'Flow Step'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Flow Step'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainEventProductionStep
Returns the result of interpreting the object as an instance of 'Domain Event Production Step'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Domain Event Production Step'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseCommandInvokationStep
Returns the result of interpreting the object as an instance of 'Command Invokation Step'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Command Invokation Step'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEitherCommandOrOperation
Returns the result of interpreting the object as an instance of 'Either Command Or Operation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Either Command Or Operation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEitherCommandOrOperationInvokation
Returns the result of interpreting the object as an instance of 'Either Command Or Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Either Command Or Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseCommandInvokation
Returns the result of interpreting the object as an instance of 'Command Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Command Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSingleCommandInvokation
Returns the result of interpreting the object as an instance of 'Single Command Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Single Command Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseConcurrentCommandInvokation
Returns the result of interpreting the object as an instance of 'Concurrent Command Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Concurrent Command Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseExclusiveAlternativeCommandInvokation
Returns the result of interpreting the object as an instance of 'Exclusive Alternative Command Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exclusive Alternative Command Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseInclusiveAlternativeCommandInvokation
Returns the result of interpreting the object as an instance of 'Inclusive Alternative Command Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Inclusive Alternative Command Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseOperationInvokation
Returns the result of interpreting the object as an instance of 'Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSingleOperationInvokation
Returns the result of interpreting the object as an instance of 'Single Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Single Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseConcurrentOperationInvokation
Returns the result of interpreting the object as an instance of 'Concurrent Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Concurrent Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseExclusiveAlternativeOperationInvokation
public T caseExclusiveAlternativeOperationInvokation(ExclusiveAlternativeOperationInvokation object) Returns the result of interpreting the object as an instance of 'Exclusive Alternative Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exclusive Alternative Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseInclusiveAlternativeOperationInvokation
public T caseInclusiveAlternativeOperationInvokation(InclusiveAlternativeOperationInvokation object) Returns the result of interpreting the object as an instance of 'Inclusive Alternative Operation Invokation'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Inclusive Alternative Operation Invokation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEventProduction
Returns the result of interpreting the object as an instance of 'Event Production'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Event Production'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSingleEventProduction
Returns the result of interpreting the object as an instance of 'Single Event Production'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Single Event Production'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseMultipleEventProduction
Returns the result of interpreting the object as an instance of 'Multiple Event Production'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Multiple Event Production'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseExclusiveAlternativeEventProduction
Returns the result of interpreting the object as an instance of 'Exclusive Alternative Event Production'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Exclusive Alternative Event Production'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseInclusiveAlternativeEventProduction
Returns the result of interpreting the object as an instance of 'Inclusive Alternative Event Production'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Inclusive Alternative Event Production'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseUserRequirement
Returns the result of interpreting the object as an instance of 'User Requirement'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'User Requirement'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseUseCase
Returns the result of interpreting the object as an instance of 'Use Case'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Use Case'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseUserStory
Returns the result of interpreting the object as an instance of 'User Story'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'User Story'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseFeature
Returns the result of interpreting the object as an instance of 'Feature'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Feature'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseNormalFeature
Returns the result of interpreting the object as an instance of 'Normal Feature'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Normal Feature'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseStoryFeature
Returns the result of interpreting the object as an instance of 'Story Feature'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Story Feature'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSculptorModule
Returns the result of interpreting the object as an instance of 'Sculptor Module'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sculptor Module'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCase
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
- Generated:
-