org.eclipse.gmt.modisco.omg.smm.util
Class SmmSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.smm.util.SmmSwitch<T>

public class SmmSwitch<T>
extends java.lang.Object

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:
SmmPackage
Generated:

Constructor Summary
SmmSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAggregatedMeasurement(AggregatedMeasurement object)
          Returns the result of interpreting the object as an instance of 'Aggregated Measurement'.
 T caseAnnotation(Annotation object)
          Returns the result of interpreting the object as an instance of 'Annotation'.
 T caseAttribute(Attribute object)
          Returns the result of interpreting the object as an instance of 'Attribute'.
 T caseBinaryMeasure(BinaryMeasure object)
          Returns the result of interpreting the object as an instance of 'Binary Measure'.
 T caseCategory(Category object)
          Returns the result of interpreting the object as an instance of 'Category'.
 T caseCategoryRelationship(CategoryRelationship object)
          Returns the result of interpreting the object as an instance of 'Category Relationship'.
 T caseCharacteristic(Characteristic object)
          Returns the result of interpreting the object as an instance of 'Characteristic'.
 T caseCollectiveMeasure(CollectiveMeasure object)
          Returns the result of interpreting the object as an instance of 'Collective Measure'.
 T caseCollectiveMeasurement(CollectiveMeasurement object)
          Returns the result of interpreting the object as an instance of 'Collective Measurement'.
 T caseCount(Count object)
          Returns the result of interpreting the object as an instance of 'Count'.
 T caseCounting(Counting object)
          Returns the result of interpreting the object as an instance of 'Counting'.
 T caseDimensionalMeasure(DimensionalMeasure object)
          Returns the result of interpreting the object as an instance of 'Dimensional Measure'.
 T caseDimensionalMeasurement(DimensionalMeasurement object)
          Returns the result of interpreting the object as an instance of 'Dimensional Measurement'.
 T caseDirectMeasure(DirectMeasure object)
          Returns the result of interpreting the object as an instance of 'Direct Measure'.
 T caseDirectMeasurement(DirectMeasurement object)
          Returns the result of interpreting the object as an instance of 'Direct Measurement'.
 T caseGrade(Grade object)
          Returns the result of interpreting the object as an instance of 'Grade'.
 T caseMeasure(Measure object)
          Returns the result of interpreting the object as an instance of 'Measure'.
 T caseMeasurement(Measurement object)
          Returns the result of interpreting the object as an instance of 'Measurement'.
 T caseMeasurementRelationship(MeasurementRelationship object)
          Returns the result of interpreting the object as an instance of 'Measurement Relationship'.
 T caseMeasureRelationship(MeasureRelationship object)
          Returns the result of interpreting the object as an instance of 'Measure Relationship'.
 T caseNamedMeasure(NamedMeasure object)
          Returns the result of interpreting the object as an instance of 'Named Measure'.
 T caseNamedMeasurement(NamedMeasurement object)
          Returns the result of interpreting the object as an instance of 'Named Measurement'.
 T caseObservation(Observation object)
          Returns the result of interpreting the object as an instance of 'Observation'.
 T caseRanking(Ranking object)
          Returns the result of interpreting the object as an instance of 'Ranking'.
 T caseRankingInterval(RankingInterval object)
          Returns the result of interpreting the object as an instance of 'Ranking Interval'.
 T caseRatioMeasure(RatioMeasure object)
          Returns the result of interpreting the object as an instance of 'Ratio Measure'.
 T caseRescaledMeasure(RescaledMeasure object)
          Returns the result of interpreting the object as an instance of 'Rescaled Measure'.
 T caseReScaledMeasurement(ReScaledMeasurement object)
          Returns the result of interpreting the object as an instance of 'Re Scaled Measurement'.
 T caseScope(Scope object)
          Returns the result of interpreting the object as an instance of 'Scope'.
 T caseSmmElement(SmmElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseSmmModel(SmmModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T caseSmmRelationship(SmmRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmmSwitch

public SmmSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.
Generated:

caseSmmElement

public T caseSmmElement(SmmElement object)
Returns the result of interpreting the object as an instance of '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 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseSmmModel

public T caseSmmModel(SmmModel object)
Returns the result of interpreting the object as an instance of 'Model'. 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 'Model'.
See Also:
doSwitch(EObject)
Generated:

caseSmmRelationship

public T caseSmmRelationship(SmmRelationship object)
Returns the result of interpreting the object as an instance of 'Relationship'. 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 'Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseCategoryRelationship

public T caseCategoryRelationship(CategoryRelationship object)
Returns the result of interpreting the object as an instance of 'Category Relationship'. 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 'Category Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseCategory

public T caseCategory(Category object)
Returns the result of interpreting the object as an instance of 'Category'. 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 'Category'.
See Also:
doSwitch(EObject)
Generated:

caseMeasure

public T caseMeasure(Measure object)
Returns the result of interpreting the object as an instance of 'Measure'. 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 'Measure'.
See Also:
doSwitch(EObject)
Generated:

caseMeasurement

public T caseMeasurement(Measurement object)
Returns the result of interpreting the object as an instance of 'Measurement'. 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 'Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseObservation

public T caseObservation(Observation object)
Returns the result of interpreting the object as an instance of 'Observation'. 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 'Observation'.
See Also:
doSwitch(EObject)
Generated:

caseMeasureRelationship

public T caseMeasureRelationship(MeasureRelationship object)
Returns the result of interpreting the object as an instance of 'Measure Relationship'. 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 'Measure Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseDimensionalMeasure

public T caseDimensionalMeasure(DimensionalMeasure object)
Returns the result of interpreting the object as an instance of 'Dimensional Measure'. 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 'Dimensional Measure'.
See Also:
doSwitch(EObject)
Generated:

caseRanking

public T caseRanking(Ranking object)
Returns the result of interpreting the object as an instance of 'Ranking'. 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 'Ranking'.
See Also:
doSwitch(EObject)
Generated:

caseRankingInterval

public T caseRankingInterval(RankingInterval object)
Returns the result of interpreting the object as an instance of 'Ranking Interval'. 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 'Ranking Interval'.
See Also:
doSwitch(EObject)
Generated:

caseCharacteristic

public T caseCharacteristic(Characteristic object)
Returns the result of interpreting the object as an instance of 'Characteristic'. 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 'Characteristic'.
See Also:
doSwitch(EObject)
Generated:

caseScope

public T caseScope(Scope object)
Returns the result of interpreting the object as an instance of 'Scope'. 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 'Scope'.
See Also:
doSwitch(EObject)
Generated:

caseBinaryMeasure

public T caseBinaryMeasure(BinaryMeasure object)
Returns the result of interpreting the object as an instance of 'Binary Measure'. 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 'Binary Measure'.
See Also:
doSwitch(EObject)
Generated:

caseDirectMeasure

public T caseDirectMeasure(DirectMeasure object)
Returns the result of interpreting the object as an instance of 'Direct Measure'. 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 'Direct Measure'.
See Also:
doSwitch(EObject)
Generated:

caseCollectiveMeasure

public T caseCollectiveMeasure(CollectiveMeasure object)
Returns the result of interpreting the object as an instance of 'Collective Measure'. 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 'Collective Measure'.
See Also:
doSwitch(EObject)
Generated:

caseNamedMeasure

public T caseNamedMeasure(NamedMeasure object)
Returns the result of interpreting the object as an instance of 'Named Measure'. 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 Measure'.
See Also:
doSwitch(EObject)
Generated:

caseRescaledMeasure

public T caseRescaledMeasure(RescaledMeasure object)
Returns the result of interpreting the object as an instance of 'Rescaled Measure'. 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 'Rescaled Measure'.
See Also:
doSwitch(EObject)
Generated:

caseRatioMeasure

public T caseRatioMeasure(RatioMeasure object)
Returns the result of interpreting the object as an instance of 'Ratio Measure'. 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 'Ratio Measure'.
See Also:
doSwitch(EObject)
Generated:

caseCounting

public T caseCounting(Counting object)
Returns the result of interpreting the object as an instance of 'Counting'. 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 'Counting'.
See Also:
doSwitch(EObject)
Generated:

caseDimensionalMeasurement

public T caseDimensionalMeasurement(DimensionalMeasurement object)
Returns the result of interpreting the object as an instance of 'Dimensional Measurement'. 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 'Dimensional Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseGrade

public T caseGrade(Grade object)
Returns the result of interpreting the object as an instance of 'Grade'. 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 'Grade'.
See Also:
doSwitch(EObject)
Generated:

caseMeasurementRelationship

public T caseMeasurementRelationship(MeasurementRelationship object)
Returns the result of interpreting the object as an instance of 'Measurement Relationship'. 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 'Measurement Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseDirectMeasurement

public T caseDirectMeasurement(DirectMeasurement object)
Returns the result of interpreting the object as an instance of 'Direct Measurement'. 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 'Direct Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseCount

public T caseCount(Count object)
Returns the result of interpreting the object as an instance of 'Count'. 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 'Count'.
See Also:
doSwitch(EObject)
Generated:

caseCollectiveMeasurement

public T caseCollectiveMeasurement(CollectiveMeasurement object)
Returns the result of interpreting the object as an instance of 'Collective Measurement'. 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 'Collective Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseAggregatedMeasurement

public T caseAggregatedMeasurement(AggregatedMeasurement object)
Returns the result of interpreting the object as an instance of 'Aggregated Measurement'. 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 'Aggregated Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseNamedMeasurement

public T caseNamedMeasurement(NamedMeasurement object)
Returns the result of interpreting the object as an instance of 'Named Measurement'. 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 Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseReScaledMeasurement

public T caseReScaledMeasurement(ReScaledMeasurement object)
Returns the result of interpreting the object as an instance of 'Re Scaled Measurement'. 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 'Re Scaled Measurement'.
See Also:
doSwitch(EObject)
Generated:

caseAttribute

public T caseAttribute(Attribute object)
Returns the result of interpreting the object as an instance of 'Attribute'. 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'.
See Also:
doSwitch(EObject)
Generated:

caseAnnotation

public T caseAnnotation(Annotation object)
Returns the result of interpreting the object as an instance of 'Annotation'. 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 'Annotation'.
See Also:
doSwitch(EObject)
Generated:

defaultCase

public T defaultCase(EObject object)
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.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)
Generated: