UML Modeling Layer

com.ibm.xtools.umlnotation.util
Class UmlnotationSwitch

java.lang.Object
  extended by com.ibm.xtools.umlnotation.util.UmlnotationSwitch

public class UmlnotationSwitch
extends 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:
UmlnotationPackage

Field Summary
protected static UmlnotationPackage modelPackage
          The cached model package
 
Constructor Summary
UmlnotationSwitch()
          Creates an instance of the switch
 
Method Summary
 Object caseCanonicalStyle(CanonicalStyle object)
          Returns the result of interpreting the object as an instance of 'Canonical Style'
 Object caseDescriptionStyle(DescriptionStyle object)
          Returns the result of interpreting the object as an instance of 'Description Style'
 Object caseDiagramStyle(DiagramStyle object)
          Returns the result of interpreting the object as an instance of 'Diagram Style'
 Object caseDrawerStyle(DrawerStyle object)
          Returns the result of interpreting the object as an instance of 'Drawer Style'
 Object caseFillStyle(FillStyle object)
          Returns the result of interpreting the object as an instance of 'Fill Style'
 Object caseFilteringStyle(FilteringStyle object)
          Returns the result of interpreting the object as an instance of 'Filtering Style'
 Object caseFontStyle(FontStyle object)
          Returns the result of interpreting the object as an instance of 'Font Style'
 Object caseGuideStyle(GuideStyle object)
          Returns the result of interpreting the object as an instance of 'Guide Style'
 Object caseLineStyle(LineStyle object)
          Returns the result of interpreting the object as an instance of 'Line Style'
 Object casePageStyle(PageStyle object)
          Returns the result of interpreting the object as an instance of 'Page Style'
 Object caseRoutingStyle(RoutingStyle object)
          Returns the result of interpreting the object as an instance of 'Routing Style'
 Object caseSortingStyle(SortingStyle object)
          Returns the result of interpreting the object as an instance of 'Sorting Style'
 Object caseStyle(Style object)
          Returns the result of interpreting the object as an instance of 'Style'
 Object caseTitleStyle(TitleStyle object)
          Returns the result of interpreting the object as an instance of 'Title Style'
 Object caseUMLClassifierStyle(UMLClassifierStyle object)
          Returns the result of interpreting the object as an instance of 'UML Classifier Style'
 Object caseUMLComponentStyle(UMLComponentStyle object)
          Returns the result of interpreting the object as an instance of 'UML Component Style'
 Object caseUMLConnectorStyle(UMLConnectorStyle object)
          Returns the result of interpreting the object as an instance of 'UML Connector Style'
 Object caseUMLDiagramStyle(UMLDiagramStyle object)
          Returns the result of interpreting the object as an instance of 'UML Diagram Style'
 Object caseUMLFrameStyle(UMLFrameStyle object)
          Returns the result of interpreting the object as an instance of 'UML Frame Style'
 Object caseUMLListCompartmentStyle(UMLListCompartmentStyle object)
          Returns the result of interpreting the object as an instance of 'UML List Compartment Style'
 Object caseUMLListStyle(UMLListStyle object)
          Returns the result of interpreting the object as an instance of 'UML List Style'
 Object caseUMLNameStyle(UMLNameStyle object)
          Returns the result of interpreting the object as an instance of 'UML Name Style'
 Object caseUMLParentStyle(UMLParentStyle object)
          Returns the result of interpreting the object as an instance of 'UML Parent Style'
 Object caseUMLShapeCompartmentStyle(UMLShapeCompartmentStyle object)
          Returns the result of interpreting the object as an instance of 'UML Shape Compartment Style'
 Object caseUMLShapeStyle(UMLShapeStyle object)
          Returns the result of interpreting the object as an instance of 'UML Shape Style'
 Object caseUMLStereotypeStyle(UMLStereotypeStyle object)
          Returns the result of interpreting the object as an instance of 'UML Stereotype Style'
 Object defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'
protected  Object doSwitch(EClass theEClass, EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 Object doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
protected  Object doSwitch(int classifierID, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static UmlnotationPackage modelPackage
The cached model package

Constructor Detail

UmlnotationSwitch

public UmlnotationSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

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

doSwitch

protected Object doSwitch(EClass theEClass,
                          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.

doSwitch

protected Object doSwitch(int classifierID,
                          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.

caseUMLNameStyle

public Object caseUMLNameStyle(UMLNameStyle object)
Returns the result of interpreting the object as an instance of 'UML Name 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 interpreting the object as an instance of 'UML Name Style'.
See Also:
doSwitch(EObject)

caseUMLStereotypeStyle

public Object caseUMLStereotypeStyle(UMLStereotypeStyle object)
Returns the result of interpreting the object as an instance of 'UML Stereotype 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 interpreting the object as an instance of 'UML Stereotype Style'.
See Also:
doSwitch(EObject)

caseUMLParentStyle

public Object caseUMLParentStyle(UMLParentStyle object)
Returns the result of interpreting the object as an instance of 'UML Parent 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 interpreting the object as an instance of 'UML Parent Style'.
See Also:
doSwitch(EObject)

caseUMLShapeStyle

public Object caseUMLShapeStyle(UMLShapeStyle object)
Returns the result of interpreting the object as an instance of 'UML Shape 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 interpreting the object as an instance of 'UML Shape Style'.
See Also:
doSwitch(EObject)

caseUMLClassifierStyle

public Object caseUMLClassifierStyle(UMLClassifierStyle object)
Returns the result of interpreting the object as an instance of 'UML Classifier 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 interpreting the object as an instance of 'UML Classifier Style'.
See Also:
doSwitch(EObject)

caseUMLListStyle

public Object caseUMLListStyle(UMLListStyle object)
Returns the result of interpreting the object as an instance of 'UML List 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 interpreting the object as an instance of 'UML List Style'.
See Also:
doSwitch(EObject)

caseUMLComponentStyle

public Object caseUMLComponentStyle(UMLComponentStyle object)
Returns the result of interpreting the object as an instance of 'UML Component 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 interpreting the object as an instance of 'UML Component Style'.
See Also:
doSwitch(EObject)

caseUMLDiagramStyle

public Object caseUMLDiagramStyle(UMLDiagramStyle object)
Returns the result of interpreting the object as an instance of 'UML Diagram 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 interpreting the object as an instance of 'UML Diagram Style'.
See Also:
doSwitch(EObject)

caseUMLFrameStyle

public Object caseUMLFrameStyle(UMLFrameStyle object)
Returns the result of interpreting the object as an instance of 'UML Frame 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 interpreting the object as an instance of 'UML Frame Style'.
See Also:
doSwitch(EObject)

caseUMLConnectorStyle

public Object caseUMLConnectorStyle(UMLConnectorStyle object)
Returns the result of interpreting the object as an instance of 'UML Connector 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 interpreting the object as an instance of 'UML Connector Style'.
See Also:
doSwitch(EObject)

caseUMLListCompartmentStyle

public Object caseUMLListCompartmentStyle(UMLListCompartmentStyle object)
Returns the result of interpreting the object as an instance of 'UML List Compartment 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 interpreting the object as an instance of 'UML List Compartment Style'.
See Also:
doSwitch(EObject)

caseUMLShapeCompartmentStyle

public Object caseUMLShapeCompartmentStyle(UMLShapeCompartmentStyle object)
Returns the result of interpreting the object as an instance of 'UML Shape Compartment 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 interpreting the object as an instance of 'UML Shape Compartment Style'.
See Also:
doSwitch(EObject)

caseStyle

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

caseFontStyle

public Object caseFontStyle(FontStyle object)
Returns the result of interpreting the object as an instance of 'Font 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 interpreting the object as an instance of 'Font Style'.
See Also:
doSwitch(EObject)

caseFillStyle

public Object caseFillStyle(FillStyle object)
Returns the result of interpreting the object as an instance of 'Fill 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 interpreting the object as an instance of 'Fill Style'.
See Also:
doSwitch(EObject)

caseLineStyle

public Object caseLineStyle(LineStyle object)
Returns the result of interpreting the object as an instance of 'Line 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 interpreting the object as an instance of 'Line Style'.
See Also:
doSwitch(EObject)

casePageStyle

public Object casePageStyle(PageStyle object)
Returns the result of interpreting the object as an instance of 'Page 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 interpreting the object as an instance of 'Page Style'.
See Also:
doSwitch(EObject)

caseGuideStyle

public Object caseGuideStyle(GuideStyle object)
Returns the result of interpreting the object as an instance of 'Guide 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 interpreting the object as an instance of 'Guide Style'.
See Also:
doSwitch(EObject)

caseDescriptionStyle

public Object caseDescriptionStyle(DescriptionStyle object)
Returns the result of interpreting the object as an instance of 'Description 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 interpreting the object as an instance of 'Description Style'.
See Also:
doSwitch(EObject)

caseDiagramStyle

public Object caseDiagramStyle(DiagramStyle object)
Returns the result of interpreting the object as an instance of 'Diagram 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 interpreting the object as an instance of 'Diagram Style'.
See Also:
doSwitch(EObject)

caseCanonicalStyle

public Object caseCanonicalStyle(CanonicalStyle object)
Returns the result of interpreting the object as an instance of 'Canonical 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 interpreting the object as an instance of 'Canonical Style'.
See Also:
doSwitch(EObject)

caseRoutingStyle

public Object caseRoutingStyle(RoutingStyle object)
Returns the result of interpreting the object as an instance of 'Routing 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 interpreting the object as an instance of 'Routing Style'.
See Also:
doSwitch(EObject)

caseFilteringStyle

public Object caseFilteringStyle(FilteringStyle object)
Returns the result of interpreting the object as an instance of 'Filtering 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 interpreting the object as an instance of 'Filtering Style'.
See Also:
doSwitch(EObject)

caseSortingStyle

public Object caseSortingStyle(SortingStyle object)
Returns the result of interpreting the object as an instance of 'Sorting 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 interpreting the object as an instance of 'Sorting Style'.
See Also:
doSwitch(EObject)

caseDrawerStyle

public Object caseDrawerStyle(DrawerStyle object)
Returns the result of interpreting the object as an instance of 'Drawer 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 interpreting the object as an instance of 'Drawer Style'.
See Also:
doSwitch(EObject)

caseTitleStyle

public Object caseTitleStyle(TitleStyle object)
Returns the result of interpreting the object as an instance of 'Title 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 interpreting the object as an instance of 'Title Style'.
See Also:
doSwitch(EObject)

defaultCase

public Object defaultCase(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.

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

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.