|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.emf.ecp.view.validation.test.model.util.TestSwitch<T>
public class TestSwitch<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.
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 |
---|
public TestSwitch()
Method Detail |
---|
public T caseLibrary(Library object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWriter(Writer object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBook(Book object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLibrarian(Librarian object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComputer(Computer object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMainboard(Mainboard object)
object
- the target of the switch.
doSwitch(EObject)
public T casePowerBlock(PowerBlock object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContainer(Container object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContent(Content object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableWithMultiplicity(TableWithMultiplicity object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableContent(TableContent object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableContentWithoutValidation(TableContentWithoutValidation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableContentWithValidation(TableContentWithValidation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableWithoutMultiplicity(TableWithoutMultiplicity object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTableWithUnique(TableWithUnique object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |