java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.nasdanika.models.gitlab.util.GitLabSwitch<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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAbstractUser(AbstractUser object) Returns the result of interpreting the object as an instance of 'Abstract User'.Returns the result of interpreting the object as an instance of 'Binary Repository File'.Returns the result of interpreting the object as an instance of 'Blob'.caseBranch(Branch object) Returns the result of interpreting the object as an instance of 'Branch'.caseContributor(Contributor object) Returns the result of interpreting the object as an instance of 'Contributor'.caseCustomAttribute(Map.Entry<String, String> object) Returns the result of interpreting the object as an instance of 'Custom Attribute'.Returns the result of interpreting the object as an instance of 'EObject Repository File'.caseGitLab(GitLab object) Returns the result of interpreting the object as an instance of 'Git Lab'.Returns the result of interpreting the object as an instance of 'Group'.Returns the result of interpreting the object as an instance of 'List Repository File'.Returns the result of interpreting the object as an instance of 'Load'.caseLoadable(Loadable object) Returns the result of interpreting the object as an instance of 'Loadable'.caseMember(Member object) Returns the result of interpreting the object as an instance of 'Member'.caseNcore_Tree(org.nasdanika.ncore.Tree object) Returns the result of interpreting the object as an instance of 'Tree'.caseNcore_TreeItem(org.nasdanika.ncore.TreeItem object) Returns the result of interpreting the object as an instance of 'Tree Item'.Returns the result of interpreting the object as an instance of 'Owner'.caseProject(Project object) Returns the result of interpreting the object as an instance of 'Project'.caseProjectAccess(ProjectAccess object) Returns the result of interpreting the object as an instance of 'Project Access'.caseProjectLicense(ProjectLicense object) Returns the result of interpreting the object as an instance of 'Project License'.Returns the result of interpreting the object as an instance of 'Project Shared Group'.Returns the result of interpreting the object as an instance of 'Project Statistics'.caseRepositoryFile(RepositoryFile object) Returns the result of interpreting the object as an instance of 'Repository File'.Returns the result of interpreting the object as an instance of 'Text Repository File'.Returns the result of interpreting the object as an instance of 'Tree'.caseTreeItem(TreeItem object) Returns the result of interpreting the object as an instance of 'Tree Item'.Returns the result of interpreting the object as an instance of 'User'.defaultCase(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected TCallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
GitLabSwitch
public GitLabSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchForin classSwitch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result. -
caseLoadable
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
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
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
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
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
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
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
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:
-
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
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
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
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
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
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
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
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
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
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:
defaultCasein classSwitch<T>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-