Class GitLabSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.nasdanika.models.gitlab.util.GitLabSwitch<T>

public class GitLabSwitch<T> extends 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:
  • Field Details

  • Constructor Details

    • GitLabSwitch

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

    • isSwitchFor

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

      protected T doSwitch(int classifierID, 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 Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseLoadable

      public T caseLoadable(Loadable object)
      Returns the result of interpreting the object as an instance of 'Loadable'. 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 'Loadable'.
      See Also:
    • caseLoad

      public T caseLoad(Load object)
      Returns the result of interpreting the object as an instance of 'Load'. 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 'Load'.
      See Also:
    • caseGitLab

      public T caseGitLab(GitLab object)
      Returns the result of interpreting the object as an instance of 'Git Lab'. 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 'Git Lab'.
      See Also:
    • caseGroup

      public T caseGroup(Group object)
      Returns the result of interpreting the object as an instance of 'Group'. 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 'Group'.
      See Also:
    • caseMember

      public T caseMember(Member object)
      Returns the result of interpreting the object as an instance of 'Member'. 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 'Member'.
      See Also:
    • caseAbstractUser

      public T caseAbstractUser(AbstractUser object)
      Returns the result of interpreting the object as an instance of 'Abstract User'. 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 User'.
      See Also:
    • caseUser

      public T caseUser(User object)
      Returns the result of interpreting the object as an instance of 'User'. 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 'User'.
      See Also:
    • caseProject

      public T caseProject(Project object)
      Returns the result of interpreting the object as an instance of 'Project'. 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 'Project'.
      See Also:
    • caseProjectSharedGroup

      Returns the result of interpreting the object as an instance of 'Project Shared Group'. 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 'Project Shared Group'.
      See Also:
    • caseProjectStatistics

      Returns the result of interpreting the object as an instance of 'Project Statistics'. 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 'Project Statistics'.
      See Also:
    • caseProjectLicense

      Returns the result of interpreting the object as an instance of 'Project License'. 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 'Project License'.
      See Also:
    • caseContributor

      public T caseContributor(Contributor object)
      Returns the result of interpreting the object as an instance of 'Contributor'. 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 'Contributor'.
      See Also:
    • caseProjectAccess

      Returns the result of interpreting the object as an instance of 'Project Access'. 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 'Project Access'.
      See Also:
    • caseCustomAttribute

      Returns the result of interpreting the object as an instance of 'Custom 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 'Custom Attribute'.
      See Also:
    • caseBranch

      public T caseBranch(Branch object)
      Returns the result of interpreting the object as an instance of 'Branch'. 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 'Branch'.
      See Also:
    • caseOwner

      public T caseOwner(Owner object)
      Returns the result of interpreting the object as an instance of 'Owner'. 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 'Owner'.
      See Also:
    • caseTreeItem

      public T caseTreeItem(TreeItem object)
      Returns the result of interpreting the object as an instance of 'Tree 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 'Tree Item'.
      See Also:
    • caseTree

      public T caseTree(Tree object)
      Returns the result of interpreting the object as an instance of 'Tree'. 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 'Tree'.
      See Also:
    • caseBlob

      public T caseBlob(Blob object)
      Returns the result of interpreting the object as an instance of 'Blob'. 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 'Blob'.
      See Also:
    • caseRepositoryFile

      Returns the result of interpreting the object as an instance of 'Repository File'. 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 'Repository File'.
      See Also:
    • caseTextRepositoryFile

      Returns the result of interpreting the object as an instance of 'Text Repository File'. 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 'Text Repository File'.
      See Also:
    • caseBinaryRepositoryFile

      Returns the result of interpreting the object as an instance of 'Binary Repository File'. 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 'Binary Repository File'.
      See Also:
    • caseEObjectRepositoryFile

      Returns the result of interpreting the object as an instance of 'EObject Repository File'. 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 'EObject Repository File'.
      See Also:
    • caseListRepositoryFile

      Returns the result of interpreting the object as an instance of 'List Repository File'. 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 'List Repository File'.
      See Also:
    • caseNcore_TreeItem

      public T caseNcore_TreeItem(org.nasdanika.ncore.TreeItem object)
      Returns the result of interpreting the object as an instance of 'Tree 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 'Tree Item'.
      See Also:
    • caseNcore_Tree

      public T caseNcore_Tree(org.nasdanika.ncore.Tree object)
      Returns the result of interpreting the object as an instance of 'Tree'. 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 'Tree'.
      See Also:
    • defaultCase

      public T 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.
      Overrides:
      defaultCase in class Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also: