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 calldoSwitch(object)
to invoke thecaseXXX
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:
ContentPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static ContentPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ContentSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseArea(Area object)
Returns the result of interpreting the object as an instance of 'Area'.T
caseBaseDrawingProperties(BaseDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Base Drawing Properties'.T
caseBaseDrawingWithBackgroundProperties(BaseDrawingWithBackgroundProperties object)
Returns the result of interpreting the object as an instance of 'Base Drawing With Background Properties'.T
caseBaseFormattingCellProperties(BaseFormattingCellProperties object)
Returns the result of interpreting the object as an instance of 'Base Formatting Cell Properties'.T
caseCellLine(CellLine object)
Returns the result of interpreting the object as an instance of 'Cell Line'.T
caseCellReference(CellReference object)
Returns the result of interpreting the object as an instance of 'Cell Reference'.T
caseCellsProperties(CellsProperties object)
Returns the result of interpreting the object as an instance of 'Cells Properties'.T
caseColumnsProperties(ColumnsProperties object)
Returns the result of interpreting the object as an instance of 'Columns Properties'.T
caseColumnsRowsProperties(ColumnsRowsProperties object)
Returns the result of interpreting the object as an instance of 'Columns Rows Properties'.T
caseDcsDetailId(DcsDetailId object)
Returns the result of interpreting the object as an instance of 'Dcs Detail Id'.T
caseDrawingLine(DrawingLine object)
Returns the result of interpreting the object as an instance of 'Drawing Line'.T
caseEllipseDrawingProperties(EllipseDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Ellipse Drawing Properties'.T
caseGroupDrawingProperties(GroupDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Group Drawing Properties'.T
caseLineDrawingProperties(LineDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Line Drawing Properties'.T
caseLocalString(LocalString object)
Returns the result of interpreting the object as an instance of 'Local String'.T
casePictureDrawingProperties(PictureDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Picture Drawing Properties'.T
caseRectangleDrawingProperties(RectangleDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Rectangle Drawing Properties'.T
caseRowsProperties(RowsProperties object)
Returns the result of interpreting the object as an instance of 'Rows Properties'.T
caseSpreadsheetLine(SpreadsheetLine object)
Returns the result of interpreting the object as an instance of 'Spreadsheet Line'.T
caseSpreadsheetProperties(SpreadsheetProperties object)
Returns the result of interpreting the object as an instance of 'Spreadsheet Properties'.T
caseTableProperties(TableProperties object)
Returns the result of interpreting the object as an instance of 'Table Properties'.T
caseTextDrawingProperties(TextDrawingProperties object)
Returns the result of interpreting the object as an instance of 'Text Drawing Properties'.T
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.
-
-
-
Field Detail
-
modelPackage
protected static ContentPackage modelPackage
The cached model package
-
-
Method Detail
-
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
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.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseSpreadsheetLine
public T caseSpreadsheetLine(SpreadsheetLine object)
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
public T caseCellLine(CellLine object)
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
public T caseDrawingLine(DrawingLine object)
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
public T caseLocalString(LocalString object)
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
public T caseArea(Area object)
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
public T caseSpreadsheetProperties(SpreadsheetProperties object)
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
public T caseCellReference(CellReference object)
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
public T caseBaseFormattingCellProperties(BaseFormattingCellProperties object)
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
public T caseCellsProperties(CellsProperties object)
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
public T caseColumnsRowsProperties(ColumnsRowsProperties object)
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
public T caseColumnsProperties(ColumnsProperties object)
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
public T caseRowsProperties(RowsProperties object)
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
public T caseTableProperties(TableProperties object)
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
public T caseBaseDrawingProperties(BaseDrawingProperties object)
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
public T caseLineDrawingProperties(LineDrawingProperties object)
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
public T caseBaseDrawingWithBackgroundProperties(BaseDrawingWithBackgroundProperties object)
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
public T caseRectangleDrawingProperties(RectangleDrawingProperties object)
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
public T caseTextDrawingProperties(TextDrawingProperties object)
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
public T caseEllipseDrawingProperties(EllipseDrawingProperties object)
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
public T caseGroupDrawingProperties(GroupDrawingProperties object)
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
public T casePictureDrawingProperties(PictureDrawingProperties object)
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
public T caseDcsDetailId(DcsDetailId object)
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)
-
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 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)
-
-