|
Generation Framework | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.gmfgraph.util.GMFGraphSwitch
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.
GMFGraphPackage| Field Summary | |
protected static GMFGraphPackage |
modelPackage
The cached model package |
| Constructor Summary | |
GMFGraphSwitch()
Creates an instance of the switch |
|
| Method Summary | |
java.lang.Object |
caseAlignmentFacet(AlignmentFacet object)
Returns the result of interpretting the object as an instance of 'Alignment Facet' |
java.lang.Object |
caseBasicFont(BasicFont object)
Returns the result of interpretting the object as an instance of 'Basic Font' |
java.lang.Object |
caseBorder(Border object)
Returns the result of interpretting the object as an instance of 'Border' |
java.lang.Object |
caseBorderLayout(BorderLayout object)
Returns the result of interpretting the object as an instance of 'Border Layout' |
java.lang.Object |
caseBorderLayoutData(BorderLayoutData object)
Returns the result of interpretting the object as an instance of 'Border Layout Data' |
java.lang.Object |
caseCanvas(Canvas object)
Returns the result of interpretting the object as an instance of 'Canvas' |
java.lang.Object |
caseColor(Color object)
Returns the result of interpretting the object as an instance of 'Color' |
java.lang.Object |
caseCompartment(Compartment object)
Returns the result of interpretting the object as an instance of 'Compartment' |
java.lang.Object |
caseCompoundBorder(CompoundBorder object)
Returns the result of interpretting the object as an instance of 'Compound Border' |
java.lang.Object |
caseConnection(Connection object)
Returns the result of interpretting the object as an instance of 'Connection' |
java.lang.Object |
caseConnectionFigure(ConnectionFigure object)
Returns the result of interpretting the object as an instance of 'Connection Figure' |
java.lang.Object |
caseConstantColor(ConstantColor object)
Returns the result of interpretting the object as an instance of 'Constant Color' |
java.lang.Object |
caseCustomAttribute(CustomAttribute object)
Returns the result of interpretting the object as an instance of 'Custom Attribute' |
java.lang.Object |
caseCustomBorder(CustomBorder object)
Returns the result of interpretting the object as an instance of 'Custom Border' |
java.lang.Object |
caseCustomClass(CustomClass object)
Returns the result of interpretting the object as an instance of 'Custom Class' |
java.lang.Object |
caseCustomConnection(CustomConnection object)
Returns the result of interpretting the object as an instance of 'Custom Connection' |
java.lang.Object |
caseCustomDecoration(CustomDecoration object)
Returns the result of interpretting the object as an instance of 'Custom Decoration' |
java.lang.Object |
caseCustomFigure(CustomFigure object)
Returns the result of interpretting the object as an instance of 'Custom Figure' |
java.lang.Object |
caseCustomLayout(CustomLayout object)
Returns the result of interpretting the object as an instance of 'Custom Layout' |
java.lang.Object |
caseCustomLayoutData(CustomLayoutData object)
Returns the result of interpretting the object as an instance of 'Custom Layout Data' |
java.lang.Object |
caseDecorationFigure(DecorationFigure object)
Returns the result of interpretting the object as an instance of 'Decoration Figure' |
java.lang.Object |
caseDiagramElement(DiagramElement object)
Returns the result of interpretting the object as an instance of 'Diagram Element' |
java.lang.Object |
caseDiagramLabel(DiagramLabel object)
Returns the result of interpretting the object as an instance of 'Diagram Label' |
java.lang.Object |
caseDimension(Dimension object)
Returns the result of interpretting the object as an instance of 'Dimension' |
java.lang.Object |
caseEllipse(Ellipse object)
Returns the result of interpretting the object as an instance of 'Ellipse' |
java.lang.Object |
caseFigure(Figure object)
Returns the result of interpretting the object as an instance of 'Figure' |
java.lang.Object |
caseFigureAccessor(FigureAccessor object)
Returns the result of interpretting the object as an instance of 'Figure Accessor' |
java.lang.Object |
caseFigureGallery(FigureGallery object)
Returns the result of interpretting the object as an instance of 'Figure Gallery' |
java.lang.Object |
caseFigureHandle(FigureHandle object)
Returns the result of interpretting the object as an instance of 'Figure Handle' |
java.lang.Object |
caseFigureMarker(FigureMarker object)
Returns the result of interpretting the object as an instance of 'Figure Marker' |
java.lang.Object |
caseFigureRef(FigureRef object)
Returns the result of interpretting the object as an instance of 'Figure Ref' |
java.lang.Object |
caseFlowLayout(FlowLayout object)
Returns the result of interpretting the object as an instance of 'Flow Layout' |
java.lang.Object |
caseFont(Font object)
Returns the result of interpretting the object as an instance of 'Font' |
java.lang.Object |
caseGeneralFacet(GeneralFacet object)
Returns the result of interpretting the object as an instance of 'General Facet' |
java.lang.Object |
caseGradientFacet(GradientFacet object)
Returns the result of interpretting the object as an instance of 'Gradient Facet' |
java.lang.Object |
caseGridLayout(GridLayout object)
Returns the result of interpretting the object as an instance of 'Grid Layout' |
java.lang.Object |
caseGridLayoutData(GridLayoutData object)
Returns the result of interpretting the object as an instance of 'Grid Layout Data' |
java.lang.Object |
caseIdentity(Identity object)
Returns the result of interpretting the object as an instance of 'Identity' |
java.lang.Object |
caseInsets(Insets object)
Returns the result of interpretting the object as an instance of 'Insets' |
java.lang.Object |
caseLabel(Label object)
Returns the result of interpretting the object as an instance of 'Label' |
java.lang.Object |
caseLabeledContainer(LabeledContainer object)
Returns the result of interpretting the object as an instance of 'Labeled Container' |
java.lang.Object |
caseLabelOffsetFacet(LabelOffsetFacet object)
Returns the result of interpretting the object as an instance of 'Label Offset Facet' |
java.lang.Object |
caseLayout(Layout object)
Returns the result of interpretting the object as an instance of 'Layout' |
java.lang.Object |
caseLayoutable(Layoutable object)
Returns the result of interpretting the object as an instance of 'Layoutable' |
java.lang.Object |
caseLayoutData(LayoutData object)
Returns the result of interpretting the object as an instance of 'Layout Data' |
java.lang.Object |
caseLineBorder(LineBorder object)
Returns the result of interpretting the object as an instance of 'Line Border' |
java.lang.Object |
caseMarginBorder(MarginBorder object)
Returns the result of interpretting the object as an instance of 'Margin Border' |
java.lang.Object |
caseNode(Node object)
Returns the result of interpretting the object as an instance of 'Node' |
java.lang.Object |
casePoint(Point object)
Returns the result of interpretting the object as an instance of 'Point' |
java.lang.Object |
casePolygon(Polygon object)
Returns the result of interpretting the object as an instance of 'Polygon' |
java.lang.Object |
casePolygonDecoration(PolygonDecoration object)
Returns the result of interpretting the object as an instance of 'Polygon Decoration' |
java.lang.Object |
casePolyline(Polyline object)
Returns the result of interpretting the object as an instance of 'Polyline' |
java.lang.Object |
casePolylineConnection(PolylineConnection object)
Returns the result of interpretting the object as an instance of 'Polyline Connection' |
java.lang.Object |
casePolylineDecoration(PolylineDecoration object)
Returns the result of interpretting the object as an instance of 'Polyline Decoration' |
java.lang.Object |
caseRectangle(Rectangle object)
Returns the result of interpretting the object as an instance of 'Rectangle' |
java.lang.Object |
caseRGBColor(RGBColor object)
Returns the result of interpretting the object as an instance of 'RGB Color' |
java.lang.Object |
caseRoundedRectangle(RoundedRectangle object)
Returns the result of interpretting the object as an instance of 'Rounded Rectangle' |
java.lang.Object |
caseShape(Shape object)
Returns the result of interpretting the object as an instance of 'Shape' |
java.lang.Object |
caseStackLayout(StackLayout object)
Returns the result of interpretting the object as an instance of 'Stack Layout' |
java.lang.Object |
caseVisualFacet(VisualFacet object)
Returns the result of interpretting the object as an instance of 'Visual Facet' |
java.lang.Object |
caseXYLayout(XYLayout object)
Returns the result of interpretting the object as an instance of 'XY Layout' |
java.lang.Object |
caseXYLayoutData(XYLayoutData object)
Returns the result of interpretting the object as an instance of 'XY Layout Data' |
java.lang.Object |
defaultCase(EObject object)
Returns the result of interpretting the object as an instance of 'EObject' |
protected java.lang.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 |
java.lang.Object |
doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
protected java.lang.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 |
protected static GMFGraphPackage modelPackage
| Constructor Detail |
public GMFGraphSwitch()
| Method Detail |
public java.lang.Object doSwitch(EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.
protected java.lang.Object doSwitch(EClass theEClass,
EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.
protected java.lang.Object doSwitch(int classifierID,
EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public java.lang.Object caseCanvas(Canvas object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigureGallery(FigureGallery object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseIdentity(Identity object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseDiagramElement(DiagramElement object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseNode(Node object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseConnection(Connection object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCompartment(Compartment object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseDiagramLabel(DiagramLabel object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseVisualFacet(VisualFacet object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGeneralFacet(GeneralFacet object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseAlignmentFacet(AlignmentFacet object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGradientFacet(GradientFacet object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLabelOffsetFacet(LabelOffsetFacet object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigureMarker(FigureMarker object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigureHandle(FigureHandle object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigure(Figure object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigureRef(FigureRef object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseConnectionFigure(ConnectionFigure object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseDecorationFigure(DecorationFigure object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseShape(Shape object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLabel(Label object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLabeledContainer(LabeledContainer object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseRectangle(Rectangle object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseRoundedRectangle(RoundedRectangle object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseEllipse(Ellipse object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePolyline(Polyline object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePolygon(Polygon object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePolylineConnection(PolylineConnection object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePolylineDecoration(PolylineDecoration object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePolygonDecoration(PolygonDecoration object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomClass(CustomClass object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomFigure(CustomFigure object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomDecoration(CustomDecoration object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomConnection(CustomConnection object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseColor(Color object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseRGBColor(RGBColor object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseConstantColor(ConstantColor object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFont(Font object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseBasicFont(BasicFont object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object casePoint(Point object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseDimension(Dimension object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseInsets(Insets object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseBorder(Border object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLineBorder(LineBorder object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseMarginBorder(MarginBorder object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCompoundBorder(CompoundBorder object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomBorder(CustomBorder object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLayoutData(LayoutData object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomLayoutData(CustomLayoutData object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGridLayoutData(GridLayoutData object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseBorderLayoutData(BorderLayoutData object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLayoutable(Layoutable object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseLayout(Layout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomLayout(CustomLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseGridLayout(GridLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseBorderLayout(BorderLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseCustomAttribute(CustomAttribute object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFigureAccessor(FigureAccessor object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseFlowLayout(FlowLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseXYLayout(XYLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseXYLayoutData(XYLayoutData object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object caseStackLayout(StackLayout object)
object - the target of the switch.
doSwitch(EObject)public java.lang.Object defaultCase(EObject object)
object - the target of the switch.
GMFGraphSwitch.doSwitch(org.eclipse.emf.ecore.EObject)
|
Generation Framework | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.