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 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:
ChartPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static ChartPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ChartSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAbstractLine(AbstractLine object)
Returns the result of interpreting the object as an instance of 'Abstract Line'.T
caseAxisInterval(AxisInterval object)
Returns the result of interpreting the object as an instance of 'Axis Interval'.T
caseChart(Chart object)
Returns the result of interpreting the object as an instance of 'Chart'.T
caseChartAxis(ChartAxis object)
Returns the result of interpreting the object as an instance of 'Axis'.T
caseChartColorPaletteDescription(ChartColorPaletteDescription object)
Returns the result of interpreting the object as an instance of 'Color Palette Description'.T
caseChartDataItem(ChartDataItem object)
Returns the result of interpreting the object as an instance of 'Data Item'.T
caseChartLine(ChartLine object)
Returns the result of interpreting the object as an instance of 'Line'.T
caseChartReferenceBand(ChartReferenceBand object)
Returns the result of interpreting the object as an instance of 'Reference Band'.T
caseChartReferenceBands(ChartReferenceBands object)
Returns the result of interpreting the object as an instance of 'Reference Bands'.T
caseChartReferenceLine(ChartReferenceLine object)
Returns the result of interpreting the object as an instance of 'Reference Line'.T
caseChartReferenceLines(ChartReferenceLines object)
Returns the result of interpreting the object as an instance of 'Reference Lines'.T
caseChartScale(ChartScale object)
Returns the result of interpreting the object as an instance of 'Scale'.T
caseChartSeriesItem(ChartSeriesItem object)
Returns the result of interpreting the object as an instance of 'Series Item'.T
caseDoubleRect(DoubleRect object)
Returns the result of interpreting the object as an instance of 'Double Rect'.T
caseGaugeChartQualityBand(GaugeChartQualityBand object)
Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Band'.T
caseGaugeChartQualityBands(GaugeChartQualityBands object)
Returns the result of interpreting the object as an instance of 'Gauge Chart Quality Bands'.T
caseLabelArea(LabelArea object)
Returns the result of interpreting the object as an instance of 'Label Area'.T
casePointProperties(PointProperties object)
Returns the result of interpreting the object as an instance of 'Point Properties'.T
caseRealDataItem(RealDataItem object)
Returns the result of interpreting the object as an instance of 'Real Data Item'.T
caseSeriesCalcInfo(SeriesCalcInfo object)
Returns the result of interpreting the object as an instance of 'Series Calc Info'.T
caseSeriesProperties(SeriesProperties object)
Returns the result of interpreting the object as an instance of 'Series Properties'.T
caseTrendline(Trendline object)
Returns the result of interpreting the object as an instance of 'Trendline'.T
caseTrendlineArray(TrendlineArray object)
Returns the result of interpreting the object as an instance of 'Trendline Array'.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 ChartPackage 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.
-
caseChartLine
public T caseChartLine(ChartLine object)
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
public T caseDoubleRect(DoubleRect object)
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
public T caseLabelArea(LabelArea object)
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
public T caseChartScale(ChartScale object)
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
public T caseTrendlineArray(TrendlineArray object)
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
public T caseTrendline(Trendline object)
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
public T caseAxisInterval(AxisInterval object)
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
public T caseChartAxis(ChartAxis object)
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
public T caseSeriesCalcInfo(SeriesCalcInfo object)
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
public T caseRealDataItem(RealDataItem object)
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
public T caseSeriesProperties(SeriesProperties object)
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
public T caseChartDataItem(ChartDataItem object)
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
public T caseChartSeriesItem(ChartSeriesItem object)
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
public T casePointProperties(PointProperties object)
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
public T caseGaugeChartQualityBand(GaugeChartQualityBand object)
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
public T caseGaugeChartQualityBands(GaugeChartQualityBands object)
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
public T caseChart(Chart object)
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
public T caseChartColorPaletteDescription(ChartColorPaletteDescription object)
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
public T caseChartReferenceLine(ChartReferenceLine object)
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
public T caseChartReferenceBand(ChartReferenceBand object)
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
public T caseChartReferenceLines(ChartReferenceLines object)
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
public T caseChartReferenceBands(ChartReferenceBands object)
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
public T caseAbstractLine(AbstractLine object)
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
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)
-
-