Class ChartSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
com._1c.g5.v8.dt.chart.model.util.ChartSwitch<T>
public class ChartSwitch<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 TypeMethodDescriptioncaseAbstractLine
(AbstractLine object) Returns the result of interpreting the object as an instance of 'Abstract Line'.caseAxisInterval
(AxisInterval object) Returns the result of interpreting the object as an instance of 'Axis Interval'.Returns the result of interpreting the object as an instance of 'Chart'.caseChartAxis
(ChartAxis object) Returns the result of interpreting the object as an instance of 'Axis'.Returns the result of interpreting the object as an instance of 'Color Palette Description'.caseChartDataItem
(ChartDataItem object) Returns the result of interpreting the object as an instance of 'Data Item'.caseChartLine
(ChartLine object) Returns the result of interpreting the object as an instance of 'Line'.Returns the result of interpreting the object as an instance of 'Reference Band'.Returns the result of interpreting the object as an instance of 'Reference Bands'.Returns the result of interpreting the object as an instance of 'Reference Line'.Returns the result of interpreting the object as an instance of 'Reference Lines'.caseChartScale
(ChartScale object) Returns the result of interpreting the object as an instance of 'Scale'.caseChartSeriesItem
(ChartSeriesItem object) Returns the result of interpreting the object as an instance of 'Series Item'.caseDoubleRect
(DoubleRect object) Returns the result of interpreting the object as an instance of 'Double Rect'.Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Band'.Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Bands'.caseLabelArea
(LabelArea object) Returns the result of interpreting the object as an instance of 'Label Area'.casePointProperties
(PointProperties object) Returns the result of interpreting the object as an instance of 'Point Properties'.caseRealDataItem
(RealDataItem object) Returns the result of interpreting the object as an instance of 'Real Data Item'.caseSeriesCalcInfo
(SeriesCalcInfo object) Returns the result of interpreting the object as an instance of 'Series Calc Info'.caseSeriesProperties
(SeriesProperties object) Returns the result of interpreting the object as an instance of 'Series Properties'.caseTrendline
(Trendline object) Returns the result of interpreting the object as an instance of 'Trendline'.caseTrendlineArray
(TrendlineArray object) Returns the result of interpreting the object as an instance of 'Trendline Array'.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
-
ChartSwitch
public ChartSwitch()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.
-
caseChartLine
Returns the result of interpreting the object as an instance of '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 'Line'.
- See Also:
-
doSwitch(EObject)
-
caseDoubleRect
Returns the result of interpreting the object as an instance of 'Double Rect'. 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 'Double Rect'.
- See Also:
-
doSwitch(EObject)
-
caseLabelArea
Returns the result of interpreting the object as an instance of 'Label 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 'Label Area'.
- See Also:
-
doSwitch(EObject)
-
caseChartScale
Returns the result of interpreting the object as an instance of 'Scale'. 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 'Scale'.
- See Also:
-
doSwitch(EObject)
-
caseTrendlineArray
Returns the result of interpreting the object as an instance of 'Trendline Array'. 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 'Trendline Array'.
- See Also:
-
doSwitch(EObject)
-
caseTrendline
Returns the result of interpreting the object as an instance of 'Trendline'. 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 'Trendline'.
- See Also:
-
doSwitch(EObject)
-
caseAxisInterval
Returns the result of interpreting the object as an instance of 'Axis Interval'. 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 'Axis Interval'.
- See Also:
-
doSwitch(EObject)
-
caseChartAxis
Returns the result of interpreting the object as an instance of 'Axis'. 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 'Axis'.
- See Also:
-
doSwitch(EObject)
-
caseSeriesCalcInfo
Returns the result of interpreting the object as an instance of 'Series Calc Info'. 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 'Series Calc Info'.
- See Also:
-
doSwitch(EObject)
-
caseRealDataItem
Returns the result of interpreting the object as an instance of 'Real Data Item'. 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 'Real Data Item'.
- See Also:
-
doSwitch(EObject)
-
caseSeriesProperties
Returns the result of interpreting the object as an instance of 'Series 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 'Series Properties'.
- See Also:
-
doSwitch(EObject)
-
caseChartDataItem
Returns the result of interpreting the object as an instance of 'Data Item'. 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 'Data Item'.
- See Also:
-
doSwitch(EObject)
-
caseChartSeriesItem
Returns the result of interpreting the object as an instance of 'Series Item'. 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 'Series Item'.
- See Also:
-
doSwitch(EObject)
-
casePointProperties
Returns the result of interpreting the object as an instance of 'Point 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 'Point Properties'.
- See Also:
-
doSwitch(EObject)
-
caseGaugeChartQualityBand
Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Band'. 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 'Gauge Chart Quality Band'.
- See Also:
-
doSwitch(EObject)
-
caseGaugeChartQualityBands
Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Bands'. 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 'Gauge Chart Quality Bands'.
- See Also:
-
doSwitch(EObject)
-
caseChart
Returns the result of interpreting the object as an instance of 'Chart'. 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 'Chart'.
- See Also:
-
doSwitch(EObject)
-
caseChartColorPaletteDescription
Returns the result of interpreting the object as an instance of 'Color Palette Description'. 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 'Color Palette Description'.
- See Also:
-
doSwitch(EObject)
-
caseChartReferenceLine
Returns the result of interpreting the object as an instance of 'Reference 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 'Reference Line'.
- See Also:
-
doSwitch(EObject)
-
caseChartReferenceBand
Returns the result of interpreting the object as an instance of 'Reference Band'. 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 'Reference Band'.
- See Also:
-
doSwitch(EObject)
-
caseChartReferenceLines
Returns the result of interpreting the object as an instance of 'Reference Lines'. 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 'Reference Lines'.
- See Also:
-
doSwitch(EObject)
-
caseChartReferenceBands
Returns the result of interpreting the object as an instance of 'Reference Bands'. 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 'Reference Bands'.
- See Also:
-
doSwitch(EObject)
-
caseAbstractLine
Returns the result of interpreting the object as an instance of 'Abstract 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 'Abstract Line'.
- 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)
-