Class 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:
    QMLContractPackage
    Generated class or method.
    • Field Detail

      • modelPackage

        protected static QMLContractPackage modelPackage
        The cached model package
        Generated class or method.
    • Constructor Detail

      • QMLContractSwitch

        public QMLContractSwitch()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • 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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        Generated class or method.
      • caseScaleLiteral

        public <T extends NumberT1 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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        doSwitch(EObject)
        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:
        Switch.doSwitch(org.eclipse.emf.ecore.EObject)
        Generated class or method.