org.eclipse.modisco.infra.discovery.benchmark.metamodel.benchmark.util
Class BenchmarkSwitch<T>

java.lang.Object
  extended by 
      extended by org.eclipse.modisco.infra.discovery.benchmark.metamodel.benchmark.util.BenchmarkSwitch<T>

public class BenchmarkSwitch<T>
extends

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

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
BenchmarkSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseBeginEvent(BeginEvent object)
          Returns the result of interpreting the object as an instance of 'Begin Event'.
 T caseBenchmark(Benchmark object)
          Returns the result of interpreting the object as an instance of 'Benchmark'.
 T caseDiscovery(Discovery object)
          Returns the result of interpreting the object as an instance of 'Discovery'.
 T caseDiscoveryIteration(DiscoveryIteration object)
          Returns the result of interpreting the object as an instance of 'Discovery Iteration'.
 T caseEndEvent(EndEvent object)
          Returns the result of interpreting the object as an instance of 'End Event'.
 T caseEvent(Event object)
          Returns the result of interpreting the object as an instance of 'Event'.
 T caseEventType(EventType object)
          Returns the result of interpreting the object as an instance of 'Event Type'.
 T caseFile(File object)
          Returns the result of interpreting the object as an instance of 'File'.
 T caseMemoryMeasurement(MemoryMeasurement object)
          Returns the result of interpreting the object as an instance of 'Memory Measurement'.
 T caseProject(Project object)
          Returns the result of interpreting the object as an instance of 'Project'.
 T caseResource(Resource object)
          Returns the result of interpreting the object as an instance of 'Resource'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Generated:
Constructor Detail

BenchmarkSwitch

public BenchmarkSwitch()
Creates an instance of the switch.

Generated:
Method Detail

caseMemoryMeasurement

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

caseEvent

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

caseEventType

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

caseBeginEvent

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

caseEndEvent

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

caseFile

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

caseResource

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

caseProject

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

caseBenchmark

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

caseDiscovery

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

caseDiscoveryIteration

public T caseDiscoveryIteration(DiscoveryIteration object)
Returns the result of interpreting the object as an instance of 'Discovery Iteration'. 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 'Discovery Iteration'.
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: