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 calldoSwitch(object)
to invoke thecaseXXX
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:
TacticdslPackage
- Generated:
-
-
Field Summary
Fields Modifier and Type Field Description protected static TacticdslPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description TacticdslSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAnyProperty(AnyProperty object)
Returns the result of interpreting the object as an instance of 'Any Property'.T
caseApplication(Application object)
Returns the result of interpreting the object as an instance of 'Application'.T
caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'.T
caseBasicType(BasicType object)
Returns the result of interpreting the object as an instance of 'Basic Type'.T
caseCommandEvent(CommandEvent object)
Returns the result of interpreting the object as an instance of 'Command Event'.T
caseComplexType(ComplexType object)
Returns the result of interpreting the object as an instance of 'Complex Type'.T
caseConsumer(Consumer object)
Returns the result of interpreting the object as an instance of 'Consumer'.T
caseDataTransferObject(DataTransferObject object)
Returns the result of interpreting the object as an instance of 'Data Transfer Object'.T
caseDependency(Dependency object)
Returns the result of interpreting the object as an instance of 'Dependency'.T
caseDomainEvent(DomainEvent object)
Returns the result of interpreting the object as an instance of 'Domain Event'.T
caseDomainObject(DomainObject object)
Returns the result of interpreting the object as an instance of 'Domain Object'.T
caseDomainObjectOperation(DomainObjectOperation object)
Returns the result of interpreting the object as an instance of 'Domain Object Operation'.T
caseDomainObjectTypedElement(DomainObjectTypedElement object)
Returns the result of interpreting the object as an instance of 'Domain Object Typed Element'.T
caseDtoAttribute(DtoAttribute object)
Returns the result of interpreting the object as an instance of 'Dto Attribute'.T
caseDtoProperty(DtoProperty object)
Returns the result of interpreting the object as an instance of 'Dto Property'.T
caseDtoReference(DtoReference object)
Returns the result of interpreting the object as an instance of 'Dto Reference'.T
caseEntity(Entity object)
Returns the result of interpreting the object as an instance of 'Entity'.T
caseEnum(Enum object)
Returns the result of interpreting the object as an instance of 'Enum'.T
caseEnumAttribute(EnumAttribute object)
Returns the result of interpreting the object as an instance of 'Enum Attribute'.T
caseEnumParameter(EnumParameter object)
Returns the result of interpreting the object as an instance of 'Enum Parameter'.T
caseEnumValue(EnumValue object)
Returns the result of interpreting the object as an instance of 'Enum Value'.T
caseEvent(Event object)
Returns the result of interpreting the object as an instance of 'Event'.T
caseOppositeHolder(OppositeHolder object)
Returns the result of interpreting the object as an instance of 'Opposite Holder'.T
caseParameter(Parameter object)
Returns the result of interpreting the object as an instance of 'Parameter'.T
caseProperty(Property object)
Returns the result of interpreting the object as an instance of 'Property'.T
casePublish(Publish object)
Returns the result of interpreting the object as an instance of 'Publish'.T
caseReference(Reference object)
Returns the result of interpreting the object as an instance of 'Reference'.T
caseRepository(Repository object)
Returns the result of interpreting the object as an instance of 'Repository'.T
caseRepositoryOperation(RepositoryOperation object)
Returns the result of interpreting the object as an instance of 'Repository Operation'.T
caseResource(Resource object)
Returns the result of interpreting the object as an instance of 'Resource'.T
caseResourceOperation(ResourceOperation object)
Returns the result of interpreting the object as an instance of 'Resource Operation'.T
caseResourceOperationDelegate(ResourceOperationDelegate object)
Returns the result of interpreting the object as an instance of 'Resource Operation Delegate'.T
caseService(Service object)
Returns the result of interpreting the object as an instance of 'Service'.T
caseServiceDependency(ServiceDependency object)
Returns the result of interpreting the object as an instance of 'Service Dependency'.T
caseServiceOperation(ServiceOperation object)
Returns the result of interpreting the object as an instance of 'Service Operation'.T
caseServiceOperationDelegate(ServiceOperationDelegate object)
Returns the result of interpreting the object as an instance of 'Service Operation Delegate'.T
caseServiceRepositoryOperationOption(ServiceRepositoryOperationOption object)
Returns the result of interpreting the object as an instance of 'Service Repository Operation Option'.T
caseServiceRepositoryOption(ServiceRepositoryOption object)
Returns the result of interpreting the object as an instance of 'Service Repository Option'.T
caseSimpleDomainObject(SimpleDomainObject object)
Returns the result of interpreting the object as an instance of 'Simple Domain Object'.T
caseSubscribe(Subscribe object)
Returns the result of interpreting the object as an instance of 'Subscribe'.T
caseTacticDDDModel(TacticDDDModel object)
Returns the result of interpreting the object as an instance of 'Tactic DDD Model'.T
caseTrait(Trait object)
Returns the result of interpreting the object as an instance of 'Trait'.T
caseValueObject(ValueObject object)
Returns the result of interpreting the object as an instance of 'Value Object'.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)
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.
-
-
-
Field Detail
-
modelPackage
protected static TacticdslPackage modelPackage
The cached model package- Generated:
-
-
Method Detail
-
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
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.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call. - Generated:
-
caseTacticDDDModel
public T caseTacticDDDModel(TacticDDDModel object)
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:
-
caseApplication
public T caseApplication(Application object)
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:
-
caseService
public T caseService(Service object)
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
public T caseResource(Resource object)
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
public T caseConsumer(Consumer object)
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
public T caseSubscribe(Subscribe object)
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
public T casePublish(Publish object)
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
public T caseEvent(Event object)
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
public T caseDomainObjectTypedElement(DomainObjectTypedElement object)
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
public T caseServiceOperation(ServiceOperation object)
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:
-
caseServiceOperationDelegate
public T caseServiceOperationDelegate(ServiceOperationDelegate object)
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
public T caseServiceRepositoryOption(ServiceRepositoryOption object)
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
public T caseServiceRepositoryOperationOption(ServiceRepositoryOperationOption object)
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
public T caseResourceOperation(ResourceOperation object)
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
public T caseResourceOperationDelegate(ResourceOperationDelegate object)
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
public T caseRepositoryOperation(RepositoryOperation object)
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
public T caseParameter(Parameter object)
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
public T caseComplexType(ComplexType object)
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
public T caseSimpleDomainObject(SimpleDomainObject object)
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
public T caseDomainObject(DomainObject object)
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
public T caseEntity(Entity object)
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
public T caseValueObject(ValueObject object)
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
public T caseDomainEvent(DomainEvent object)
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
public T caseCommandEvent(CommandEvent object)
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
public T caseTrait(Trait object)
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
public T caseDomainObjectOperation(DomainObjectOperation object)
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
public T caseDataTransferObject(DataTransferObject object)
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
public T caseBasicType(BasicType object)
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
public T caseAttribute(Attribute object)
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
public T caseReference(Reference object)
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:
-
caseDtoAttribute
public T caseDtoAttribute(DtoAttribute object)
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
public T caseDtoReference(DtoReference object)
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
public T caseOppositeHolder(OppositeHolder object)
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
public T caseRepository(Repository object)
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
public T caseServiceDependency(ServiceDependency object)
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
public T caseDependency(Dependency object)
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
public T caseEnum(Enum object)
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
public T caseEnumAttribute(EnumAttribute object)
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
public T caseEnumValue(EnumValue object)
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
public T caseEnumParameter(EnumParameter object)
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
public T caseAnyProperty(AnyProperty object)
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
public T caseProperty(Property object)
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
public T caseDtoProperty(DtoProperty object)
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
public T defaultCase(org.eclipse.emf.ecore.EObject object)
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:
-
-