Class ModelSwitch<T>


  • public class ModelSwitch<T>
    extends org.eclipse.emf.ecore.util.Switch<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.
    See Also:
    ModelPackage
    • Field Detail

      • modelPackage

        protected static ModelPackage modelPackage
        The cached model package
    • Constructor Detail

      • ModelSwitch

        public ModelSwitch()
        Creates an instance of the switch.
    • Method Detail

      • isSwitchFor

        protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
        Checks whether this is a switch for the given package.
        Specified by:
        isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
        Parameters:
        ePackage - the package in question.
        Returns:
        whether this is a switch for the given package.
      • doSwitch

        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.
        Overrides:
        doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
      • caseGraphicalScheme

        public T caseGraphicalScheme​(GraphicalScheme object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme'. 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 'Graphical Scheme'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeItem

        public T caseGraphicalSchemeItem​(GraphicalSchemeItem object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Item'. 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 'Graphical Scheme Item'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeFigure

        public T caseGraphicalSchemeFigure​(GraphicalSchemeFigure object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Figure'. 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 'Graphical Scheme Figure'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeDecoration

        public T caseGraphicalSchemeDecoration​(GraphicalSchemeDecoration object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Decoration'. 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 'Graphical Scheme Decoration'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeSwitch

        public T caseGraphicalSchemeSwitch​(GraphicalSchemeSwitch object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Switch'. 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 'Graphical Scheme Switch'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeSubProcess

        public T caseGraphicalSchemeSubProcess​(GraphicalSchemeSubProcess object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Sub Process'. 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 'Graphical Scheme Sub Process'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeActivity

        public T caseGraphicalSchemeActivity​(GraphicalSchemeActivity object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Activity'. 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 'Graphical Scheme Activity'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeCondition

        public T caseGraphicalSchemeCondition​(GraphicalSchemeCondition object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Condition'. 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 'Graphical Scheme Condition'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeConnection

        public T caseGraphicalSchemeConnection​(GraphicalSchemeConnection object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Connection'. 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 'Graphical Scheme Connection'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemeLine

        public T caseGraphicalSchemeLine​(GraphicalSchemeLine object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Line'. 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 'Graphical Scheme Line'.
        See Also:
        doSwitch(EObject)
      • caseSchemeItemAddressingAttribute

        public T caseSchemeItemAddressingAttribute​(SchemeItemAddressingAttribute object)
        Returns the result of interpreting the object as an instance of 'Scheme Item Addressing Attribute'. 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 'Scheme Item Addressing Attribute'.
        See Also:
        doSwitch(EObject)
      • casePrintPropItem

        public T casePrintPropItem​(PrintPropItem object)
        Returns the result of interpreting the object as an instance of 'Print Prop Item'. 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 'Print Prop Item'.
        See Also:
        doSwitch(EObject)
      • caseBounds

        public T caseBounds​(Bounds object)
        Returns the result of interpreting 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 interpreting the object as an instance of 'Bounds'.
        See Also:
        doSwitch(EObject)
      • casePoint

        public T casePoint​(Point object)
        Returns the result of interpreting the object as an instance of '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 interpreting the object as an instance of 'Point'.
        See Also:
        doSwitch(EObject)
      • caseSegment

        public T caseSegment​(Segment object)
        Returns the result of interpreting the object as an instance of 'Segment'. 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 'Segment'.
        See Also:
        doSwitch(EObject)
      • caseCase

        public T caseCase​(Case object)
        Returns the result of interpreting the object as an instance of 'Case'. 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 'Case'.
        See Also:
        doSwitch(EObject)
      • caseEventHandler

        public T caseEventHandler​(EventHandler object)
        Returns the result of interpreting the object as an instance of 'Event Handler'. 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 'Event Handler'.
        See Also:
        doSwitch(EObject)
      • caseGraphicalSchemePicture

        public T caseGraphicalSchemePicture​(GraphicalSchemePicture object)
        Returns the result of interpreting the object as an instance of 'Graphical Scheme Picture'. 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 'Graphical Scheme Picture'.
        See Also:
        doSwitch(EObject)
      • caseAbstractFlowchart

        public T caseAbstractFlowchart​(AbstractFlowchart object)
        Returns the result of interpreting the object as an instance of 'Abstract Flowchart'. 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 'Abstract Flowchart'.
        See Also:
        doSwitch(EObject)
      • caseAbstractLine

        public T caseAbstractLine​(AbstractLine object)
        Returns the result of interpreting the object as an instance of 'Abstract Line'. 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 'Abstract Line'.
        See Also:
        doSwitch(EObject)
      • casePicture

        public T casePicture​(Picture object)
        Returns the result of interpreting the object as an instance of 'Picture'. 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 'Picture'.
        See Also:
        doSwitch(EObject)
      • casePictureDef

        public T casePictureDef​(PictureDef object)
        Returns the result of interpreting the object as an instance of 'Picture Def'. 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 'Picture Def'.
        See Also:
        doSwitch(EObject)
      • defaultCase

        public T defaultCase​(org.eclipse.emf.ecore.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.
        Overrides:
        defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'EObject'.
        See Also:
        Switch.doSwitch(org.eclipse.emf.ecore.EObject)