org.eclipse.emf.ecp.view.validation.test.model.util
Class TestSwitch<T>

java.lang.Object
  extended by org.eclipse.emf.ecore.util.Switch<T>
      extended by org.eclipse.emf.ecp.view.validation.test.model.util.TestSwitch<T>

public class TestSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>

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:
TestPackage

Constructor Summary
TestSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseBook(Book object)
          Returns the result of interpreting the object as an instance of 'Book'.
 T caseComputer(Computer object)
          Returns the result of interpreting the object as an instance of 'Computer'.
 T caseContainer(Container object)
          Returns the result of interpreting the object as an instance of 'Container'.
 T caseContent(Content object)
          Returns the result of interpreting the object as an instance of 'Content'.
 T caseLibrarian(Librarian object)
          Returns the result of interpreting the object as an instance of 'Librarian'.
 T caseLibrary(Library object)
          Returns the result of interpreting the object as an instance of 'Library'.
 T caseMainboard(Mainboard object)
          Returns the result of interpreting the object as an instance of 'Mainboard'.
 T casePowerBlock(PowerBlock object)
          Returns the result of interpreting the object as an instance of 'Power Block'.
 T caseTableContent(TableContent object)
          Returns the result of interpreting the object as an instance of 'Table Content'.
 T caseTableContentWithoutValidation(TableContentWithoutValidation object)
          Returns the result of interpreting the object as an instance of 'Table Content Without Validation'.
 T caseTableContentWithValidation(TableContentWithValidation object)
          Returns the result of interpreting the object as an instance of 'Table Content With Validation'.
 T caseTableWithMultiplicity(TableWithMultiplicity object)
          Returns the result of interpreting the object as an instance of 'Table With Multiplicity'.
 T caseTableWithoutMultiplicity(TableWithoutMultiplicity object)
          Returns the result of interpreting the object as an instance of 'Table Without Multiplicity'.
 T caseTableWithUnique(TableWithUnique object)
          Returns the result of interpreting the object as an instance of 'Table With Unique'.
 T caseWriter(Writer object)
          Returns the result of interpreting the object as an instance of 'Writer'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 
Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSwitch

public TestSwitch()
Creates an instance of the switch.

Method Detail

caseLibrary

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

caseWriter

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

caseBook

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

caseLibrarian

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

caseComputer

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

caseMainboard

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

casePowerBlock

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

caseContainer

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

caseContent

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

caseTableWithMultiplicity

public T caseTableWithMultiplicity(TableWithMultiplicity object)
Returns the result of interpreting the object as an instance of 'Table With Multiplicity'. 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 'Table With Multiplicity'.
See Also:
doSwitch(EObject)

caseTableContent

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

caseTableContentWithoutValidation

public T caseTableContentWithoutValidation(TableContentWithoutValidation object)
Returns the result of interpreting the object as an instance of 'Table Content Without Validation'. 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 'Table Content Without Validation'.
See Also:
doSwitch(EObject)

caseTableContentWithValidation

public T caseTableContentWithValidation(TableContentWithValidation object)
Returns the result of interpreting the object as an instance of 'Table Content With Validation'. 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 'Table Content With Validation'.
See Also:
doSwitch(EObject)

caseTableWithoutMultiplicity

public T caseTableWithoutMultiplicity(TableWithoutMultiplicity object)
Returns the result of interpreting the object as an instance of 'Table Without Multiplicity'. 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 'Table Without Multiplicity'.
See Also:
doSwitch(EObject)

caseTableWithUnique

public T caseTableWithUnique(TableWithUnique object)
Returns the result of interpreting the object as an instance of 'Table With Unique'. 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 'Table With Unique'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(org.eclipse.emf.ecore.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.

Overrides:
defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)


Copyright © 2014. All Rights Reserved.