public class OCLstdlibSwitch<T1>
extends <any>
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
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(Collection<T> object)
Returns the result of interpreting the object as an instance of 'Collection'.
|
<K,V> T1 |
caseMap(Map<K,V> object)
Returns the result of interpreting the object as an instance of 'Map'.
|
T1 |
caseOclAny(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Any'.
|
T1 |
caseOclComparable(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Comparable'.
|
T1 |
caseOclElement(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Element'.
|
T1 |
caseOclEnumeration(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Enumeration'.
|
T1 |
caseOclInvalid(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Invalid'.
|
T1 |
caseOclLambda(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Lambda'.
|
T1 |
caseOclMessage(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Message'.
|
T1 |
caseOclSelf(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Self'.
|
T1 |
caseOclState(Object object)
Returns the result of interpreting the object as an instance of 'Ocl State'.
|
T1 |
caseOclStereotype(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Stereotype'.
|
T1 |
caseOclSummable(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Summable'.
|
T1 |
caseOclTuple(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Tuple'.
|
T1 |
caseOclType(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Type'.
|
T1 |
caseOclVoid(Object object)
Returns the result of interpreting the object as an instance of 'Ocl Void'.
|
<T> T1 |
caseOrderedCollection(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(List<T> object)
Returns the result of interpreting the object as an instance of 'Sequence'.
|
<T> T1 |
caseSet(Set<T> object)
Returns the result of interpreting the object as an instance of 'Set'.
|
<T> T1 |
caseUniqueCollection(Collection<T> object)
Returns the result of interpreting the object as an instance of 'Unique Collection'.
|
T1 |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
public OCLstdlibSwitch()
public <T> T1 caseBag(Bag<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseCollection(Collection<T> object)
object
- the target of the switch.doSwitch(EObject)
public <K,V> T1 caseMap(Map<K,V> object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclAny(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclComparable(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclElement(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclEnumeration(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclInvalid(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclLambda(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclMessage(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclSelf(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclState(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclStereotype(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclSummable(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclTuple(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclType(Object object)
object
- the target of the switch.doSwitch(EObject)
public T1 caseOclVoid(Object object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseOrderedCollection(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(List<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseSet(Set<T> object)
object
- the target of the switch.doSwitch(EObject)
public <T> T1 caseUniqueCollection(Collection<T> object)
object
- the target of the switch.doSwitch(EObject)
public T1 defaultCase(EObject object)
object
- the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.