Class 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 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:
    ChartEditorPackage
    • Field Detail

    • Constructor Detail

      • ChartEditorSwitch

        public ChartEditorSwitch()
        Creates an instance of the switch.
    • 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 class org.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)
        Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
        Overrides:
        doSwitch in class org.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 class org.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)