org.eclipse.birt.chart.model.data.util
Class DataSwitch

java.lang.Object
  extended byorg.eclipse.birt.chart.model.data.util.DataSwitch

public class DataSwitch
extends java.lang.Object

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:
DataPackage

Constructor Summary
DataSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseAction(Action object)
          Returns the result of interpretting the object as an instance of 'Action'.
 java.lang.Object caseBaseSampleData(BaseSampleData object)
          Returns the result of interpretting the object as an instance of 'Base Sample Data'.
 java.lang.Object caseBubbleDataSet(BubbleDataSet object)
          Returns the result of interpretting the object as an instance of 'Bubble Data Set'.
 java.lang.Object caseDataElement(DataElement object)
          Returns the result of interpretting the object as an instance of 'Element'.
 java.lang.Object caseDataSet(DataSet object)
          Returns the result of interpretting the object as an instance of 'Set'.
 java.lang.Object caseDateTimeDataElement(DateTimeDataElement object)
          Returns the result of interpretting the object as an instance of 'Date Time Data Element'.
 java.lang.Object caseDateTimeDataSet(DateTimeDataSet object)
          Returns the result of interpretting the object as an instance of 'Date Time Data Set'.
 java.lang.Object caseDifferenceDataSet(DifferenceDataSet object)
          Returns the result of interpretting the object as an instance of 'Difference Data Set'.
 java.lang.Object caseGanttDataSet(GanttDataSet object)
          Returns the result of interpretting the object as an instance of 'Gantt Data Set'.
 java.lang.Object caseNumberDataElement(NumberDataElement object)
          Returns the result of interpretting the object as an instance of 'Number Data Element'.
 java.lang.Object caseNumberDataSet(NumberDataSet object)
          Returns the result of interpretting the object as an instance of 'Number Data Set'.
 java.lang.Object caseOrthogonalSampleData(OrthogonalSampleData object)
          Returns the result of interpretting the object as an instance of 'Orthogonal Sample Data'.
 java.lang.Object caseQuery(Query object)
          Returns the result of interpretting the object as an instance of 'Query'.
 java.lang.Object caseRule(Rule object)
          Returns the result of interpretting the object as an instance of 'Rule'.
 java.lang.Object caseSampleData(SampleData object)
          Returns the result of interpretting the object as an instance of 'Sample Data'.
 java.lang.Object caseSeriesDefinition(SeriesDefinition object)
          Returns the result of interpretting the object as an instance of 'Series Definition'.
 java.lang.Object caseSeriesGrouping(SeriesGrouping object)
          Returns the result of interpretting the object as an instance of 'Series Grouping'.
 java.lang.Object caseStockDataSet(StockDataSet object)
          Returns the result of interpretting the object as an instance of 'Stock Data Set'.
 java.lang.Object caseTextDataSet(TextDataSet object)
          Returns the result of interpretting the object as an instance of 'Text Data Set'.
 java.lang.Object caseTrigger(Trigger object)
          Returns the result of interpretting the object as an instance of 'Trigger'.
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 java.lang.Object doSwitch(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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSwitch

public DataSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object doSwitch(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.

Returns:
the first non-null result returned by a caseXXX call.

caseAction

public java.lang.Object caseAction(Action object)
Returns the result of interpretting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Action'.
See Also:
doSwitch(EObject)

caseBaseSampleData

public java.lang.Object caseBaseSampleData(BaseSampleData object)
Returns the result of interpretting the object as an instance of 'Base Sample Data'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Base Sample Data'.
See Also:
doSwitch(EObject)

caseBubbleDataSet

public java.lang.Object caseBubbleDataSet(BubbleDataSet object)
Returns the result of interpretting the object as an instance of 'Bubble Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Bubble Data Set'.
See Also:
doSwitch(EObject)

caseDataElement

public java.lang.Object caseDataElement(DataElement object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)

caseDataSet

public java.lang.Object caseDataSet(DataSet object)
Returns the result of interpretting the object as an instance of 'Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Set'.
See Also:
doSwitch(EObject)

caseDateTimeDataElement

public java.lang.Object caseDateTimeDataElement(DateTimeDataElement object)
Returns the result of interpretting the object as an instance of 'Date Time Data 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 interpretting the object as an instance of 'Date Time Data Element'.
See Also:
doSwitch(EObject)

caseDateTimeDataSet

public java.lang.Object caseDateTimeDataSet(DateTimeDataSet object)
Returns the result of interpretting the object as an instance of 'Date Time Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Date Time Data Set'.
See Also:
doSwitch(EObject)

caseDifferenceDataSet

public java.lang.Object caseDifferenceDataSet(DifferenceDataSet object)
Returns the result of interpretting the object as an instance of 'Difference Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Difference Data Set'.
See Also:
doSwitch(EObject)

caseGanttDataSet

public java.lang.Object caseGanttDataSet(GanttDataSet object)
Returns the result of interpretting the object as an instance of 'Gantt Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Gantt Data Set'.
See Also:
doSwitch(EObject)

caseNumberDataElement

public java.lang.Object caseNumberDataElement(NumberDataElement object)
Returns the result of interpretting the object as an instance of 'Number Data 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 interpretting the object as an instance of 'Number Data Element'.
See Also:
doSwitch(EObject)

caseNumberDataSet

public java.lang.Object caseNumberDataSet(NumberDataSet object)
Returns the result of interpretting the object as an instance of 'Number Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Number Data Set'.
See Also:
doSwitch(EObject)

caseOrthogonalSampleData

public java.lang.Object caseOrthogonalSampleData(OrthogonalSampleData object)
Returns the result of interpretting the object as an instance of 'Orthogonal Sample Data'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Orthogonal Sample Data'.
See Also:
doSwitch(EObject)

caseQuery

public java.lang.Object caseQuery(Query object)
Returns the result of interpretting the object as an instance of 'Query'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Query'.
See Also:
doSwitch(EObject)

caseRule

public java.lang.Object caseRule(Rule object)
Returns the result of interpretting the object as an instance of 'Rule'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Rule'.
See Also:
doSwitch(EObject)

caseSampleData

public java.lang.Object caseSampleData(SampleData object)
Returns the result of interpretting the object as an instance of 'Sample Data'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Sample Data'.
See Also:
doSwitch(EObject)

caseSeriesDefinition

public java.lang.Object caseSeriesDefinition(SeriesDefinition object)
Returns the result of interpretting the object as an instance of 'Series Definition'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Series Definition'.
See Also:
doSwitch(EObject)

caseSeriesGrouping

public java.lang.Object caseSeriesGrouping(SeriesGrouping object)
Returns the result of interpretting the object as an instance of 'Series Grouping'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Series Grouping'.
See Also:
doSwitch(EObject)

caseStockDataSet

public java.lang.Object caseStockDataSet(StockDataSet object)
Returns the result of interpretting the object as an instance of 'Stock Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Stock Data Set'.
See Also:
doSwitch(EObject)

caseTextDataSet

public java.lang.Object caseTextDataSet(TextDataSet object)
Returns the result of interpretting the object as an instance of 'Text Data Set'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Text Data Set'.
See Also:
doSwitch(EObject)

caseTrigger

public java.lang.Object caseTrigger(Trigger object)
Returns the result of interpretting the object as an instance of 'Trigger'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Trigger'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting 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.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)


Copyright © 2005-2007 Actuate Corp. All rights reserved.