Class RepositorySwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.pcm.repository.util.RepositorySwitch<T>
- Direct Known Subclasses:
RepositoryPrinter
,SignaturePrinter
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 class or method.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static RepositoryPackage
The cached model package -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseBasicComponent
(BasicComponent object) Returns the result of interpreting the object as an instance of 'Basic Component'.Returns the result of interpreting the object as an instance of 'Collection Data Type'.Returns the result of interpreting the object as an instance of 'Complete Component Type'.Returns the result of interpreting the object as an instance of 'Composed Providing Requiring Entity'.Returns the result of interpreting the object as an instance of 'Composed Structure'.Returns the result of interpreting the object as an instance of 'Composite Component'.Returns the result of interpreting the object as an instance of 'Composite Data Type'.caseDataType
(DataType object) Returns the result of interpreting the object as an instance of 'Data Type'.caseEntity
(Entity object) Returns the result of interpreting the object as an instance of 'Entity'.caseEventGroup
(EventGroup object) Returns the result of interpreting the object as an instance of 'Event Group'.caseEventType
(EventType object) Returns the result of interpreting the object as an instance of 'Event Type'.caseExceptionType
(ExceptionType object) Returns the result of interpreting the object as an instance of 'Exception Type'.caseIdentifier
(de.uka.ipd.sdq.identifier.Identifier object) Returns the result of interpreting the object as an instance of 'Identifier'.Returns the result of interpreting the object as an instance of 'Implementation Component Type'.Returns the result of interpreting the object as an instance of 'Infrastructure Interface'.Returns the result of interpreting the object as an instance of 'Infrastructure Provided Role'.Returns the result of interpreting the object as an instance of 'Infrastructure Required Role'.Returns the result of interpreting the object as an instance of 'Infrastructure Signature'.caseInnerDeclaration
(InnerDeclaration object) Returns the result of interpreting the object as an instance of 'Inner Declaration'.caseInterface
(Interface object) Returns the result of interpreting the object as an instance of 'Interface'.Returns the result of interpreting the object as an instance of 'Interface Providing Entity'.Returns the result of interpreting the object as an instance of 'Interface Providing Requiring Entity'.Returns the result of interpreting the object as an instance of 'Interface Requiring Entity'.caseNamedElement
(NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.Returns the result of interpreting the object as an instance of 'Operation Interface'.Returns the result of interpreting the object as an instance of 'Operation Provided Role'.Returns the result of interpreting the object as an instance of 'Operation Required Role'.Returns the result of interpreting the object as an instance of 'Operation Signature'.caseParameter
(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.casePassiveResource
(PassiveResource object) Returns the result of interpreting the object as an instance of 'Passive Resource'.casePCMBaseClass
(PCMBaseClass object) Returns the result of interpreting the object as an instance of 'PCM Base Class'.casePCMClass
(PCMClass object) Returns the result of interpreting the object as an instance of 'PCM Class'.Returns the result of interpreting the object as an instance of 'Primitive Data Type'.caseProvidedRole
(ProvidedRole object) Returns the result of interpreting the object as an instance of 'Provided Role'.Returns the result of interpreting the object as an instance of 'Provides Component Type'.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 'Component'.Returns the result of interpreting the object as an instance of 'Required Characterisation'.caseRequiredRole
(RequiredRole object) Returns the result of interpreting the object as an instance of 'Required Role'.Returns the result of interpreting the object as an instance of 'Resource Interface Requiring Entity'.Returns the result of interpreting the object as an instance of 'Role'.caseSignature
(Signature object) Returns the result of interpreting the object as an instance of 'Signature'.caseSinkRole
(SinkRole object) Returns the result of interpreting the object as an instance of 'Sink Role'.caseSourceRole
(SourceRole object) Returns the result of interpreting the object as an instance of 'Source Role'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
copyright
- See Also:
- Generated class or method.
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
RepositorySwitch
public RepositorySwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
- Generated class or method.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result. -
casePassiveResource
Returns the result of interpreting the object as an instance of 'Passive 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 'Passive Resource'.
- See Also:
- Generated class or method.
-
caseBasicComponent
Returns the result of interpreting the object as an instance of 'Basic Component'. 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 Component'.
- See Also:
- Generated class or method.
-
caseImplementationComponentType
Returns the result of interpreting the object as an instance of 'Implementation Component 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 'Implementation Component Type'.
- See Also:
- Generated class or method.
-
caseRepositoryComponent
Returns the result of interpreting the object as an instance of 'Component'. 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 'Component'.
- See Also:
- Generated class or method.
-
caseProvidedRole
Returns the result of interpreting the object as an instance of 'Provided Role'. 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 'Provided Role'.
- See Also:
- Generated class or method.
-
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:
- Generated class or method.
-
caseDataType
Returns the result of interpreting the object as an instance of 'Data 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 'Data Type'.
- See Also:
- Generated class or method.
-
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:
- Generated class or method.
-
caseInterface
Returns the result of interpreting the object as an instance of 'Interface'. 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 'Interface'.
- See Also:
- Generated class or method.
-
caseRequiredCharacterisation
Returns the result of interpreting the object as an instance of 'Required Characterisation'. 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 'Required Characterisation'.
- See Also:
- Generated class or method.
-
caseEventGroup
Returns the result of interpreting the object as an instance of 'Event Group'. 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 Group'.
- See Also:
- Generated class or method.
-
caseEventType
Returns the result of interpreting the object as an instance of 'Event 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 'Event Type'.
- See Also:
- Generated class or method.
-
caseSignature
Returns the result of interpreting the object as an instance of 'Signature'. 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 'Signature'.
- See Also:
- Generated class or method.
-
caseExceptionType
Returns the result of interpreting the object as an instance of 'Exception 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 'Exception Type'.
- See Also:
- Generated class or method.
-
caseInfrastructureSignature
Returns the result of interpreting the object as an instance of 'Infrastructure Signature'. 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 'Infrastructure Signature'.
- See Also:
- Generated class or method.
-
caseInfrastructureInterface
Returns the result of interpreting the object as an instance of 'Infrastructure Interface'. 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 'Infrastructure Interface'.
- See Also:
- Generated class or method.
-
caseInfrastructureRequiredRole
Returns the result of interpreting the object as an instance of 'Infrastructure Required Role'. 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 'Infrastructure Required Role'.
- See Also:
- Generated class or method.
-
caseRequiredRole
Returns the result of interpreting the object as an instance of 'Required Role'. 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 'Required Role'.
- See Also:
- Generated class or method.
-
caseOperationSignature
Returns the result of interpreting the object as an instance of 'Operation Signature'. 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 Signature'.
- See Also:
- Generated class or method.
-
caseOperationInterface
Returns the result of interpreting the object as an instance of 'Operation Interface'. 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 Interface'.
- See Also:
- Generated class or method.
-
caseOperationRequiredRole
Returns the result of interpreting the object as an instance of 'Operation Required Role'. 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 Required Role'.
- See Also:
- Generated class or method.
-
caseSourceRole
Returns the result of interpreting the object as an instance of 'Source Role'. 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 'Source Role'.
- See Also:
- Generated class or method.
-
caseSinkRole
Returns the result of interpreting the object as an instance of 'Sink Role'. 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 'Sink Role'.
- See Also:
- Generated class or method.
-
caseOperationProvidedRole
Returns the result of interpreting the object as an instance of 'Operation Provided Role'. 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 Provided Role'.
- See Also:
- Generated class or method.
-
caseInfrastructureProvidedRole
Returns the result of interpreting the object as an instance of 'Infrastructure Provided Role'. 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 'Infrastructure Provided Role'.
- See Also:
- Generated class or method.
-
caseCompleteComponentType
Returns the result of interpreting the object as an instance of 'Complete Component 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 'Complete Component Type'.
- See Also:
- Generated class or method.
-
caseProvidesComponentType
Returns the result of interpreting the object as an instance of 'Provides Component 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 'Provides Component Type'.
- See Also:
- Generated class or method.
-
caseCompositeComponent
Returns the result of interpreting the object as an instance of 'Composite Component'. 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 'Composite Component'.
- See Also:
- Generated class or method.
-
casePrimitiveDataType
Returns the result of interpreting the object as an instance of 'Primitive Data 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 'Primitive Data Type'.
- See Also:
- Generated class or method.
-
caseCollectionDataType
Returns the result of interpreting the object as an instance of 'Collection Data 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 'Collection Data Type'.
- See Also:
- Generated class or method.
-
caseCompositeDataType
Returns the result of interpreting the object as an instance of 'Composite Data 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 'Composite Data Type'.
- See Also:
- Generated class or method.
-
caseInnerDeclaration
Returns the result of interpreting the object as an instance of 'Inner Declaration'. 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 'Inner Declaration'.
- See Also:
- Generated class or method.
-
caseRole
Returns the result of interpreting the object as an instance of 'Role'. 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 'Role'.
- See Also:
- Generated class or method.
-
caseIdentifier
Returns the result of interpreting the object as an instance of 'Identifier'. 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 'Identifier'.
- See Also:
- Generated class or method.
-
casePCMClass
Returns the result of interpreting the object as an instance of 'PCM Class'. 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 'PCM Class'.
- See Also:
- Generated class or method.
-
casePCMBaseClass
Returns the result of interpreting the object as an instance of 'PCM Base Class'. 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 'PCM Base Class'.
- See Also:
- Generated class or method.
-
caseNamedElement
Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'.
- See Also:
- Generated class or method.
-
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:
- Generated class or method.
-
caseInterfaceProvidingEntity
Returns the result of interpreting the object as an instance of 'Interface Providing 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 'Interface Providing Entity'.
- See Also:
- Generated class or method.
-
caseResourceInterfaceRequiringEntity
Returns the result of interpreting the object as an instance of 'Resource Interface Requiring 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 'Resource Interface Requiring Entity'.
- See Also:
- Generated class or method.
-
caseInterfaceRequiringEntity
Returns the result of interpreting the object as an instance of 'Interface Requiring 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 'Interface Requiring Entity'.
- See Also:
- Generated class or method.
-
caseInterfaceProvidingRequiringEntity
Returns the result of interpreting the object as an instance of 'Interface Providing Requiring 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 'Interface Providing Requiring Entity'.
- See Also:
- Generated class or method.
-
caseComposedStructure
Returns the result of interpreting the object as an instance of 'Composed Structure'. 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 'Composed Structure'.
- See Also:
- Generated class or method.
-
caseComposedProvidingRequiringEntity
Returns the result of interpreting the object as an instance of 'Composed Providing Requiring 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 'Composed Providing Requiring Entity'.
- See Also:
- Generated class or method.
-
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 classSwitch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
- Generated class or method.
-