Class FailuretypeSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.failuremodel.failuretype.util.FailuretypeSwitch<T>

public class FailuretypeSwitch<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 FailuretypePackage modelPackage
      The cached model package
      Generated class or method.
  • Constructor Details

    • FailuretypeSwitch

      public FailuretypeSwitch()
      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.
    • caseFailureTypeRepository

      public T caseFailureTypeRepository(FailureTypeRepository object)
      Returns the result of interpreting the object as an instance of 'Failure Type 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 'Failure Type Repository'.
      See Also:
      Generated class or method.
    • caseFailure

      public T caseFailure(Failure object)
      Returns the result of interpreting the object as an instance of 'Failure'. 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 'Failure'.
      See Also:
      Generated class or method.
    • caseSWFailure

      public T caseSWFailure(SWFailure object)
      Returns the result of interpreting the object as an instance of 'SW Failure'. 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 'SW Failure'.
      See Also:
      Generated class or method.
    • caseHWFailure

      public T caseHWFailure(HWFailure object)
      Returns the result of interpreting the object as an instance of 'HW Failure'. 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 'HW Failure'.
      See Also:
      Generated class or method.
    • caseLinkFailure

      public T caseLinkFailure(LinkFailure object)
      Returns the result of interpreting the object as an instance of 'Link Failure'. 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 'Link Failure'.
      See Also:
      Generated class or method.
    • caseDomain

      public T caseDomain(Domain object)
      Returns the result of interpreting the object as an instance of 'Domain'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Domain'.
      See Also:
      Generated class or method.
    • caseContent

      public T caseContent(Content object)
      Returns the result of interpreting the object as an instance of 'Content'. 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 'Content'.
      See Also:
      Generated class or method.
    • caseTiming

      public T caseTiming(Timing object)
      Returns the result of interpreting the object as an instance of 'Timing'. 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 'Timing'.
      See Also:
      Generated class or method.
    • caseCrash

      public T caseCrash(Crash object)
      Returns the result of interpreting the object as an instance of 'Crash'. 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 'Crash'.
      See Also:
      Generated class or method.
    • caseMode

      public T caseMode(Mode object)
      Returns the result of interpreting the object as an instance of 'Mode'. 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 'Mode'.
      See Also:
      Generated class or method.
    • caseTransient

      public <Failuretype extends Failure> T caseTransient(Transient<Failuretype> object)
      Returns the result of interpreting the object as an instance of 'Transient'. 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 'Transient'.
      See Also:
      Generated class or method.
    • caseByzantine

      public <Failuretype extends Failure> T caseByzantine(Byzantine<Failuretype> object)
      Returns the result of interpreting the object as an instance of 'Byzantine'. 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 'Byzantine'.
      See Also:
      Generated class or method.
    • caseSWCrashFailure

      public T caseSWCrashFailure(SWCrashFailure object)
      Returns the result of interpreting the object as an instance of 'SW Crash Failure'. 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 'SW Crash Failure'.
      See Also:
      Generated class or method.
    • caseSWTimingFailure

      public T caseSWTimingFailure(SWTimingFailure object)
      Returns the result of interpreting the object as an instance of 'SW Timing Failure'. 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 'SW Timing Failure'.
      See Also:
      Generated class or method.
    • caseSWContentFailure

      public T caseSWContentFailure(SWContentFailure object)
      Returns the result of interpreting the object as an instance of 'SW Content Failure'. 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 'SW Content Failure'.
      See Also:
      Generated class or method.
    • caseSWTransientFailure

      public T caseSWTransientFailure(SWTransientFailure object)
      Returns the result of interpreting the object as an instance of 'SW Transient Failure'. 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 'SW Transient Failure'.
      See Also:
      Generated class or method.
    • caseSWByzantineFailure

      public T caseSWByzantineFailure(SWByzantineFailure object)
      Returns the result of interpreting the object as an instance of 'SW Byzantine Failure'. 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 'SW Byzantine Failure'.
      See Also:
      Generated class or method.
    • caseHWCrashFailure

      public T caseHWCrashFailure(HWCrashFailure object)
      Returns the result of interpreting the object as an instance of 'HW Crash Failure'. 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 'HW Crash Failure'.
      See Also:
      Generated class or method.
    • caseHWTimingFailure

      public T caseHWTimingFailure(HWTimingFailure object)
      Returns the result of interpreting the object as an instance of 'HW Timing Failure'. 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 'HW Timing Failure'.
      See Also:
      Generated class or method.
    • caseHWContentFailure

      public T caseHWContentFailure(HWContentFailure object)
      Returns the result of interpreting the object as an instance of 'HW Content Failure'. 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 'HW Content Failure'.
      See Also:
      Generated class or method.
    • caseHWTransientFailure

      public T caseHWTransientFailure(HWTransientFailure object)
      Returns the result of interpreting the object as an instance of 'HW Transient Failure'. 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 'HW Transient Failure'.
      See Also:
      Generated class or method.
    • caseHWByzantineFailure

      public T caseHWByzantineFailure(HWByzantineFailure object)
      Returns the result of interpreting the object as an instance of 'HW Byzantine Failure'. 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 'HW Byzantine Failure'.
      See Also:
      Generated class or method.
    • caseLinkCrashFailure

      public T caseLinkCrashFailure(LinkCrashFailure object)
      Returns the result of interpreting the object as an instance of 'Link Crash Failure'. 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 'Link Crash Failure'.
      See Also:
      Generated class or method.
    • caseLinkTimingFailure

      public T caseLinkTimingFailure(LinkTimingFailure object)
      Returns the result of interpreting the object as an instance of 'Link Timing Failure'. 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 'Link Timing Failure'.
      See Also:
      Generated class or method.
    • caseLinkContentFailure

      public T caseLinkContentFailure(LinkContentFailure object)
      Returns the result of interpreting the object as an instance of 'Link Content Failure'. 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 'Link Content Failure'.
      See Also:
      Generated class or method.
    • caseLinkTransientFailure

      public T caseLinkTransientFailure(LinkTransientFailure object)
      Returns the result of interpreting the object as an instance of 'Link Transient Failure'. 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 'Link Transient Failure'.
      See Also:
      Generated class or method.
    • caseLinkByzantineFailure

      public T caseLinkByzantineFailure(LinkByzantineFailure object)
      Returns the result of interpreting the object as an instance of 'Link Byzantine Failure'. 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 'Link Byzantine Failure'.
      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(org.palladiosimulator.pcm.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(org.palladiosimulator.pcm.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(org.palladiosimulator.pcm.core.entity.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(org.palladiosimulator.pcm.core.entity.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.
    • 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.