001/**
002 */
003package org.nasdanika.models.gitlab.util;
004
005import java.util.Map;
006import org.eclipse.emf.common.notify.Adapter;
007import org.eclipse.emf.common.notify.Notifier;
008
009import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
010
011import org.eclipse.emf.ecore.EObject;
012
013import org.nasdanika.models.gitlab.*;
014
015/**
016 * <!-- begin-user-doc -->
017 * The <b>Adapter Factory</b> for the model.
018 * It provides an adapter <code>createXXX</code> method for each class of the model.
019 * <!-- end-user-doc -->
020 * @see org.nasdanika.models.gitlab.GitLabPackage
021 * @generated
022 */
023public class GitLabAdapterFactory extends AdapterFactoryImpl {
024        /**
025         * The cached model package.
026         * <!-- begin-user-doc -->
027         * <!-- end-user-doc -->
028         * @generated
029         */
030        protected static GitLabPackage modelPackage;
031
032        /**
033         * Creates an instance of the adapter factory.
034         * <!-- begin-user-doc -->
035         * <!-- end-user-doc -->
036         * @generated
037         */
038        public GitLabAdapterFactory() {
039                if (modelPackage == null) {
040                        modelPackage = GitLabPackage.eINSTANCE;
041                }
042        }
043
044        /**
045         * Returns whether this factory is applicable for the type of the object.
046         * <!-- begin-user-doc -->
047         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
048         * <!-- end-user-doc -->
049         * @return whether this factory is applicable for the type of the object.
050         * @generated
051         */
052        @Override
053        public boolean isFactoryForType(Object object) {
054                if (object == modelPackage) {
055                        return true;
056                }
057                if (object instanceof EObject) {
058                        return ((EObject)object).eClass().getEPackage() == modelPackage;
059                }
060                return false;
061        }
062
063        /**
064         * The switch that delegates to the <code>createXXX</code> methods.
065         * <!-- begin-user-doc -->
066         * <!-- end-user-doc -->
067         * @generated
068         */
069        protected GitLabSwitch<Adapter> modelSwitch =
070                new GitLabSwitch<Adapter>() {
071                        @Override
072                        public Adapter caseLoadable(Loadable object) {
073                                return createLoadableAdapter();
074                        }
075                        @Override
076                        public Adapter caseLoad(Load object) {
077                                return createLoadAdapter();
078                        }
079                        @Override
080                        public Adapter caseGitLab(GitLab object) {
081                                return createGitLabAdapter();
082                        }
083                        @Override
084                        public Adapter caseGroup(Group object) {
085                                return createGroupAdapter();
086                        }
087                        @Override
088                        public Adapter caseAbstractUser(AbstractUser object) {
089                                return createAbstractUserAdapter();
090                        }
091                        @Override
092                        public Adapter caseMember(Member object) {
093                                return createMemberAdapter();
094                        }
095                        @Override
096                        public Adapter caseUser(User object) {
097                                return createUserAdapter();
098                        }
099                        @Override
100                        public Adapter caseProject(Project object) {
101                                return createProjectAdapter();
102                        }
103                        @Override
104                        public Adapter caseProjectSharedGroup(ProjectSharedGroup object) {
105                                return createProjectSharedGroupAdapter();
106                        }
107                        @Override
108                        public Adapter caseProjectStatistics(ProjectStatistics object) {
109                                return createProjectStatisticsAdapter();
110                        }
111                        @Override
112                        public Adapter caseProjectLicense(ProjectLicense object) {
113                                return createProjectLicenseAdapter();
114                        }
115                        @Override
116                        public Adapter caseContributor(Contributor object) {
117                                return createContributorAdapter();
118                        }
119                        @Override
120                        public Adapter caseProjectAccess(ProjectAccess object) {
121                                return createProjectAccessAdapter();
122                        }
123                        @Override
124                        public Adapter caseCustomAttribute(Map.Entry<String, String> object) {
125                                return createCustomAttributeAdapter();
126                        }
127                        @Override
128                        public Adapter caseOwner(Owner object) {
129                                return createOwnerAdapter();
130                        }
131                        @Override
132                        public Adapter caseTreeItem(TreeItem object) {
133                                return createTreeItemAdapter();
134                        }
135                        @Override
136                        public Adapter caseTree(Tree object) {
137                                return createTreeAdapter();
138                        }
139                        @Override
140                        public Adapter caseBranch(Branch object) {
141                                return createBranchAdapter();
142                        }
143                        @Override
144                        public Adapter caseBlob(Blob object) {
145                                return createBlobAdapter();
146                        }
147                        @Override
148                        public Adapter caseRepositoryFile(RepositoryFile object) {
149                                return createRepositoryFileAdapter();
150                        }
151                        @Override
152                        public Adapter caseTextRepositoryFile(TextRepositoryFile object) {
153                                return createTextRepositoryFileAdapter();
154                        }
155                        @Override
156                        public Adapter caseBinaryRepositoryFile(BinaryRepositoryFile object) {
157                                return createBinaryRepositoryFileAdapter();
158                        }
159                        @Override
160                        public Adapter caseEObjectRepositoryFile(EObjectRepositoryFile object) {
161                                return createEObjectRepositoryFileAdapter();
162                        }
163                        @Override
164                        public Adapter caseListRepositoryFile(ListRepositoryFile object) {
165                                return createListRepositoryFileAdapter();
166                        }
167                        @Override
168                        public Adapter caseNcore_TreeItem(org.nasdanika.ncore.TreeItem object) {
169                                return createNcore_TreeItemAdapter();
170                        }
171                        @Override
172                        public Adapter caseNcore_Tree(org.nasdanika.ncore.Tree object) {
173                                return createNcore_TreeAdapter();
174                        }
175                        @Override
176                        public Adapter defaultCase(EObject object) {
177                                return createEObjectAdapter();
178                        }
179                };
180
181        /**
182         * Creates an adapter for the <code>target</code>.
183         * <!-- begin-user-doc -->
184         * <!-- end-user-doc -->
185         * @param target the object to adapt.
186         * @return the adapter for the <code>target</code>.
187         * @generated
188         */
189        @Override
190        public Adapter createAdapter(Notifier target) {
191                return modelSwitch.doSwitch((EObject)target);
192        }
193
194
195        /**
196         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Loadable <em>Loadable</em>}'.
197         * <!-- begin-user-doc -->
198         * This default implementation returns null so that we can easily ignore cases;
199         * it's useful to ignore a case when inheritance will catch all the cases anyway.
200         * <!-- end-user-doc -->
201         * @return the new adapter.
202         * @see org.nasdanika.models.gitlab.Loadable
203         * @generated
204         */
205        public Adapter createLoadableAdapter() {
206                return null;
207        }
208
209        /**
210         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Load <em>Load</em>}'.
211         * <!-- begin-user-doc -->
212         * This default implementation returns null so that we can easily ignore cases;
213         * it's useful to ignore a case when inheritance will catch all the cases anyway.
214         * <!-- end-user-doc -->
215         * @return the new adapter.
216         * @see org.nasdanika.models.gitlab.Load
217         * @generated
218         */
219        public Adapter createLoadAdapter() {
220                return null;
221        }
222
223        /**
224         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.GitLab <em>Git Lab</em>}'.
225         * <!-- begin-user-doc -->
226         * This default implementation returns null so that we can easily ignore cases;
227         * it's useful to ignore a case when inheritance will catch all the cases anyway.
228         * <!-- end-user-doc -->
229         * @return the new adapter.
230         * @see org.nasdanika.models.gitlab.GitLab
231         * @generated
232         */
233        public Adapter createGitLabAdapter() {
234                return null;
235        }
236
237        /**
238         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Group <em>Group</em>}'.
239         * <!-- begin-user-doc -->
240         * This default implementation returns null so that we can easily ignore cases;
241         * it's useful to ignore a case when inheritance will catch all the cases anyway.
242         * <!-- end-user-doc -->
243         * @return the new adapter.
244         * @see org.nasdanika.models.gitlab.Group
245         * @generated
246         */
247        public Adapter createGroupAdapter() {
248                return null;
249        }
250
251        /**
252         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Member <em>Member</em>}'.
253         * <!-- begin-user-doc -->
254         * This default implementation returns null so that we can easily ignore cases;
255         * it's useful to ignore a case when inheritance will catch all the cases anyway.
256         * <!-- end-user-doc -->
257         * @return the new adapter.
258         * @see org.nasdanika.models.gitlab.Member
259         * @generated
260         */
261        public Adapter createMemberAdapter() {
262                return null;
263        }
264
265        /**
266         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.AbstractUser <em>Abstract User</em>}'.
267         * <!-- begin-user-doc -->
268         * This default implementation returns null so that we can easily ignore cases;
269         * it's useful to ignore a case when inheritance will catch all the cases anyway.
270         * <!-- end-user-doc -->
271         * @return the new adapter.
272         * @see org.nasdanika.models.gitlab.AbstractUser
273         * @generated
274         */
275        public Adapter createAbstractUserAdapter() {
276                return null;
277        }
278
279        /**
280         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.User <em>User</em>}'.
281         * <!-- begin-user-doc -->
282         * This default implementation returns null so that we can easily ignore cases;
283         * it's useful to ignore a case when inheritance will catch all the cases anyway.
284         * <!-- end-user-doc -->
285         * @return the new adapter.
286         * @see org.nasdanika.models.gitlab.User
287         * @generated
288         */
289        public Adapter createUserAdapter() {
290                return null;
291        }
292
293        /**
294         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Project <em>Project</em>}'.
295         * <!-- begin-user-doc -->
296         * This default implementation returns null so that we can easily ignore cases;
297         * it's useful to ignore a case when inheritance will catch all the cases anyway.
298         * <!-- end-user-doc -->
299         * @return the new adapter.
300         * @see org.nasdanika.models.gitlab.Project
301         * @generated
302         */
303        public Adapter createProjectAdapter() {
304                return null;
305        }
306
307        /**
308         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.ProjectSharedGroup <em>Project Shared Group</em>}'.
309         * <!-- begin-user-doc -->
310         * This default implementation returns null so that we can easily ignore cases;
311         * it's useful to ignore a case when inheritance will catch all the cases anyway.
312         * <!-- end-user-doc -->
313         * @return the new adapter.
314         * @see org.nasdanika.models.gitlab.ProjectSharedGroup
315         * @generated
316         */
317        public Adapter createProjectSharedGroupAdapter() {
318                return null;
319        }
320
321        /**
322         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.ProjectStatistics <em>Project Statistics</em>}'.
323         * <!-- begin-user-doc -->
324         * This default implementation returns null so that we can easily ignore cases;
325         * it's useful to ignore a case when inheritance will catch all the cases anyway.
326         * <!-- end-user-doc -->
327         * @return the new adapter.
328         * @see org.nasdanika.models.gitlab.ProjectStatistics
329         * @generated
330         */
331        public Adapter createProjectStatisticsAdapter() {
332                return null;
333        }
334
335        /**
336         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.ProjectLicense <em>Project License</em>}'.
337         * <!-- begin-user-doc -->
338         * This default implementation returns null so that we can easily ignore cases;
339         * it's useful to ignore a case when inheritance will catch all the cases anyway.
340         * <!-- end-user-doc -->
341         * @return the new adapter.
342         * @see org.nasdanika.models.gitlab.ProjectLicense
343         * @generated
344         */
345        public Adapter createProjectLicenseAdapter() {
346                return null;
347        }
348
349        /**
350         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Contributor <em>Contributor</em>}'.
351         * <!-- begin-user-doc -->
352         * This default implementation returns null so that we can easily ignore cases;
353         * it's useful to ignore a case when inheritance will catch all the cases anyway.
354         * <!-- end-user-doc -->
355         * @return the new adapter.
356         * @see org.nasdanika.models.gitlab.Contributor
357         * @generated
358         */
359        public Adapter createContributorAdapter() {
360                return null;
361        }
362
363        /**
364         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.ProjectAccess <em>Project Access</em>}'.
365         * <!-- begin-user-doc -->
366         * This default implementation returns null so that we can easily ignore cases;
367         * it's useful to ignore a case when inheritance will catch all the cases anyway.
368         * <!-- end-user-doc -->
369         * @return the new adapter.
370         * @see org.nasdanika.models.gitlab.ProjectAccess
371         * @generated
372         */
373        public Adapter createProjectAccessAdapter() {
374                return null;
375        }
376
377        /**
378         * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>Custom Attribute</em>}'.
379         * <!-- begin-user-doc -->
380         * This default implementation returns null so that we can easily ignore cases;
381         * it's useful to ignore a case when inheritance will catch all the cases anyway.
382         * <!-- end-user-doc -->
383         * @return the new adapter.
384         * @see java.util.Map.Entry
385         * @generated
386         */
387        public Adapter createCustomAttributeAdapter() {
388                return null;
389        }
390
391        /**
392         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Branch <em>Branch</em>}'.
393         * <!-- begin-user-doc -->
394         * This default implementation returns null so that we can easily ignore cases;
395         * it's useful to ignore a case when inheritance will catch all the cases anyway.
396         * <!-- end-user-doc -->
397         * @return the new adapter.
398         * @see org.nasdanika.models.gitlab.Branch
399         * @generated
400         */
401        public Adapter createBranchAdapter() {
402                return null;
403        }
404
405        /**
406         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Owner <em>Owner</em>}'.
407         * <!-- begin-user-doc -->
408         * This default implementation returns null so that we can easily ignore cases;
409         * it's useful to ignore a case when inheritance will catch all the cases anyway.
410         * <!-- end-user-doc -->
411         * @return the new adapter.
412         * @see org.nasdanika.models.gitlab.Owner
413         * @generated
414         */
415        public Adapter createOwnerAdapter() {
416                return null;
417        }
418
419        /**
420         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.TreeItem <em>Tree Item</em>}'.
421         * <!-- begin-user-doc -->
422         * This default implementation returns null so that we can easily ignore cases;
423         * it's useful to ignore a case when inheritance will catch all the cases anyway.
424         * <!-- end-user-doc -->
425         * @return the new adapter.
426         * @see org.nasdanika.models.gitlab.TreeItem
427         * @generated
428         */
429        public Adapter createTreeItemAdapter() {
430                return null;
431        }
432
433        /**
434         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Tree <em>Tree</em>}'.
435         * <!-- begin-user-doc -->
436         * This default implementation returns null so that we can easily ignore cases;
437         * it's useful to ignore a case when inheritance will catch all the cases anyway.
438         * <!-- end-user-doc -->
439         * @return the new adapter.
440         * @see org.nasdanika.models.gitlab.Tree
441         * @generated
442         */
443        public Adapter createTreeAdapter() {
444                return null;
445        }
446
447        /**
448         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.Blob <em>Blob</em>}'.
449         * <!-- begin-user-doc -->
450         * This default implementation returns null so that we can easily ignore cases;
451         * it's useful to ignore a case when inheritance will catch all the cases anyway.
452         * <!-- end-user-doc -->
453         * @return the new adapter.
454         * @see org.nasdanika.models.gitlab.Blob
455         * @generated
456         */
457        public Adapter createBlobAdapter() {
458                return null;
459        }
460
461        /**
462         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.RepositoryFile <em>Repository File</em>}'.
463         * <!-- begin-user-doc -->
464         * This default implementation returns null so that we can easily ignore cases;
465         * it's useful to ignore a case when inheritance will catch all the cases anyway.
466         * <!-- end-user-doc -->
467         * @return the new adapter.
468         * @see org.nasdanika.models.gitlab.RepositoryFile
469         * @generated
470         */
471        public Adapter createRepositoryFileAdapter() {
472                return null;
473        }
474
475        /**
476         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.TextRepositoryFile <em>Text Repository File</em>}'.
477         * <!-- begin-user-doc -->
478         * This default implementation returns null so that we can easily ignore cases;
479         * it's useful to ignore a case when inheritance will catch all the cases anyway.
480         * <!-- end-user-doc -->
481         * @return the new adapter.
482         * @see org.nasdanika.models.gitlab.TextRepositoryFile
483         * @generated
484         */
485        public Adapter createTextRepositoryFileAdapter() {
486                return null;
487        }
488
489        /**
490         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.BinaryRepositoryFile <em>Binary Repository File</em>}'.
491         * <!-- begin-user-doc -->
492         * This default implementation returns null so that we can easily ignore cases;
493         * it's useful to ignore a case when inheritance will catch all the cases anyway.
494         * <!-- end-user-doc -->
495         * @return the new adapter.
496         * @see org.nasdanika.models.gitlab.BinaryRepositoryFile
497         * @generated
498         */
499        public Adapter createBinaryRepositoryFileAdapter() {
500                return null;
501        }
502
503        /**
504         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.EObjectRepositoryFile <em>EObject Repository File</em>}'.
505         * <!-- begin-user-doc -->
506         * This default implementation returns null so that we can easily ignore cases;
507         * it's useful to ignore a case when inheritance will catch all the cases anyway.
508         * <!-- end-user-doc -->
509         * @return the new adapter.
510         * @see org.nasdanika.models.gitlab.EObjectRepositoryFile
511         * @generated
512         */
513        public Adapter createEObjectRepositoryFileAdapter() {
514                return null;
515        }
516
517        /**
518         * Creates a new adapter for an object of class '{@link org.nasdanika.models.gitlab.ListRepositoryFile <em>List Repository File</em>}'.
519         * <!-- begin-user-doc -->
520         * This default implementation returns null so that we can easily ignore cases;
521         * it's useful to ignore a case when inheritance will catch all the cases anyway.
522         * <!-- end-user-doc -->
523         * @return the new adapter.
524         * @see org.nasdanika.models.gitlab.ListRepositoryFile
525         * @generated
526         */
527        public Adapter createListRepositoryFileAdapter() {
528                return null;
529        }
530
531        /**
532         * Creates a new adapter for an object of class '{@link org.nasdanika.ncore.TreeItem <em>Tree Item</em>}'.
533         * <!-- begin-user-doc -->
534         * This default implementation returns null so that we can easily ignore cases;
535         * it's useful to ignore a case when inheritance will catch all the cases anyway.
536         * <!-- end-user-doc -->
537         * @return the new adapter.
538         * @see org.nasdanika.ncore.TreeItem
539         * @generated
540         */
541        public Adapter createNcore_TreeItemAdapter() {
542                return null;
543        }
544
545        /**
546         * Creates a new adapter for an object of class '{@link org.nasdanika.ncore.Tree <em>Tree</em>}'.
547         * <!-- begin-user-doc -->
548         * This default implementation returns null so that we can easily ignore cases;
549         * it's useful to ignore a case when inheritance will catch all the cases anyway.
550         * <!-- end-user-doc -->
551         * @return the new adapter.
552         * @see org.nasdanika.ncore.Tree
553         * @generated
554         */
555        public Adapter createNcore_TreeAdapter() {
556                return null;
557        }
558
559        /**
560         * Creates a new adapter for the default case.
561         * <!-- begin-user-doc -->
562         * This default implementation returns null.
563         * <!-- end-user-doc -->
564         * @return the new adapter.
565         * @generated
566         */
567        public Adapter createEObjectAdapter() {
568                return null;
569        }
570
571} //GitLabAdapterFactory