Class ChartEditorSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- com._1c.g5.v8.dt.form.ui.chart.editor.model.util.ChartEditorSwitch<T>
-
public class ChartEditorSwitch<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:
ChartEditorPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static ChartEditorPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ChartEditorSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAnyChartElement(AnyChartElement object)
Returns the result of interpreting the object as an instance of 'Any Chart Element'.T
caseAnyChartRepresentation(AnyChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Any Chart Representation'.T
caseChartElement(ChartElement object)
Returns the result of interpreting the object as an instance of 'Chart Element'.T
caseChartLegend(ChartLegend object)
Returns the result of interpreting the object as an instance of 'Chart Legend'.T
caseChartMainArea(ChartMainArea object)
Returns the result of interpreting the object as an instance of 'Chart Main Area'.T
caseChartRepresentation(ChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Chart Representation'.T
caseChartTitle(ChartTitle object)
Returns the result of interpreting the object as an instance of 'Chart Title'.T
caseDendrogramElement(DendrogramElement object)
Returns the result of interpreting the object as an instance of 'Dendrogram Element'.T
caseDendrogramMainArea(DendrogramMainArea object)
Returns the result of interpreting the object as an instance of 'Dendrogram Main Area'.T
caseDendrogramRepresentation(DendrogramRepresentation object)
Returns the result of interpreting the object as an instance of 'Dendrogram Representation'.T
caseDendrogramTitle(DendrogramTitle object)
Returns the result of interpreting the object as an instance of 'Dendrogram Title'.T
caseGanttChartElement(GanttChartElement object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Element'.T
caseGanttChartLegend(GanttChartLegend object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Legend'.T
caseGanttChartMainArea(GanttChartMainArea object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Main Area'.T
caseGanttChartRepresentation(GanttChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Representation'.T
caseGanttChartTitle(GanttChartTitle object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Title'.T
caseLegend(Legend object)
Returns the result of interpreting the object as an instance of 'Legend'.T
caseMainArea(MainArea object)
Returns the result of interpreting the object as an instance of 'Main Area'.T
caseTitle(Title object)
Returns the result of interpreting the object as an instance of 'Title'.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 ChartEditorPackage 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.
-
caseAnyChartRepresentation
public T caseAnyChartRepresentation(AnyChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Any Chart Representation'. 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 'Any Chart Representation'.
- See Also:
doSwitch(EObject)
-
caseChartRepresentation
public T caseChartRepresentation(ChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Chart Representation'. 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 Representation'.
- See Also:
doSwitch(EObject)
-
caseDendrogramRepresentation
public T caseDendrogramRepresentation(DendrogramRepresentation object)
Returns the result of interpreting the object as an instance of 'Dendrogram Representation'. 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 'Dendrogram Representation'.
- See Also:
doSwitch(EObject)
-
caseGanttChartRepresentation
public T caseGanttChartRepresentation(GanttChartRepresentation object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Representation'. 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 'Gantt Chart Representation'.
- See Also:
doSwitch(EObject)
-
caseAnyChartElement
public T caseAnyChartElement(AnyChartElement object)
Returns the result of interpreting the object as an instance of 'Any Chart Element'. 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 'Any Chart Element'.
- See Also:
doSwitch(EObject)
-
caseTitle
public T caseTitle(Title object)
Returns the result of interpreting the object as an instance of 'Title'. 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 'Title'.
- See Also:
doSwitch(EObject)
-
caseLegend
public T caseLegend(Legend object)
Returns the result of interpreting the object as an instance of 'Legend'. 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 'Legend'.
- See Also:
doSwitch(EObject)
-
caseMainArea
public T caseMainArea(MainArea object)
Returns the result of interpreting the object as an instance of 'Main 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 'Main Area'.
- See Also:
doSwitch(EObject)
-
caseChartElement
public T caseChartElement(ChartElement object)
Returns the result of interpreting the object as an instance of 'Chart Element'. 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 Element'.
- See Also:
doSwitch(EObject)
-
caseDendrogramElement
public T caseDendrogramElement(DendrogramElement object)
Returns the result of interpreting the object as an instance of 'Dendrogram Element'. 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 'Dendrogram Element'.
- See Also:
doSwitch(EObject)
-
caseGanttChartElement
public T caseGanttChartElement(GanttChartElement object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Element'. 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 'Gantt Chart Element'.
- See Also:
doSwitch(EObject)
-
caseChartTitle
public T caseChartTitle(ChartTitle object)
Returns the result of interpreting the object as an instance of 'Chart Title'. 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 Title'.
- See Also:
doSwitch(EObject)
-
caseChartLegend
public T caseChartLegend(ChartLegend object)
Returns the result of interpreting the object as an instance of 'Chart Legend'. 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 Legend'.
- See Also:
doSwitch(EObject)
-
caseChartMainArea
public T caseChartMainArea(ChartMainArea object)
Returns the result of interpreting the object as an instance of 'Chart Main 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 'Chart Main Area'.
- See Also:
doSwitch(EObject)
-
caseDendrogramTitle
public T caseDendrogramTitle(DendrogramTitle object)
Returns the result of interpreting the object as an instance of 'Dendrogram Title'. 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 'Dendrogram Title'.
- See Also:
doSwitch(EObject)
-
caseDendrogramMainArea
public T caseDendrogramMainArea(DendrogramMainArea object)
Returns the result of interpreting the object as an instance of 'Dendrogram Main 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 'Dendrogram Main Area'.
- See Also:
doSwitch(EObject)
-
caseGanttChartTitle
public T caseGanttChartTitle(GanttChartTitle object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Title'. 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 'Gantt Chart Title'.
- See Also:
doSwitch(EObject)
-
caseGanttChartLegend
public T caseGanttChartLegend(GanttChartLegend object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Legend'. 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 'Gantt Chart Legend'.
- See Also:
doSwitch(EObject)
-
caseGanttChartMainArea
public T caseGanttChartMainArea(GanttChartMainArea object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Main 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 'Gantt Chart Main Area'.
- 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)
-
-