org.eclipse.birt.chart.model.attribute.util
Class AttributeSwitch

java.lang.Object
  extended by org.eclipse.birt.chart.model.attribute.util.AttributeSwitch

public class AttributeSwitch
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:
AttributePackage

Constructor Summary
AttributeSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseAccessibilityValue(AccessibilityValue object)
          Returns the result of interpretting the object as an instance of 'Accessibility Value'.
 java.lang.Object caseActionValue(ActionValue object)
          Returns the result of interpretting the object as an instance of 'Action Value'.
 java.lang.Object caseAngle3D(Angle3D object)
          Returns the result of interpretting the object as an instance of 'Angle3 D'.
 java.lang.Object caseAxisOrigin(AxisOrigin object)
          Returns the result of interpretting the object as an instance of 'Axis Origin'.
 java.lang.Object caseBounds(Bounds object)
          Returns the result of interpretting the object as an instance of 'Bounds'.
 java.lang.Object caseCallBackValue(CallBackValue object)
          Returns the result of interpretting the object as an instance of 'Call Back Value'.
 java.lang.Object caseColorDefinition(ColorDefinition object)
          Returns the result of interpretting the object as an instance of 'Color Definition'.
 java.lang.Object caseDataPoint(DataPoint object)
          Returns the result of interpretting the object as an instance of 'Data Point'.
 java.lang.Object caseDataPointComponent(DataPointComponent object)
          Returns the result of interpretting the object as an instance of 'Data Point Component'.
 java.lang.Object caseDateFormatSpecifier(DateFormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Date Format Specifier'.
 java.lang.Object caseEmbeddedImage(EmbeddedImage object)
          Returns the result of interpretting the object as an instance of 'Embedded Image'.
 java.lang.Object caseExtendedProperty(ExtendedProperty object)
          Returns the result of interpretting the object as an instance of 'Extended Property'.
 java.lang.Object caseFill(Fill object)
          Returns the result of interpretting the object as an instance of 'Fill'.
 java.lang.Object caseFontDefinition(FontDefinition object)
          Returns the result of interpretting the object as an instance of 'Font Definition'.
 java.lang.Object caseFormatSpecifier(FormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Format Specifier'.
 java.lang.Object caseFractionNumberFormatSpecifier(FractionNumberFormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Fraction Number Format Specifier'.
 java.lang.Object caseGradient(Gradient object)
          Returns the result of interpretting the object as an instance of 'Gradient'.
 java.lang.Object caseImage(Image object)
          Returns the result of interpretting the object as an instance of 'Image'.
 java.lang.Object caseInsets(Insets object)
          Returns the result of interpretting the object as an instance of 'Insets'.
 java.lang.Object caseInteractivity(Interactivity object)
          Returns the result of interpretting the object as an instance of 'Interactivity'.
 java.lang.Object caseJavaDateFormatSpecifier(JavaDateFormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Java Date Format Specifier'.
 java.lang.Object caseJavaNumberFormatSpecifier(JavaNumberFormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Java Number Format Specifier'.
 java.lang.Object caseLineAttributes(LineAttributes object)
          Returns the result of interpretting the object as an instance of 'Line Attributes'.
 java.lang.Object caseLocation(Location object)
          Returns the result of interpretting the object as an instance of 'Location'.
 java.lang.Object caseLocation3D(Location3D object)
          Returns the result of interpretting the object as an instance of 'Location3 D'.
 java.lang.Object caseMarker(Marker object)
          Returns the result of interpretting the object as an instance of 'Marker'.
 java.lang.Object caseMultipleFill(MultipleFill object)
          Returns the result of interpretting the object as an instance of 'Multiple Fill'.
 java.lang.Object caseNumberFormatSpecifier(NumberFormatSpecifier object)
          Returns the result of interpretting the object as an instance of 'Number Format Specifier'.
 java.lang.Object casePalette(Palette object)
          Returns the result of interpretting the object as an instance of 'Palette'.
 java.lang.Object caseRotation3D(Rotation3D object)
          Returns the result of interpretting the object as an instance of 'Rotation3 D'.
 java.lang.Object caseScriptValue(ScriptValue object)
          Returns the result of interpretting the object as an instance of 'Script Value'.
 java.lang.Object caseSeriesValue(SeriesValue object)
          Returns the result of interpretting the object as an instance of 'Series Value'.
 java.lang.Object caseSize(Size object)
          Returns the result of interpretting the object as an instance of 'Size'.
 java.lang.Object caseStyle(Style object)
          Returns the result of interpretting the object as an instance of 'Style'.
 java.lang.Object caseStyleMap(StyleMap object)
          Returns the result of interpretting the object as an instance of 'Style Map'.
 java.lang.Object caseText(Text object)
          Returns the result of interpretting the object as an instance of 'Text'.
 java.lang.Object caseTextAlignment(TextAlignment object)
          Returns the result of interpretting the object as an instance of 'Text Alignment'.
 java.lang.Object caseTooltipValue(TooltipValue object)
          Returns the result of interpretting the object as an instance of 'Tooltip Value'.
 java.lang.Object caseURLValue(URLValue object)
          Returns the result of interpretting the object as an instance of 'URL Value'.
 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

AttributeSwitch

public AttributeSwitch()
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.

caseAccessibilityValue

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

caseActionValue

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

caseAngle3D

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

caseAxisOrigin

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

caseBounds

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

caseCallBackValue

public java.lang.Object caseCallBackValue(CallBackValue object)
Returns the result of interpretting the object as an instance of 'Call Back Value'. 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 'Call Back Value'.
See Also:
doSwitch(EObject)

caseColorDefinition

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

caseDataPoint

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

caseDataPointComponent

public java.lang.Object caseDataPointComponent(DataPointComponent object)
Returns the result of interpretting the object as an instance of 'Data Point Component'. 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 'Data Point Component'.
See Also:
doSwitch(EObject)

caseDateFormatSpecifier

public java.lang.Object caseDateFormatSpecifier(DateFormatSpecifier object)
Returns the result of interpretting the object as an instance of 'Date Format Specifier'. 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 Format Specifier'.
See Also:
doSwitch(EObject)

caseEmbeddedImage

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

caseExtendedProperty

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

caseFill

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

caseFontDefinition

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

caseFormatSpecifier

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

caseFractionNumberFormatSpecifier

public java.lang.Object caseFractionNumberFormatSpecifier(FractionNumberFormatSpecifier object)
Returns the result of interpretting the object as an instance of 'Fraction Number Format Specifier'. 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 'Fraction Number Format Specifier'.
See Also:
doSwitch(EObject)

caseGradient

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

caseImage

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

caseInsets

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

caseInteractivity

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

caseJavaDateFormatSpecifier

public java.lang.Object caseJavaDateFormatSpecifier(JavaDateFormatSpecifier object)
Returns the result of interpretting the object as an instance of 'Java Date Format Specifier'. 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 'Java Date Format Specifier'.
See Also:
doSwitch(EObject)

caseJavaNumberFormatSpecifier

public java.lang.Object caseJavaNumberFormatSpecifier(JavaNumberFormatSpecifier object)
Returns the result of interpretting the object as an instance of 'Java Number Format Specifier'. 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 'Java Number Format Specifier'.
See Also:
doSwitch(EObject)

caseLineAttributes

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

caseLocation

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

caseLocation3D

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

caseMarker

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

caseMultipleFill

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

caseNumberFormatSpecifier

public java.lang.Object caseNumberFormatSpecifier(NumberFormatSpecifier object)
Returns the result of interpretting the object as an instance of 'Number Format Specifier'. 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 Format Specifier'.
See Also:
doSwitch(EObject)

casePalette

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

caseRotation3D

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

caseScriptValue

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

caseSeriesValue

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

caseSize

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

caseStyle

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

caseStyleMap

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

caseText

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

caseTextAlignment

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

caseTooltipValue

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

caseURLValue

public java.lang.Object caseURLValue(URLValue object)
Returns the result of interpretting the object as an instance of 'URL Value'. 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 'URL Value'.
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-2008 Actuate Corp. All rights reserved.