Class TacticdslSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.contextmapper.tactic.dsl.tacticdsl.util.TacticdslSwitch<T>
public class TacticdslSwitch<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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAnyProperty
(AnyProperty object) Returns the result of interpreting the object as an instance of 'Any Property'.caseAssociation
(Association object) Returns the result of interpreting the object as an instance of 'Association'.caseAttribute
(Attribute object) Returns the result of interpreting the object as an instance of 'Attribute'.caseBasicType
(BasicType object) Returns the result of interpreting the object as an instance of 'Basic Type'.caseCommandEvent
(CommandEvent object) Returns the result of interpreting the object as an instance of 'Command Event'.caseComplexType
(ComplexType object) Returns the result of interpreting the object as an instance of 'Complex Type'.caseConsumer
(Consumer object) Returns the result of interpreting the object as an instance of 'Consumer'.Returns the result of interpreting the object as an instance of 'Data Transfer Object'.caseDependency
(Dependency object) Returns the result of interpreting the object as an instance of 'Dependency'.caseDomainEvent
(DomainEvent object) Returns the result of interpreting the object as an instance of 'Domain Event'.caseDomainObject
(DomainObject object) Returns the result of interpreting the object as an instance of 'Domain Object'.Returns the result of interpreting the object as an instance of 'Domain Object Operation'.Returns the result of interpreting the object as an instance of 'Domain Object Typed Element'.caseDtoAttribute
(DtoAttribute object) Returns the result of interpreting the object as an instance of 'Dto Attribute'.caseDtoProperty
(DtoProperty object) Returns the result of interpreting the object as an instance of 'Dto Property'.caseDtoReference
(DtoReference object) Returns the result of interpreting the object as an instance of 'Dto Reference'.caseEntity
(Entity object) Returns the result of interpreting the object as an instance of 'Entity'.Returns the result of interpreting the object as an instance of 'Enum'.caseEnumAttribute
(EnumAttribute object) Returns the result of interpreting the object as an instance of 'Enum Attribute'.caseEnumParameter
(EnumParameter object) Returns the result of interpreting the object as an instance of 'Enum Parameter'.caseEnumValue
(EnumValue object) Returns the result of interpreting the object as an instance of 'Enum Value'.Returns the result of interpreting the object as an instance of 'Event'.Returns the result of interpreting the object as an instance of 'Exclusive Alternative State Transition Target'.caseOppositeHolder
(OppositeHolder object) Returns the result of interpreting the object as an instance of 'Opposite Holder'.caseParameter
(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.caseProperty
(Property object) Returns the result of interpreting the object as an instance of 'Property'.casePublish
(Publish object) Returns the result of interpreting the object as an instance of 'Publish'.caseReference
(Reference object) Returns the result of interpreting the object as an instance of 'Reference'.caseRepository
(Repository object) Returns the result of interpreting the object as an instance of 'Repository'.Returns the result of interpreting the object as an instance of 'Repository Operation'.caseResource
(Resource object) Returns the result of interpreting the object as an instance of 'Resource'.Returns the result of interpreting the object as an instance of 'Resource Operation'.Returns the result of interpreting the object as an instance of 'Resource Operation Delegate'.caseService
(Service object) Returns the result of interpreting the object as an instance of 'Service'.Returns the result of interpreting the object as an instance of 'Service Dependency'.caseServiceOperation
(ServiceOperation object) Returns the result of interpreting the object as an instance of 'Service Operation'.Returns the result of interpreting the object as an instance of 'Service Operation Delegate'.Returns the result of interpreting the object as an instance of 'Service Repository Operation Option'.Returns the result of interpreting the object as an instance of 'Service Repository Option'.Returns the result of interpreting the object as an instance of 'Simple Domain Object'.Returns the result of interpreting the object as an instance of 'Single State Transition Target'.caseStateTransition
(StateTransition object) Returns the result of interpreting the object as an instance of 'State Transition'.Returns the result of interpreting the object as an instance of 'State Transition Target'.caseSubscribe
(Subscribe object) Returns the result of interpreting the object as an instance of 'Subscribe'.Returns the result of interpreting the object as an instance of 'Tactic DDD Application'.caseTacticDDDModel
(TacticDDDModel object) Returns the result of interpreting the object as an instance of 'Tactic DDD Model'.caseTargetState
(TargetState object) Returns the result of interpreting the object as an instance of 'Target State'.Returns the result of interpreting the object as an instance of 'Trait'.caseValueObject
(ValueObject object) Returns the result of interpreting the object as an instance of 'Value Object'.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
-
TacticdslSwitch
public TacticdslSwitch()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:
-
caseTacticDDDModel
Returns the result of interpreting the object as an instance of 'Tactic DDD 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 'Tactic DDD Model'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseTacticDDDApplication
Returns the result of interpreting the object as an instance of 'Tactic DDD 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 'Tactic DDD Application'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseService
Returns the result of interpreting the object as an instance of 'Service'. 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 'Service'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseResource
Returns the result of interpreting the object as an instance of 'Resource'. 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 'Resource'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseConsumer
Returns the result of interpreting the object as an instance of 'Consumer'. 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 'Consumer'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSubscribe
Returns the result of interpreting the object as an instance of 'Subscribe'. 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 'Subscribe'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
casePublish
Returns the result of interpreting the object as an instance of 'Publish'. 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 'Publish'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEvent
Returns the result of interpreting the object as an instance of 'Event'. 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'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainObjectTypedElement
Returns the result of interpreting the object as an instance of 'Domain Object Typed Element'. 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 Object Typed Element'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseServiceOperation
Returns the result of interpreting the object as an instance of 'Service 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 'Service Operation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseStateTransition
Returns the result of interpreting the object as an instance of 'State Transition'. 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 'State Transition'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseStateTransitionTarget
Returns the result of interpreting the object as an instance of 'State Transition Target'. 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 'State Transition Target'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSingleStateTransitionTarget
Returns the result of interpreting the object as an instance of 'Single State Transition Target'. 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 State Transition Target'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseExclusiveAlternativeStateTransitionTarget
public T caseExclusiveAlternativeStateTransitionTarget(ExclusiveAlternativeStateTransitionTarget object) Returns the result of interpreting the object as an instance of 'Exclusive Alternative State Transition Target'. 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 State Transition Target'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseTargetState
Returns the result of interpreting the object as an instance of 'Target State'. 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 'Target State'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseServiceOperationDelegate
Returns the result of interpreting the object as an instance of 'Service Operation Delegate'. 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 'Service Operation Delegate'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseServiceRepositoryOption
Returns the result of interpreting the object as an instance of 'Service Repository Option'. 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 'Service Repository Option'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseServiceRepositoryOperationOption
Returns the result of interpreting the object as an instance of 'Service Repository Operation Option'. 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 'Service Repository Operation Option'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseResourceOperation
Returns the result of interpreting the object as an instance of 'Resource 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 'Resource Operation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseResourceOperationDelegate
Returns the result of interpreting the object as an instance of 'Resource Operation Delegate'. 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 'Resource Operation Delegate'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseRepositoryOperation
Returns the result of interpreting the object as an instance of 'Repository 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 'Repository Operation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseParameter
Returns the result of interpreting the object as an instance of 'Parameter'. 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 'Parameter'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseComplexType
Returns the result of interpreting the object as an instance of 'Complex Type'. 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 'Complex Type'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseSimpleDomainObject
Returns the result of interpreting the object as an instance of 'Simple Domain Object'. 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 'Simple Domain Object'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainObject
Returns the result of interpreting the object as an instance of 'Domain Object'. 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 Object'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEntity
Returns the result of interpreting the object as an instance of 'Entity'. 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 'Entity'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseValueObject
Returns the result of interpreting the object as an instance of 'Value Object'. 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 'Value Object'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainEvent
Returns the result of interpreting the object as an instance of 'Domain Event'. 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'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseCommandEvent
Returns the result of interpreting the object as an instance of 'Command Event'. 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 Event'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseTrait
Returns the result of interpreting the object as an instance of 'Trait'. 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 'Trait'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDomainObjectOperation
Returns the result of interpreting the object as an instance of 'Domain Object 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 'Domain Object Operation'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDataTransferObject
Returns the result of interpreting the object as an instance of 'Data Transfer Object'. 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 'Data Transfer Object'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseBasicType
Returns the result of interpreting the object as an instance of 'Basic Type'. 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 'Basic Type'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseAttribute
Returns the result of interpreting the object as an instance of 'Attribute'. 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 'Attribute'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseReference
Returns the result of interpreting the object as an instance of 'Reference'. 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 'Reference'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseAssociation
Returns the result of interpreting the object as an instance of 'Association'. 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 'Association'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDtoAttribute
Returns the result of interpreting the object as an instance of 'Dto Attribute'. 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 'Dto Attribute'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDtoReference
Returns the result of interpreting the object as an instance of 'Dto Reference'. 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 'Dto Reference'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseOppositeHolder
Returns the result of interpreting the object as an instance of 'Opposite Holder'. 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 'Opposite Holder'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseRepository
Returns the result of interpreting the object as an instance of 'Repository'. 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 'Repository'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseServiceDependency
Returns the result of interpreting the object as an instance of 'Service Dependency'. 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 'Service Dependency'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDependency
Returns the result of interpreting the object as an instance of 'Dependency'. 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 'Dependency'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEnum
Returns the result of interpreting the object as an instance of 'Enum'. 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 'Enum'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEnumAttribute
Returns the result of interpreting the object as an instance of 'Enum Attribute'. 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 'Enum Attribute'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEnumValue
Returns the result of interpreting the object as an instance of 'Enum Value'. 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 'Enum Value'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseEnumParameter
Returns the result of interpreting the object as an instance of 'Enum Parameter'. 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 'Enum Parameter'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseAnyProperty
Returns the result of interpreting the object as an instance of 'Any Property'. 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 'Any Property'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseProperty
Returns the result of interpreting the object as an instance of 'Property'. 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 'Property'.
- See Also:
-
doSwitch(EObject)
- Generated:
-
caseDtoProperty
Returns the result of interpreting the object as an instance of 'Dto Property'. 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 'Dto Property'.
- 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:
-