Class QMLContractSwitch<T1>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T1>
de.uka.ipd.sdq.dsexplore.qml.contract.QMLContract.util.QMLContractSwitch<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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Aspect Requirement'.caseConstraint
(Constraint object) Returns the result of interpreting the object as an instance of 'Constraint'.caseCriterion
(Criterion object) Returns the result of interpreting the object as an instance of 'Criterion'.Returns the result of interpreting the object as an instance of 'Deterministic Evaluation Aspect'.caseEModelElement
(EModelElement object) Returns the result of interpreting the object as an instance of 'EModel Element'.caseENamedElement
(ENamedElement object) Returns the result of interpreting the object as an instance of 'ENamed Element'.caseEntity
(org.palladiosimulator.pcm.core.entity.Entity object) Returns the result of interpreting the object as an instance of 'Entity'.caseEnumLiteral
(EnumLiteral object) Returns the result of interpreting the object as an instance of 'Enum Literal'.caseEvaluationAspect
(EvaluationAspect object) Returns the result of interpreting the object as an instance of 'Evaluation Aspect'.caseFrequency
(Frequency object) Returns the result of interpreting the object as an instance of 'Frequency'.Returns the result of interpreting the object as an instance of 'Generic QML Contract'.Returns the result of interpreting the object as an instance of 'Goal'.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 'Mean'.caseNamedElement
(org.palladiosimulator.pcm.core.entity.NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.caseNumericLiteral
(NumericLiteral object) Returns the result of interpreting the object as an instance of 'Numeric Literal'.caseObjective
(Objective object) Returns the result of interpreting the object as an instance of 'Objective'.casePercentile
(Percentile object) Returns the result of interpreting the object as an instance of 'Percentile'.casePointEstimator
(PointEstimator object) Returns the result of interpreting the object as an instance of 'Point Estimator'.caseQMLDeclaration
(QMLDeclaration object) Returns the result of interpreting the object as an instance of 'QML Declaration'.caseRangeValue
(RangeValue object) Returns the result of interpreting the object as an instance of 'Range Value'.Returns the result of interpreting the object as an instance of 'Refined QML Contract'.caseRestriction
(Restriction object) Returns the result of interpreting the object as an instance of 'Restriction'.caseScaleLiteral
(ScaleLiteral<T> object) Returns the result of interpreting the object as an instance of 'Scale Literal'.caseSetLiteral
(SetLiteral object) Returns the result of interpreting the object as an instance of 'Set Literal'.Returns the result of interpreting the object as an instance of 'Simple QML Contract'.Returns the result of interpreting the object as an instance of 'Stochastic Evaluation Aspect'.Returns the result of interpreting the object as an instance of 'Value'.caseValueLiteral
(ValueLiteral object) Returns the result of interpreting the object as an instance of 'Value Literal'.caseVariance
(Variance object) Returns the result of interpreting the object as an instance of 'Variance'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T1
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
-
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
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T1>
- 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. -
caseSimpleQMLContract
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-
caseQMLDeclaration
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
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
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
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<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.
-