Class ContentSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
com._1c.g5.v8.dt.moxel.content.util.ContentSwitch<T>
public class ContentSwitch<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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Area'.Returns the result of interpreting the object as an instance of 'Base Drawing Properties'.Returns the result of interpreting the object as an instance of 'Base Drawing With Background Properties'.Returns the result of interpreting the object as an instance of 'Base Formatting Cell Properties'.caseCellLine
(CellLine object) Returns the result of interpreting the object as an instance of 'Cell Line'.caseCellReference
(CellReference object) Returns the result of interpreting the object as an instance of 'Cell Reference'.caseCellsProperties
(CellsProperties object) Returns the result of interpreting the object as an instance of 'Cells Properties'.Returns the result of interpreting the object as an instance of 'Columns Properties'.Returns the result of interpreting the object as an instance of 'Columns Rows Properties'.caseDcsDetailId
(DcsDetailId object) Returns the result of interpreting the object as an instance of 'Dcs Detail Id'.caseDrawingLine
(DrawingLine object) Returns the result of interpreting the object as an instance of 'Drawing Line'.Returns the result of interpreting the object as an instance of 'Ellipse Drawing Properties'.Returns the result of interpreting the object as an instance of 'Group Drawing Properties'.Returns the result of interpreting the object as an instance of 'Line Drawing Properties'.caseLocalString
(LocalString object) Returns the result of interpreting the object as an instance of 'Local String'.Returns the result of interpreting the object as an instance of 'Picture Drawing Properties'.Returns the result of interpreting the object as an instance of 'Rectangle Drawing Properties'.caseRowsProperties
(RowsProperties object) Returns the result of interpreting the object as an instance of 'Rows Properties'.caseSpreadsheetLine
(SpreadsheetLine object) Returns the result of interpreting the object as an instance of 'Spreadsheet Line'.Returns the result of interpreting the object as an instance of 'Spreadsheet Properties'.caseTableProperties
(TableProperties object) Returns the result of interpreting the object as an instance of 'Table Properties'.Returns the result of interpreting the object as an instance of 'Text Drawing Properties'.Returns the result of interpreting the object as an instance of 'Value'.defaultCase
(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch
(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
ContentSwitch
public ContentSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseSpreadsheetLine
Returns the result of interpreting the object as an instance of 'Spreadsheet Line'. 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 'Spreadsheet Line'.
- See Also:
-
doSwitch(EObject)
-
caseCellLine
Returns the result of interpreting the object as an instance of 'Cell Line'. 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 'Cell Line'.
- See Also:
-
doSwitch(EObject)
-
caseDrawingLine
Returns the result of interpreting the object as an instance of 'Drawing Line'. 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 'Drawing Line'.
- See Also:
-
doSwitch(EObject)
-
caseLocalString
Returns the result of interpreting the object as an instance of 'Local String'. 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 'Local String'.
- See Also:
-
doSwitch(EObject)
-
caseArea
Returns the result of interpreting the object as an instance of 'Area'. 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 'Area'.
- See Also:
-
doSwitch(EObject)
-
caseSpreadsheetProperties
Returns the result of interpreting the object as an instance of 'Spreadsheet Properties'. 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 'Spreadsheet Properties'.
- See Also:
-
doSwitch(EObject)
-
caseCellReference
Returns the result of interpreting the object as an instance of 'Cell Reference'. 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 'Cell Reference'.
- See Also:
-
doSwitch(EObject)
-
caseBaseFormattingCellProperties
Returns the result of interpreting the object as an instance of 'Base Formatting Cell Properties'. 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 'Base Formatting Cell Properties'.
- See Also:
-
doSwitch(EObject)
-
caseCellsProperties
Returns the result of interpreting the object as an instance of 'Cells Properties'. 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 'Cells Properties'.
- See Also:
-
doSwitch(EObject)
-
caseColumnsRowsProperties
Returns the result of interpreting the object as an instance of 'Columns Rows Properties'. 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 'Columns Rows Properties'.
- See Also:
-
doSwitch(EObject)
-
caseColumnsProperties
Returns the result of interpreting the object as an instance of 'Columns Properties'. 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 'Columns Properties'.
- See Also:
-
doSwitch(EObject)
-
caseRowsProperties
Returns the result of interpreting the object as an instance of 'Rows Properties'. 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 'Rows Properties'.
- See Also:
-
doSwitch(EObject)
-
caseTableProperties
Returns the result of interpreting the object as an instance of 'Table Properties'. 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 Properties'.
- See Also:
-
doSwitch(EObject)
-
caseBaseDrawingProperties
Returns the result of interpreting the object as an instance of 'Base Drawing Properties'. 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 'Base Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseLineDrawingProperties
Returns the result of interpreting the object as an instance of 'Line Drawing Properties'. 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 'Line Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseBaseDrawingWithBackgroundProperties
Returns the result of interpreting the object as an instance of 'Base Drawing With Background Properties'. 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 'Base Drawing With Background Properties'.
- See Also:
-
doSwitch(EObject)
-
caseRectangleDrawingProperties
Returns the result of interpreting the object as an instance of 'Rectangle Drawing Properties'. 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 'Rectangle Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseTextDrawingProperties
Returns the result of interpreting the object as an instance of 'Text Drawing Properties'. 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 'Text Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseEllipseDrawingProperties
Returns the result of interpreting the object as an instance of 'Ellipse Drawing Properties'. 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 'Ellipse Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseGroupDrawingProperties
Returns the result of interpreting the object as an instance of 'Group Drawing Properties'. 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 'Group Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
casePictureDrawingProperties
Returns the result of interpreting the object as an instance of 'Picture Drawing Properties'. 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 'Picture Drawing Properties'.
- See Also:
-
doSwitch(EObject)
-
caseDcsDetailId
Returns the result of interpreting the object as an instance of 'Dcs Detail Id'. 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 'Dcs Detail Id'.
- See Also:
-
doSwitch(EObject)
-
caseValue
Returns the result of interpreting the object as an instance of 'Value'. 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 'Value'.
- See Also:
-
doSwitch(EObject)
-
defaultCase
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 classorg.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)
-