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

public class RepositorySwitch<T> extends 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 class or method.
  • Field Details

    • modelPackage

      protected static RepositoryPackage 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

      protected boolean isSwitchFor(EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
      Generated class or method.
    • doSwitch

      protected T doSwitch(int classifierID, EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Overrides:
      doSwitch in class Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
      Generated class or method.
    • casePassiveResource

      public T casePassiveResource(PassiveResource object)
      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

      public T caseBasicComponent(BasicComponent object)
      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

      public T caseImplementationComponentType(ImplementationComponentType object)
      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

      public T caseRepositoryComponent(RepositoryComponent object)
      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

      public T caseProvidedRole(ProvidedRole object)
      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

      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:
      Generated class or method.
    • caseDataType

      public T caseDataType(DataType object)
      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

      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:
      Generated class or method.
    • caseInterface

      public T caseInterface(Interface object)
      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

      public T caseRequiredCharacterisation(RequiredCharacterisation object)
      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

      public T caseEventGroup(EventGroup object)
      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

      public T caseEventType(EventType object)
      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

      public T caseSignature(Signature object)
      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

      public T caseExceptionType(ExceptionType object)
      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

      public T caseInfrastructureSignature(InfrastructureSignature object)
      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

      public T caseInfrastructureInterface(InfrastructureInterface object)
      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

      public T caseInfrastructureRequiredRole(InfrastructureRequiredRole object)
      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

      public T caseRequiredRole(RequiredRole object)
      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

      public T caseOperationSignature(OperationSignature object)
      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

      public T caseOperationInterface(OperationInterface object)
      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

      public T caseOperationRequiredRole(OperationRequiredRole object)
      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

      public T caseSourceRole(SourceRole object)
      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

      public T caseSinkRole(SinkRole object)
      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

      public T caseOperationProvidedRole(OperationProvidedRole object)
      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

      public T caseInfrastructureProvidedRole(InfrastructureProvidedRole object)
      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

      public T caseCompleteComponentType(CompleteComponentType object)
      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

      public T caseProvidesComponentType(ProvidesComponentType object)
      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

      public T caseCompositeComponent(CompositeComponent object)
      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

      public T casePrimitiveDataType(PrimitiveDataType object)
      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

      public T caseCollectionDataType(CollectionDataType object)
      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

      public T caseCompositeDataType(CompositeDataType object)
      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

      public T caseInnerDeclaration(InnerDeclaration object)
      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

      public T caseRole(Role object)
      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

      public T caseIdentifier(de.uka.ipd.sdq.identifier.Identifier object)
      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

      public T casePCMClass(PCMClass object)
      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

      public T casePCMBaseClass(PCMBaseClass object)
      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

      public T caseNamedElement(NamedElement object)
      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

      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:
      Generated class or method.
    • caseInterfaceProvidingEntity

      public T caseInterfaceProvidingEntity(InterfaceProvidingEntity object)
      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

      public T caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object)
      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

      public T caseInterfaceRequiringEntity(InterfaceRequiringEntity object)
      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

      public T caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object)
      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

      public T caseComposedStructure(ComposedStructure object)
      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

      public T caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object)
      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

      public T defaultCase(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 class Switch<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.