public class ExcelSwitch<T> extends Object
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.
ExcelPackage
Modifier and Type | Field and Description |
---|---|
protected static ExcelPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
ExcelSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseCell(Cell object)
Returns the result of interpreting the object as an instance of 'Cell'.
|
T |
caseCellRegion(CellRegion object)
Returns the result of interpreting the object as an instance of 'Cell Region'.
|
T |
caseCellStyle(CellStyle object)
Returns the result of interpreting the object as an instance of 'Cell Style'.
|
T |
caseColor(Color object)
Returns the result of interpreting the object as an instance of 'Color'.
|
T |
caseColumn(Column object)
Returns the result of interpreting the object as an instance of 'Column'.
|
T |
caseComment(Comment object)
Returns the result of interpreting the object as an instance of 'Comment'.
|
T |
caseEModelElement(EModelElement object)
Returns the result of interpreting the object as an instance of 'EModel Element'.
|
T |
caseFont(Font object)
Returns the result of interpreting the object as an instance of 'Font'.
|
T |
caseHyperlink(Hyperlink object)
Returns the result of interpreting the object as an instance of 'Hyperlink'.
|
T |
caseRow(Row object)
Returns the result of interpreting the object as an instance of 'Row'.
|
T |
caseSheet(Sheet object)
Returns the result of interpreting the object as an instance of 'Sheet'.
|
T |
caseWorkbook(Workbook object)
Returns the result of interpreting the object as an instance of 'Workbook'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected static ExcelPackage modelPackage
public T doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseCell(Cell object)
object
- the target of the switch.doSwitch(EObject)
public T caseSheet(Sheet object)
object
- the target of the switch.doSwitch(EObject)
public T caseRow(Row object)
object
- the target of the switch.doSwitch(EObject)
public T caseComment(Comment object)
object
- the target of the switch.doSwitch(EObject)
public T caseCellStyle(CellStyle object)
object
- the target of the switch.doSwitch(EObject)
public T caseCellRegion(CellRegion object)
object
- the target of the switch.doSwitch(EObject)
public T caseWorkbook(Workbook object)
object
- the target of the switch.doSwitch(EObject)
public T caseFont(Font object)
object
- the target of the switch.doSwitch(EObject)
public T caseColumn(Column object)
object
- the target of the switch.doSwitch(EObject)
public T caseColor(Color object)
object
- the target of the switch.doSwitch(EObject)
public T caseHyperlink(Hyperlink object)
object
- the target of the switch.doSwitch(EObject)
public T caseEModelElement(EModelElement object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.doSwitch(org.eclipse.emf.ecore.EObject)