Class PolicySwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.pcm.confidentiality.context.policy.util.PolicySwitch<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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'All Of'.Returns the result of interpreting the object as an instance of 'Apply'.Returns the result of interpreting the object as an instance of 'Attribute Designator'.Returns the result of interpreting the object as an instance of 'Attribute Selection'.Returns the result of interpreting the object as an instance of 'Attribute Selector'.Returns the result of interpreting the object as an instance of 'Attribute Value Reference'.caseEntity
(org.palladiosimulator.pcm.core.entity.Entity object) Returns the result of interpreting the object as an instance of 'Entity'.caseExpression
(Expression object) Returns the result of interpreting the object as an instance of 'Expression'.Returns the result of interpreting the object as an instance of 'Function Reference'.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 'Match'.caseNamedElement
(org.palladiosimulator.pcm.core.entity.NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.casePCMBaseClass
(org.palladiosimulator.pcm.PCMBaseClass object) Returns the result of interpreting the object as an instance of 'PCM Base Class'.casePCMClass
(org.palladiosimulator.pcm.PCMClass object) Returns the result of interpreting the object as an instance of 'PCM Class'.casePolicy
(Policy object) Returns the result of interpreting the object as an instance of 'Policy'.casePolicySet
(PolicySet object) Returns the result of interpreting the object as an instance of 'Set'.Returns the result of interpreting the object as an instance of 'Rule'.Returns the result of interpreting the object as an instance of 'Simple Attribute Condition'.Returns the result of interpreting the object as an instance of 'Variable Definitions'.Returns the result of interpreting the object as an instance of 'Variable Reference'.caseXMLString
(XMLString object) Returns the result of interpreting the object as an instance of 'XML String'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
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
-
PolicySwitch
public PolicySwitch()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<T>
- 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. -
casePolicySet
Returns the result of interpreting the object as an instance of 'Set'. 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'.
- See Also:
- Generated class or method.
-
casePolicy
Returns the result of interpreting the object as an instance of 'Policy'. 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 'Policy'.
- See Also:
- Generated class or method.
-
caseRule
Returns the result of interpreting the object as an instance of 'Rule'. 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 'Rule'.
- See Also:
- Generated class or method.
-
caseAllOf
Returns the result of interpreting the object as an instance of 'All Of'. 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 'All Of'.
- See Also:
- Generated class or method.
-
caseMatch
Returns the result of interpreting the object as an instance of 'Match'. 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 'Match'.
- See Also:
- Generated class or method.
-
caseApply
Returns the result of interpreting the object as an instance of 'Apply'. 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 'Apply'.
- See Also:
- Generated class or method.
-
caseAttributeSelector
Returns the result of interpreting the object as an instance of 'Attribute Selector'. 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 'Attribute Selector'.
- See Also:
- Generated class or method.
-
caseFunctionReference
Returns the result of interpreting the object as an instance of 'Function Reference'. 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 'Function Reference'.
- See Also:
- Generated class or method.
-
caseAttributeDesignator
Returns the result of interpreting the object as an instance of 'Attribute Designator'. 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 'Attribute Designator'.
- See Also:
- Generated class or method.
-
caseXMLString
Returns the result of interpreting the object as an instance of 'XML String'. 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 'XML String'.
- See Also:
- Generated class or method.
-
caseExpression
Returns the result of interpreting the object as an instance of 'Expression'. 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 'Expression'.
- See Also:
- Generated class or method.
-
caseVariableDefinitions
Returns the result of interpreting the object as an instance of 'Variable Definitions'. 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 'Variable Definitions'.
- See Also:
- Generated class or method.
-
caseVariableReference
Returns the result of interpreting the object as an instance of 'Variable Reference'. 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 'Variable Reference'.
- See Also:
- Generated class or method.
-
caseAttributeValueReference
Returns the result of interpreting the object as an instance of 'Attribute Value Reference'. 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 'Attribute Value Reference'.
- See Also:
- Generated class or method.
-
caseAttributeSelection
Returns the result of interpreting the object as an instance of 'Attribute Selection'. 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 'Attribute Selection'.
- See Also:
- Generated class or method.
-
caseSimpleAttributeCondition
Returns the result of interpreting the object as an instance of 'Simple Attribute Condition'. 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 Attribute Condition'.
- 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.
-
casePCMClass
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
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
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.
-
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<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.
-