Class QMLContractSwitch<T1>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T1>
de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.util.QMLContractSwitch<T1>

public class QMLContractSwitch<T1> extends Switch<T1>
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 QMLContractPackage modelPackage
      The cached model package
      Generated class or method.
  • Constructor Details

    • QMLContractSwitch

      public QMLContractSwitch()
      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<T1>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
      Generated class or method.
    • doSwitch

      protected T1 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<T1>
      Returns:
      the first non-null result returned by a caseXXX call.
      Generated class or method.
    • caseSimpleQMLContract

      public T1 caseSimpleQMLContract(SimpleQMLContract object)
      Returns the result of interpreting the object as an instance of 'Simple QML Contract'. 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 QML Contract'.
      See Also:
      Generated class or method.
    • caseCriterion

      public T1 caseCriterion(Criterion object)
      Returns the result of interpreting the object as an instance of 'Criterion'. 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 'Criterion'.
      See Also:
      Generated class or method.
    • caseEvaluationAspect

      public T1 caseEvaluationAspect(EvaluationAspect object)
      Returns the result of interpreting the object as an instance of 'Evaluation Aspect'. 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 'Evaluation Aspect'.
      See Also:
      Generated class or method.
    • caseAspectRequirement

      public T1 caseAspectRequirement(AspectRequirement object)
      Returns the result of interpreting the object as an instance of 'Aspect Requirement'. 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 'Aspect Requirement'.
      See Also:
      Generated class or method.
    • caseValueLiteral

      public T1 caseValueLiteral(ValueLiteral object)
      Returns the result of interpreting the object as an instance of 'Value Literal'. 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 Literal'.
      See Also:
      Generated class or method.
    • casePercentile

      public T1 casePercentile(Percentile object)
      Returns the result of interpreting the object as an instance of 'Percentile'. 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 'Percentile'.
      See Also:
      Generated class or method.
    • casePointEstimator

      public T1 casePointEstimator(PointEstimator object)
      Returns the result of interpreting the object as an instance of 'Point Estimator'. 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 'Point Estimator'.
      See Also:
      Generated class or method.
    • caseStochasticEvaluationAspect

      public T1 caseStochasticEvaluationAspect(StochasticEvaluationAspect object)
      Returns the result of interpreting the object as an instance of 'Stochastic Evaluation Aspect'. 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 'Stochastic Evaluation Aspect'.
      See Also:
      Generated class or method.
    • caseFrequency

      public T1 caseFrequency(Frequency object)
      Returns the result of interpreting the object as an instance of 'Frequency'. 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 'Frequency'.
      See Also:
      Generated class or method.
    • caseRangeValue

      public T1 caseRangeValue(RangeValue object)
      Returns the result of interpreting the object as an instance of 'Range 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 'Range Value'.
      See Also:
      Generated class or method.
    • caseMean

      public T1 caseMean(Mean object)
      Returns the result of interpreting the object as an instance of 'Mean'. 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 'Mean'.
      See Also:
      Generated class or method.
    • caseVariance

      public T1 caseVariance(Variance object)
      Returns the result of interpreting the object as an instance of 'Variance'. 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 'Variance'.
      See Also:
      Generated class or method.
    • caseNumericLiteral

      public T1 caseNumericLiteral(NumericLiteral object)
      Returns the result of interpreting the object as an instance of 'Numeric Literal'. 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 'Numeric Literal'.
      See Also:
      Generated class or method.
    • caseEnumLiteral

      public T1 caseEnumLiteral(EnumLiteral object)
      Returns the result of interpreting the object as an instance of 'Enum Literal'. 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 Literal'.
      See Also:
      Generated class or method.
    • caseSetLiteral

      public T1 caseSetLiteral(SetLiteral object)
      Returns the result of interpreting the object as an instance of 'Set Literal'. 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 'Set Literal'.
      See Also:
      Generated class or method.
    • caseRefinedQMLContract

      public T1 caseRefinedQMLContract(RefinedQMLContract object)
      Returns the result of interpreting the object as an instance of 'Refined QML Contract'. 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 'Refined QML Contract'.
      See Also:
      Generated class or method.
    • caseValue

      public T1 caseValue(Value object)
      Returns the result of interpreting the object as an instance of '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 'Value'.
      See Also:
      Generated class or method.
    • caseDeterministicEvaluationAspect

      public T1 caseDeterministicEvaluationAspect(DeterministicEvaluationAspect object)
      Returns the result of interpreting the object as an instance of 'Deterministic Evaluation Aspect'. 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 'Deterministic Evaluation Aspect'.
      See Also:
      Generated class or method.
    • caseObjective

      public T1 caseObjective(Objective object)
      Returns the result of interpreting the object as an instance of 'Objective'. 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 'Objective'.
      See Also:
      Generated class or method.
    • caseConstraint

      public T1 caseConstraint(Constraint object)
      Returns the result of interpreting the object as an instance of 'Constraint'. 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 'Constraint'.
      See Also:
      Generated class or method.
    • caseRestriction

      public T1 caseRestriction(Restriction object)
      Returns the result of interpreting the object as an instance of 'Restriction'. 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 'Restriction'.
      See Also:
      Generated class or method.
    • caseGoal

      public T1 caseGoal(Goal object)
      Returns the result of interpreting the object as an instance of 'Goal'. 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 'Goal'.
      See Also:
      Generated class or method.
    • caseGenericQMLContract

      public T1 caseGenericQMLContract(GenericQMLContract object)
      Returns the result of interpreting the object as an instance of 'Generic QML Contract'. 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 'Generic QML Contract'.
      See Also:
      Generated class or method.
    • caseScaleLiteral

      public <T extends Number> T1 caseScaleLiteral(ScaleLiteral<T> object)
      Returns the result of interpreting the object as an instance of 'Scale Literal'. 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 'Scale Literal'.
      See Also:
      Generated class or method.
    • caseIdentifier

      public T1 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.
    • caseNamedElement

      public T1 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 T1 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.
    • caseQMLDeclaration

      public T1 caseQMLDeclaration(QMLDeclaration object)
      Returns the result of interpreting the object as an instance of 'QML 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 'QML Declaration'.
      See Also:
      Generated class or method.
    • caseEModelElement

      public T1 caseEModelElement(EModelElement object)
      Returns the result of interpreting the object as an instance of 'EModel 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 'EModel Element'.
      See Also:
      Generated class or method.
    • caseENamedElement

      public T1 caseENamedElement(ENamedElement object)
      Returns the result of interpreting the object as an instance of 'ENamed 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 'ENamed Element'.
      See Also:
      Generated class or method.
    • defaultCase

      public T1 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<T1>
      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.