public class ValuesSwitch<T>
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.
ValuesPackage
Modifier and Type | Field and Description |
---|---|
protected static ValuesPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
ValuesSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseArgument(Argument object)
Returns the result of interpreting the object as an instance of 'Argument'.
|
T |
caseArrayElement(ArrayElement object)
Returns the result of interpreting the object as an instance of 'Array Element'.
|
T |
caseArrayValue(ArrayValue object)
Returns the result of interpreting the object as an instance of 'Array Value'.
|
T |
caseCollada(Collada object)
Returns the result of interpreting the object as an instance of 'Collada'.
|
T |
caseComposite(Composite object)
Returns the result of interpreting the object as an instance of 'Composite'.
|
T |
caseConnection(Connection object)
Returns the result of interpreting the object as an instance of 'Connection'.
|
T |
caseCylinder(Cylinder object)
Returns the result of interpreting the object as an instance of 'Cylinder'.
|
T |
caseDynamics(Dynamics object)
Returns the result of interpreting the object as an instance of 'Dynamics'.
|
T |
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.
|
T |
caseFunction(Function object)
Returns the result of interpreting the object as an instance of 'Function'.
|
T |
caseFunctionPlot(FunctionPlot object)
Returns the result of interpreting the object as an instance of 'Function Plot'.
|
T |
caseHTML(HTML object)
Returns the result of interpreting the object as an instance of 'HTML'.
|
T |
caseImage(Image object)
Returns the result of interpreting the object as an instance of 'Image'.
|
T |
caseImportValue(ImportValue object)
Returns the result of interpreting the object as an instance of 'Import Value'.
|
T |
caseISynchable(ISynchable object)
Returns the result of interpreting the object as an instance of 'ISynchable'.
|
T |
caseMDTimeSeries(MDTimeSeries object)
Returns the result of interpreting the object as an instance of 'MD Time Series'.
|
T |
caseMetadataValue(MetadataValue object)
Returns the result of interpreting the object as an instance of 'Metadata Value'.
|
T |
caseNode(Node object)
Returns the result of interpreting the object as an instance of 'Node'.
|
T |
caseOBJ(OBJ object)
Returns the result of interpreting the object as an instance of 'OBJ'.
|
T |
caseParticles(Particles object)
Returns the result of interpreting the object as an instance of 'Particles'.
|
T |
casePhysicalQuantity(PhysicalQuantity object)
Returns the result of interpreting the object as an instance of 'Physical Quantity'.
|
T |
casePoint(Point object)
Returns the result of interpreting the object as an instance of 'Point'.
|
T |
casePointer(Pointer object)
Returns the result of interpreting the object as an instance of 'Pointer'.
|
T |
casePointerElement(PointerElement object)
Returns the result of interpreting the object as an instance of 'Pointer Element'.
|
T |
caseQuantity(Quantity object)
Returns the result of interpreting the object as an instance of 'Quantity'.
|
T |
caseSkeletonAnimation(SkeletonAnimation object)
Returns the result of interpreting the object as an instance of 'Skeleton Animation'.
|
T |
caseSkeletonTransformation(SkeletonTransformation object)
Returns the result of interpreting the object as an instance of 'Skeleton Transformation'.
|
T |
caseSphere(Sphere object)
Returns the result of interpreting the object as an instance of 'Sphere'.
|
T |
caseStringToValueMap(java.util.Map.Entry<java.lang.String,Value> object)
Returns the result of interpreting the object as an instance of 'String To Value Map'.
|
T |
caseText(Text object)
Returns the result of interpreting the object as an instance of 'Text'.
|
T |
caseTimeSeries(TimeSeries object)
Returns the result of interpreting the object as an instance of 'Time Series'.
|
T |
caseUnit(Unit object)
Returns the result of interpreting the object as an instance of 'Unit'.
|
T |
caseURL(URL object)
Returns the result of interpreting the object as an instance of 'URL'.
|
T |
caseValue(Value object)
Returns the result of interpreting the object as an instance of 'Value'.
|
T |
caseVisualGroup(VisualGroup object)
Returns the result of interpreting the object as an instance of 'Visual Group'.
|
T |
caseVisualGroupElement(VisualGroupElement object)
Returns the result of interpreting the object as an instance of 'Visual Group Element'.
|
T |
caseVisualValue(VisualValue object)
Returns the result of interpreting the object as an instance of 'Visual Value'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX 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.
|
protected static ValuesPackage modelPackage
protected boolean isSwitchFor(EPackage ePackage)
ePackage
- the package in question.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseValue(Value object)
object
- the target of the switch.doSwitch(EObject)
public T caseComposite(Composite object)
object
- the target of the switch.doSwitch(EObject)
public T caseStringToValueMap(java.util.Map.Entry<java.lang.String,Value> object)
object
- the target of the switch.doSwitch(EObject)
public T caseQuantity(Quantity object)
object
- the target of the switch.doSwitch(EObject)
public T casePhysicalQuantity(PhysicalQuantity object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnit(Unit object)
object
- the target of the switch.doSwitch(EObject)
public T caseTimeSeries(TimeSeries object)
object
- the target of the switch.doSwitch(EObject)
public T caseMDTimeSeries(MDTimeSeries object)
object
- the target of the switch.doSwitch(EObject)
public T caseMetadataValue(MetadataValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseText(Text object)
object
- the target of the switch.doSwitch(EObject)
public T caseURL(URL object)
object
- the target of the switch.doSwitch(EObject)
public T caseHTML(HTML object)
object
- the target of the switch.doSwitch(EObject)
public T casePointer(Pointer object)
object
- the target of the switch.doSwitch(EObject)
public T casePointerElement(PointerElement object)
object
- the target of the switch.doSwitch(EObject)
public T casePoint(Point object)
object
- the target of the switch.doSwitch(EObject)
public T caseDynamics(Dynamics object)
object
- the target of the switch.doSwitch(EObject)
public T caseFunctionPlot(FunctionPlot object)
object
- the target of the switch.doSwitch(EObject)
public T caseFunction(Function object)
object
- the target of the switch.doSwitch(EObject)
public T caseArgument(Argument object)
object
- the target of the switch.doSwitch(EObject)
public T caseExpression(Expression object)
object
- the target of the switch.doSwitch(EObject)
public T caseVisualValue(VisualValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseCollada(Collada object)
object
- the target of the switch.doSwitch(EObject)
public T caseOBJ(OBJ object)
object
- the target of the switch.doSwitch(EObject)
public T caseSphere(Sphere object)
object
- the target of the switch.doSwitch(EObject)
public T caseCylinder(Cylinder object)
object
- the target of the switch.doSwitch(EObject)
public T caseParticles(Particles object)
object
- the target of the switch.doSwitch(EObject)
public T caseSkeletonAnimation(SkeletonAnimation object)
object
- the target of the switch.doSwitch(EObject)
public T caseSkeletonTransformation(SkeletonTransformation object)
object
- the target of the switch.doSwitch(EObject)
public T caseVisualGroupElement(VisualGroupElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseVisualGroup(VisualGroup object)
object
- the target of the switch.doSwitch(EObject)
public T caseConnection(Connection object)
object
- the target of the switch.doSwitch(EObject)
public T caseArrayElement(ArrayElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseArrayValue(ArrayValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseImage(Image object)
object
- the target of the switch.doSwitch(EObject)
public T caseImportValue(ImportValue object)
object
- the target of the switch.doSwitch(EObject)
public T caseISynchable(ISynchable object)
object
- the target of the switch.doSwitch(EObject)
public T caseNode(Node object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)