g-Eclipse
Release 1.0.0

eu.geclipse.batch.model.qdl.util
Class QdlSwitch<T>

java.lang.Object
  extended by eu.geclipse.batch.model.qdl.util.QdlSwitch<T>

public class QdlSwitch<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:
QdlPackage

Constructor Summary
QdlSwitch()
          Creates an instance of the switch
 
Method Summary
 T caseAllowedVirtualOrganizationsType(AllowedVirtualOrganizationsType object)
          Returns the result of interpreting the object as an instance of 'Allowed Virtual Organizations Type'
 T caseBoundaryType(BoundaryType object)
          Returns the result of interpreting the object as an instance of 'Boundary Type'
 T caseDocumentRoot(DocumentRoot object)
          Returns the result of interpreting the object as an instance of 'Document Root'
 T caseExactType(ExactType object)
          Returns the result of interpreting the object as an instance of 'Exact Type'
 T caseIntegerBoundaryType(IntegerBoundaryType object)
          Returns the result of interpreting the object as an instance of 'Integer Boundary Type'
 T caseIntegerExactType(IntegerExactType object)
          Returns the result of interpreting the object as an instance of 'Integer Exact Type'
 T caseIntegerRangeType(IntegerRangeType object)
          Returns the result of interpreting the object as an instance of 'Integer Range Type'
 T caseIntegerRangeValueType(IntegerRangeValueType object)
          Returns the result of interpreting the object as an instance of 'Integer Range Value Type'
 T caseQueueType(QueueType object)
          Returns the result of interpreting the object as an instance of 'Queue Type'
 T caseRangeType(RangeType object)
          Returns the result of interpreting the object as an instance of 'Range Type'
 T caseRangeValueType(RangeValueType object)
          Returns the result of interpreting the object as an instance of 'Range Value Type'
 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

QdlSwitch

public QdlSwitch()
Creates an instance of the switch.

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.

caseAllowedVirtualOrganizationsType

public T caseAllowedVirtualOrganizationsType(AllowedVirtualOrganizationsType object)
Returns the result of interpreting the object as an instance of 'Allowed Virtual Organizations 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 'Allowed Virtual Organizations Type'.
See Also:
doSwitch(EObject)

caseBoundaryType

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

caseDocumentRoot

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

caseExactType

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

caseIntegerBoundaryType

public T caseIntegerBoundaryType(IntegerBoundaryType object)
Returns the result of interpreting the object as an instance of 'Integer Boundary 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 'Integer Boundary Type'.
See Also:
doSwitch(EObject)

caseIntegerExactType

public T caseIntegerExactType(IntegerExactType object)
Returns the result of interpreting the object as an instance of 'Integer Exact 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 'Integer Exact Type'.
See Also:
doSwitch(EObject)

caseIntegerRangeType

public T caseIntegerRangeType(IntegerRangeType object)
Returns the result of interpreting the object as an instance of 'Integer Range 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 'Integer Range Type'.
See Also:
doSwitch(EObject)

caseIntegerRangeValueType

public T caseIntegerRangeValueType(IntegerRangeValueType object)
Returns the result of interpreting the object as an instance of 'Integer Range Value 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 'Integer Range Value Type'.
See Also:
doSwitch(EObject)

caseQueueType

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

caseRangeType

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

caseRangeValueType

public T caseRangeValueType(RangeValueType object)
Returns the result of interpreting the object as an instance of 'Range Value 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 'Range Value Type'.
See Also:
doSwitch(EObject)

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)

g-Eclipse
Release 1.0.0