|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmf.gmfgraph.util.GMFGraphSwitch<T>
public class GMFGraphSwitch<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.
GMFGraphPackage
Field Summary | |
---|---|
protected static GMFGraphPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
GMFGraphSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAbstractFigure(AbstractFigure object)
Returns the result of interpreting the object as an instance of 'Abstract Figure'. |
T |
caseAbstractNode(AbstractNode object)
Returns the result of interpreting the object as an instance of 'Abstract Node'. |
T |
caseAlignmentFacet(AlignmentFacet object)
Returns the result of interpreting the object as an instance of 'Alignment Facet'. |
T |
caseBasicFont(BasicFont object)
Returns the result of interpreting the object as an instance of 'Basic Font'. |
T |
caseBorder(Border object)
Returns the result of interpreting the object as an instance of 'Border'. |
T |
caseBorderLayout(BorderLayout object)
Returns the result of interpreting the object as an instance of 'Border Layout'. |
T |
caseBorderLayoutData(BorderLayoutData object)
Returns the result of interpreting the object as an instance of 'Border Layout Data'. |
T |
caseBorderRef(BorderRef object)
Returns the result of interpreting the object as an instance of 'Border Ref'. |
T |
caseCanvas(Canvas object)
Returns the result of interpreting the object as an instance of 'Canvas'. |
T |
caseCenterLayout(CenterLayout object)
Returns the result of interpreting the object as an instance of 'Center Layout'. |
T |
caseChildAccess(ChildAccess object)
Returns the result of interpreting the object as an instance of 'Child Access'. |
T |
caseColor(Color object)
Returns the result of interpreting the object as an instance of 'Color'. |
T |
caseColorPin(ColorPin object)
Returns the result of interpreting the object as an instance of 'Color Pin'. |
T |
caseCompartment(Compartment object)
Returns the result of interpreting the object as an instance of 'Compartment'. |
T |
caseCompoundBorder(CompoundBorder object)
Returns the result of interpreting the object as an instance of 'Compound Border'. |
T |
caseConnection(Connection object)
Returns the result of interpreting the object as an instance of 'Connection'. |
T |
caseConnectionFigure(ConnectionFigure object)
Returns the result of interpreting the object as an instance of 'Connection Figure'. |
T |
caseConstantColor(ConstantColor object)
Returns the result of interpreting the object as an instance of 'Constant Color'. |
T |
caseCustomAttribute(CustomAttribute object)
Returns the result of interpreting the object as an instance of 'Custom Attribute'. |
T |
caseCustomAttributeOwner(CustomAttributeOwner object)
Returns the result of interpreting the object as an instance of 'Custom Attribute Owner'. |
T |
caseCustomBorder(CustomBorder object)
Returns the result of interpreting the object as an instance of 'Custom Border'. |
T |
caseCustomClass(CustomClass object)
Returns the result of interpreting the object as an instance of 'Custom Class'. |
T |
caseCustomConnection(CustomConnection object)
Returns the result of interpreting the object as an instance of 'Custom Connection'. |
T |
caseCustomDecoration(CustomDecoration object)
Returns the result of interpreting the object as an instance of 'Custom Decoration'. |
T |
caseCustomFigure(CustomFigure object)
Returns the result of interpreting the object as an instance of 'Custom Figure'. |
T |
caseCustomLayout(CustomLayout object)
Returns the result of interpreting the object as an instance of 'Custom Layout'. |
T |
caseCustomLayoutData(CustomLayoutData object)
Returns the result of interpreting the object as an instance of 'Custom Layout Data'. |
T |
caseCustomPin(CustomPin object)
Returns the result of interpreting the object as an instance of 'Custom Pin'. |
T |
caseDecorationFigure(DecorationFigure object)
Returns the result of interpreting the object as an instance of 'Decoration Figure'. |
T |
caseDefaultSizeFacet(DefaultSizeFacet object)
Returns the result of interpreting the object as an instance of 'Default Size Facet'. |
T |
caseDiagramElement(DiagramElement object)
Returns the result of interpreting the object as an instance of 'Diagram Element'. |
T |
caseDiagramLabel(DiagramLabel object)
Returns the result of interpreting the object as an instance of 'Diagram Label'. |
T |
caseDimension(Dimension object)
Returns the result of interpreting the object as an instance of 'Dimension'. |
T |
caseEllipse(Ellipse object)
Returns the result of interpreting the object as an instance of 'Ellipse'. |
T |
caseFigure(Figure object)
Returns the result of interpreting the object as an instance of 'Figure'. |
T |
caseFigureAccessor(FigureAccessor object)
Returns the result of interpreting the object as an instance of 'Figure Accessor'. |
T |
caseFigureDescriptor(FigureDescriptor object)
Returns the result of interpreting the object as an instance of 'Figure Descriptor'. |
T |
caseFigureGallery(FigureGallery object)
Returns the result of interpreting the object as an instance of 'Figure Gallery'. |
T |
caseFigureRef(FigureRef object)
Returns the result of interpreting the object as an instance of 'Figure Ref'. |
T |
caseFlowLayout(FlowLayout object)
Returns the result of interpreting the object as an instance of 'Flow Layout'. |
T |
caseFont(Font object)
Returns the result of interpreting the object as an instance of 'Font'. |
T |
caseGeneralFacet(GeneralFacet object)
Returns the result of interpreting the object as an instance of 'General Facet'. |
T |
caseGradientFacet(GradientFacet object)
Returns the result of interpreting the object as an instance of 'Gradient Facet'. |
T |
caseGridLayout(GridLayout object)
Returns the result of interpreting the object as an instance of 'Grid Layout'. |
T |
caseGridLayoutData(GridLayoutData object)
Returns the result of interpreting the object as an instance of 'Grid Layout Data'. |
T |
caseIdentity(Identity object)
Returns the result of interpreting the object as an instance of 'Identity'. |
T |
caseInsets(Insets object)
Returns the result of interpreting the object as an instance of 'Insets'. |
T |
caseInvisibleRectangle(InvisibleRectangle object)
Returns the result of interpreting the object as an instance of 'Invisible Rectangle'. |
T |
caseLabel(Label object)
Returns the result of interpreting the object as an instance of 'Label'. |
T |
caseLabeledContainer(LabeledContainer object)
Returns the result of interpreting the object as an instance of 'Labeled Container'. |
T |
caseLabelOffsetFacet(LabelOffsetFacet object)
Returns the result of interpreting the object as an instance of 'Label Offset Facet'. |
T |
caseLayout(Layout object)
Returns the result of interpreting the object as an instance of 'Layout'. |
T |
caseLayoutable(Layoutable object)
Returns the result of interpreting the object as an instance of 'Layoutable'. |
T |
caseLayoutData(LayoutData object)
Returns the result of interpreting the object as an instance of 'Layout Data'. |
T |
caseLayoutRef(LayoutRef object)
Returns the result of interpreting the object as an instance of 'Layout Ref'. |
T |
caseLineBorder(LineBorder object)
Returns the result of interpreting the object as an instance of 'Line Border'. |
T |
caseMarginBorder(MarginBorder object)
Returns the result of interpreting the object as an instance of 'Margin Border'. |
T |
caseNode(Node object)
Returns the result of interpreting the object as an instance of 'Node'. |
T |
casePin(Pin object)
Returns the result of interpreting the object as an instance of 'Pin'. |
T |
casePinOwner(PinOwner object)
Returns the result of interpreting the object as an instance of 'Pin Owner'. |
T |
casePoint(Point object)
Returns the result of interpreting the object as an instance of 'Point'. |
T |
casePolygon(Polygon object)
Returns the result of interpreting the object as an instance of 'Polygon'. |
T |
casePolygonDecoration(PolygonDecoration object)
Returns the result of interpreting the object as an instance of 'Polygon Decoration'. |
T |
casePolyline(Polyline object)
Returns the result of interpreting the object as an instance of 'Polyline'. |
T |
casePolylineConnection(PolylineConnection object)
Returns the result of interpreting the object as an instance of 'Polyline Connection'. |
T |
casePolylineDecoration(PolylineDecoration object)
Returns the result of interpreting the object as an instance of 'Polyline Decoration'. |
T |
caseRealFigure(RealFigure object)
Returns the result of interpreting the object as an instance of 'Real Figure'. |
T |
caseRectangle(Rectangle object)
Returns the result of interpreting the object as an instance of 'Rectangle'. |
T |
caseRectangle2D(Rectangle2D object)
Returns the result of interpreting the object as an instance of 'Rectangle2 D'. |
T |
caseRGBColor(RGBColor object)
Returns the result of interpreting the object as an instance of 'RGB Color'. |
T |
caseRoundedRectangle(RoundedRectangle object)
Returns the result of interpreting the object as an instance of 'Rounded Rectangle'. |
T |
caseScalablePolygon(ScalablePolygon object)
Returns the result of interpreting the object as an instance of 'Scalable Polygon'. |
T |
caseShape(Shape object)
Returns the result of interpreting the object as an instance of 'Shape'. |
T |
caseStackLayout(StackLayout object)
Returns the result of interpreting the object as an instance of 'Stack Layout'. |
T |
caseSVGFigure(SVGFigure object)
Returns the result of interpreting the object as an instance of 'SVG Figure'. |
T |
caseSVGProperty(SVGProperty object)
Returns the result of interpreting the object as an instance of 'SVG Property'. |
T |
caseVerticalLabel(VerticalLabel object)
Returns the result of interpreting the object as an instance of 'Vertical Label'. |
T |
caseVisiblePin(VisiblePin object)
Returns the result of interpreting the object as an instance of 'Visible Pin'. |
T |
caseVisualFacet(VisualFacet object)
Returns the result of interpreting the object as an instance of 'Visual Facet'. |
T |
caseXYLayout(XYLayout object)
Returns the result of interpreting the object as an instance of 'XY Layout'. |
T |
caseXYLayoutData(XYLayoutData object)
Returns the result of interpreting the object as an instance of 'XY Layout Data'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
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. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package. |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
---|
doSwitch, doSwitch |
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 |
---|
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseCanvas(Canvas object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFigureGallery(FigureGallery object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIdentity(Identity object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDiagramElement(DiagramElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractNode(AbstractNode object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNode(Node object)
object
- the target of the switch.
doSwitch(EObject)
public T caseChildAccess(ChildAccess object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRealFigure(RealFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConnection(Connection object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCompartment(Compartment object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDiagramLabel(DiagramLabel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVisualFacet(VisualFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGeneralFacet(GeneralFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAlignmentFacet(AlignmentFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGradientFacet(GradientFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabelOffsetFacet(LabelOffsetFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDefaultSizeFacet(DefaultSizeFacet object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFigure(Figure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFigureDescriptor(FigureDescriptor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractFigure(AbstractFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFigureRef(FigureRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConnectionFigure(ConnectionFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDecorationFigure(DecorationFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseShape(Shape object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabel(Label object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabeledContainer(LabeledContainer object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVerticalLabel(VerticalLabel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRectangle(Rectangle object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInvisibleRectangle(InvisibleRectangle object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRoundedRectangle(RoundedRectangle object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEllipse(Ellipse object)
object
- the target of the switch.
doSwitch(EObject)
public T casePolyline(Polyline object)
object
- the target of the switch.
doSwitch(EObject)
public T casePolygon(Polygon object)
object
- the target of the switch.
doSwitch(EObject)
public T caseScalablePolygon(ScalablePolygon object)
object
- the target of the switch.
doSwitch(EObject)
public T casePolylineConnection(PolylineConnection object)
object
- the target of the switch.
doSwitch(EObject)
public T casePolylineDecoration(PolylineDecoration object)
object
- the target of the switch.
doSwitch(EObject)
public T casePolygonDecoration(PolygonDecoration object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomAttributeOwner(CustomAttributeOwner object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomClass(CustomClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomFigure(CustomFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomDecoration(CustomDecoration object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomConnection(CustomConnection object)
object
- the target of the switch.
doSwitch(EObject)
public T caseColor(Color object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRGBColor(RGBColor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConstantColor(ConstantColor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFont(Font object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBasicFont(BasicFont object)
object
- the target of the switch.
doSwitch(EObject)
public T casePoint(Point object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDimension(Dimension object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInsets(Insets object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBorder(Border object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBorderRef(BorderRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLineBorder(LineBorder object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMarginBorder(MarginBorder object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCompoundBorder(CompoundBorder object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomBorder(CustomBorder object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayoutData(LayoutData object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomLayoutData(CustomLayoutData object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGridLayoutData(GridLayoutData object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBorderLayoutData(BorderLayoutData object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayoutable(Layoutable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayout(Layout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLayoutRef(LayoutRef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomLayout(CustomLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseGridLayout(GridLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBorderLayout(BorderLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomAttribute(CustomAttribute object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFigureAccessor(FigureAccessor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFlowLayout(FlowLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseXYLayout(XYLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseXYLayoutData(XYLayoutData object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStackLayout(StackLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCenterLayout(CenterLayout object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSVGFigure(SVGFigure object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSVGProperty(SVGProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRectangle2D(Rectangle2D object)
object
- the target of the switch.
doSwitch(EObject)
public T casePin(Pin object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCustomPin(CustomPin object)
object
- the target of the switch.
doSwitch(EObject)
public T caseColorPin(ColorPin object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVisiblePin(VisiblePin object)
object
- the target of the switch.
doSwitch(EObject)
public T casePinOwner(PinOwner object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |