public class OCLstdlibSwitch<T1>
extends org.eclipse.emf.ecore.util.Switch<T1>
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.
OCLstdlibPackage
Modifier and Type | Field and Description |
---|---|
protected static OCLstdlibPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
OCLstdlibSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
<T> T1 |
caseBag(Bag<T> object)
Returns the result of interpreting the object as an instance of 'Bag'.
|
<T> T1 |
caseCollection(java.util.Collection<T> object)
Returns the result of interpreting the object as an instance of 'Collection'.
|
T1 |
caseOclAny(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Any'.
|
T1 |
caseOclComparable(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Comparable'.
|
T1 |
caseOclElement(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Element'.
|
T1 |
caseOclInvalid(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Invalid'.
|
T1 |
caseOclLambda(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Lambda'.
|
T1 |
caseOclMessage(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Message'.
|
T1 |
caseOclState(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl State'.
|
T1 |
caseOclSummable(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Summable'.
|
T1 |
caseOclTuple(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Tuple'.
|
T1 |
caseOclType(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Type'.
|
T1 |
caseOclVoid(java.lang.Object object)
Returns the result of interpreting the object as an instance of 'Ocl Void'.
|
<T> T1 |
caseOrderedCollection(java.util.Collection<T> object)
Returns the result of interpreting the object as an instance of 'Ordered Collection'.
|
<T> T1 |
caseOrderedSet(OrderedSet<T> object)
Returns the result of interpreting the object as an instance of 'Ordered Set'.
|
<T> T1 |
caseSequence(java.util.List<T> object)
Returns the result of interpreting the object as an instance of 'Sequence'.
|
<T> T1 |
caseSet(java.util.Set<T> object)
Returns the result of interpreting the object as an instance of 'Set'.
|
<T> T1 |
caseUniqueCollection(java.util.Collection<T> object)
Returns the result of interpreting the object as an instance of 'Unique Collection'.
|
T1 |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T1 |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static OCLstdlibPackage modelPackage
public OCLstdlibSwitch()
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T1>
ePackage
- the package in question.protected T1 doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T1>
caseXXX
call.public <T> T1 caseBag(Bag<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseCollection(java.util.Collection<T> object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclAny(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclComparable(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclElement(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclInvalid(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclLambda(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclMessage(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclState(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclSummable(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclTuple(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclType(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclVoid(java.lang.Object object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseOrderedCollection(java.util.Collection<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseOrderedSet(OrderedSet<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseSequence(java.util.List<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseSet(java.util.Set<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseUniqueCollection(java.util.Collection<T> object)
object
- the target of the switch.doSwitch(EObject)
public T1 defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T1>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)