Class BuildSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmt.modisco.omg.kdm.build.util.BuildSwitch<T>

public class BuildSwitch<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:
BuildPackage
  • Field Details

    • modelPackage

      protected static BuildPackage modelPackage
      The cached model package
  • Constructor Details

    • BuildSwitch

      public BuildSwitch()
      Creates an instance of the switch.
  • Method Details

    • 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.
    • caseAbstractBuildElement

      public T caseAbstractBuildElement​(AbstractBuildElement object)
      Returns the result of interpreting the object as an instance of 'Abstract Build Element'. 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 Build Element'.
      See Also:
      doSwitch(EObject)
    • caseBuildResource

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

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

      public T caseSymbolicLink​(SymbolicLink object)
      Returns the result of interpreting the object as an instance of 'Symbolic Link'. 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 'Symbolic Link'.
      See Also:
      doSwitch(EObject)
    • caseAbstractBuildRelationship

      public T caseAbstractBuildRelationship​(AbstractBuildRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Build Relationship'. 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 Build Relationship'.
      See Also:
      doSwitch(EObject)
    • caseLinksTo

      public T caseLinksTo​(LinksTo object)
      Returns the result of interpreting the object as an instance of 'Links To'. 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 'Links To'.
      See Also:
      doSwitch(EObject)
    • caseConsumes

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

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

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

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

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

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

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

      public T caseSuppliedBy​(SuppliedBy object)
      Returns the result of interpreting the object as an instance of 'Supplied By'. 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 'Supplied By'.
      See Also:
      doSwitch(EObject)
    • caseLibrary

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

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

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

      public T caseSupportedBy​(SupportedBy object)
      Returns the result of interpreting the object as an instance of 'Supported By'. 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 'Supported By'.
      See Also:
      doSwitch(EObject)
    • caseBuildProduct

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

      public T caseDescribedBy​(DescribedBy object)
      Returns the result of interpreting the object as an instance of 'Described By'. 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 'Described By'.
      See Also:
      doSwitch(EObject)
    • caseElement

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

      public T caseModelElement​(ModelElement object)
      Returns the result of interpreting the object as an instance of 'Model Element'. 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 'Model Element'.
      See Also:
      doSwitch(EObject)
    • caseKDMEntity

      public T caseKDMEntity​(KDMEntity object)
      Returns the result of interpreting the object as an instance of 'KDM Entity'. 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 'KDM Entity'.
      See Also:
      doSwitch(EObject)
    • caseKDMRelationship

      public T caseKDMRelationship​(KDMRelationship object)
      Returns the result of interpreting the object as an instance of 'KDM Relationship'. 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 'KDM Relationship'.
      See Also:
      doSwitch(EObject)
    • caseKDMFramework

      public T caseKDMFramework​(KDMFramework object)
      Returns the result of interpreting the object as an instance of 'KDM Framework'. 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 'KDM Framework'.
      See Also:
      doSwitch(EObject)
    • caseKDMModel

      public T caseKDMModel​(KDMModel object)
      Returns the result of interpreting the object as an instance of 'KDM Model'. 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 'KDM Model'.
      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)