001 /**
002 * <copyright>
003 * </copyright>
004 *
005 * $Id$
006 */
007 package com.hammurapi.review.util;
008
009 import org.eclipse.emf.common.notify.Adapter;
010 import org.eclipse.emf.common.notify.Notifier;
011 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
012 import org.eclipse.emf.ecore.EObject;
013
014 import com.hammurapi.config.Factory;
015 import com.hammurapi.config.Named;
016 import com.hammurapi.config.NamedObjectDefinition;
017 import com.hammurapi.config.ObjectDefinition;
018 import com.hammurapi.config.PropertySource;
019 import com.hammurapi.party.CommonObject;
020 import com.hammurapi.party.Organization;
021 import com.hammurapi.party.Party;
022 import com.hammurapi.party.Tagged;
023 import com.hammurapi.review.*;
024 import com.hammurapi.review.Annotation;
025 import com.hammurapi.review.Baseline;
026 import com.hammurapi.review.Component;
027 import com.hammurapi.review.Inspector;
028 import com.hammurapi.review.InspectorCategory;
029 import com.hammurapi.review.InspectorSet;
030 import com.hammurapi.review.LanguageElement;
031 import com.hammurapi.review.Measurement;
032 import com.hammurapi.review.Module;
033 import com.hammurapi.review.Observation;
034 import com.hammurapi.review.Report;
035 import com.hammurapi.review.Repository;
036 import com.hammurapi.review.ReviewPackage;
037 import com.hammurapi.review.Revision;
038 import com.hammurapi.review.Violation;
039 import com.hammurapi.review.Waiver;
040 import com.hammurapi.review.Warning;
041
042 /**
043 * <!-- begin-user-doc -->
044 * The <b>Adapter Factory</b> for the model.
045 * It provides an adapter <code>createXXX</code> method for each class of the model.
046 * <!-- end-user-doc -->
047 * @see com.hammurapi.review.ReviewPackage
048 * @generated
049 */
050 public class ReviewAdapterFactory extends AdapterFactoryImpl {
051 /**
052 * The cached model package.
053 * <!-- begin-user-doc -->
054 * <!-- end-user-doc -->
055 * @generated
056 */
057 protected static ReviewPackage modelPackage;
058
059 /**
060 * Creates an instance of the adapter factory.
061 * <!-- begin-user-doc -->
062 * <!-- end-user-doc -->
063 * @generated
064 */
065 public ReviewAdapterFactory() {
066 if (modelPackage == null) {
067 modelPackage = ReviewPackage.eINSTANCE;
068 }
069 }
070
071 /**
072 * Returns whether this factory is applicable for the type of the object.
073 * <!-- begin-user-doc -->
074 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
075 * <!-- end-user-doc -->
076 * @return whether this factory is applicable for the type of the object.
077 * @generated
078 */
079 @Override
080 public boolean isFactoryForType(Object object) {
081 if (object == modelPackage) {
082 return true;
083 }
084 if (object instanceof EObject) {
085 return ((EObject)object).eClass().getEPackage() == modelPackage;
086 }
087 return false;
088 }
089
090 /**
091 * The switch that delegates to the <code>createXXX</code> methods.
092 * <!-- begin-user-doc -->
093 * <!-- end-user-doc -->
094 * @generated
095 */
096 protected ReviewSwitch<Adapter> modelSwitch =
097 new ReviewSwitch<Adapter>() {
098 @Override
099 public Adapter caseObservation(Observation object) {
100 return createObservationAdapter();
101 }
102 @Override
103 public Adapter caseViolation(Violation object) {
104 return createViolationAdapter();
105 }
106 @Override
107 public Adapter caseWarning(Warning object) {
108 return createWarningAdapter();
109 }
110 @Override
111 public Adapter caseMeasurement(Measurement object) {
112 return createMeasurementAdapter();
113 }
114 @Override
115 public Adapter caseAnnotation(Annotation object) {
116 return createAnnotationAdapter();
117 }
118 @Override
119 public Adapter caseRepository(Repository object) {
120 return createRepositoryAdapter();
121 }
122 @Override
123 public Adapter caseRevision(Revision object) {
124 return createRevisionAdapter();
125 }
126 @Override
127 public Adapter caseBaseline(Baseline object) {
128 return createBaselineAdapter();
129 }
130 @Override
131 public Adapter caseReport(Report object) {
132 return createReportAdapter();
133 }
134 @Override
135 public Adapter caseInspectorSet(InspectorSet object) {
136 return createInspectorSetAdapter();
137 }
138 @Override
139 public Adapter caseInspector(Inspector object) {
140 return createInspectorAdapter();
141 }
142 @Override
143 public Adapter caseInspectorCategory(InspectorCategory object) {
144 return createInspectorCategoryAdapter();
145 }
146 @Override
147 public Adapter caseComponent(Component object) {
148 return createComponentAdapter();
149 }
150 @Override
151 public Adapter caseModule(Module object) {
152 return createModuleAdapter();
153 }
154 @Override
155 public Adapter caseLanguageElement(LanguageElement object) {
156 return createLanguageElementAdapter();
157 }
158 @Override
159 public Adapter caseWaiver(Waiver object) {
160 return createWaiverAdapter();
161 }
162 @Override
163 public Adapter caseGovernanceDomain(GovernanceDomain object) {
164 return createGovernanceDomainAdapter();
165 }
166 @Override
167 public Adapter caseArtifactType(ArtifactType object) {
168 return createArtifactTypeAdapter();
169 }
170 @Override
171 public Adapter caseTool(Tool object) {
172 return createToolAdapter();
173 }
174 @Override
175 public Adapter caseToolVersion(ToolVersion object) {
176 return createToolVersionAdapter();
177 }
178 @Override
179 public Adapter caseGovernanaceObject(GovernanaceObject object) {
180 return createGovernanaceObjectAdapter();
181 }
182 @Override
183 public Adapter caseGovernor(Governor object) {
184 return createGovernorAdapter();
185 }
186 @Override
187 public Adapter caseInspectorRelationship(InspectorRelationship object) {
188 return createInspectorRelationshipAdapter();
189 }
190 @Override
191 public Adapter caseCommonObject(CommonObject object) {
192 return createCommonObjectAdapter();
193 }
194 @Override
195 public Adapter caseFactory(Factory object) {
196 return createFactoryAdapter();
197 }
198 @Override
199 public Adapter caseNamed(Named object) {
200 return createNamedAdapter();
201 }
202 @Override
203 public Adapter casePropertySource(PropertySource object) {
204 return createPropertySourceAdapter();
205 }
206 @Override
207 public Adapter caseObjectDefinition(ObjectDefinition object) {
208 return createObjectDefinitionAdapter();
209 }
210 @Override
211 public Adapter caseNamedObjectDefinition(NamedObjectDefinition object) {
212 return createNamedObjectDefinitionAdapter();
213 }
214 @Override
215 public Adapter caseTagged(Tagged object) {
216 return createTaggedAdapter();
217 }
218 @Override
219 public Adapter caseParty(Party object) {
220 return createPartyAdapter();
221 }
222 @Override
223 public Adapter caseOrganization(Organization object) {
224 return createOrganizationAdapter();
225 }
226 @Override
227 public Adapter defaultCase(EObject object) {
228 return createEObjectAdapter();
229 }
230 };
231
232 /**
233 * Creates an adapter for the <code>target</code>.
234 * <!-- begin-user-doc -->
235 * <!-- end-user-doc -->
236 * @param target the object to adapt.
237 * @return the adapter for the <code>target</code>.
238 * @generated
239 */
240 @Override
241 public Adapter createAdapter(Notifier target) {
242 return modelSwitch.doSwitch((EObject)target);
243 }
244
245
246 /**
247 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Observation <em>Observation</em>}'.
248 * <!-- begin-user-doc -->
249 * This default implementation returns null so that we can easily ignore cases;
250 * it's useful to ignore a case when inheritance will catch all the cases anyway.
251 * <!-- end-user-doc -->
252 * @return the new adapter.
253 * @see com.hammurapi.review.Observation
254 * @generated
255 */
256 public Adapter createObservationAdapter() {
257 return null;
258 }
259
260 /**
261 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Violation <em>Violation</em>}'.
262 * <!-- begin-user-doc -->
263 * This default implementation returns null so that we can easily ignore cases;
264 * it's useful to ignore a case when inheritance will catch all the cases anyway.
265 * <!-- end-user-doc -->
266 * @return the new adapter.
267 * @see com.hammurapi.review.Violation
268 * @generated
269 */
270 public Adapter createViolationAdapter() {
271 return null;
272 }
273
274 /**
275 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Warning <em>Warning</em>}'.
276 * <!-- begin-user-doc -->
277 * This default implementation returns null so that we can easily ignore cases;
278 * it's useful to ignore a case when inheritance will catch all the cases anyway.
279 * <!-- end-user-doc -->
280 * @return the new adapter.
281 * @see com.hammurapi.review.Warning
282 * @generated
283 */
284 public Adapter createWarningAdapter() {
285 return null;
286 }
287
288 /**
289 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Measurement <em>Measurement</em>}'.
290 * <!-- begin-user-doc -->
291 * This default implementation returns null so that we can easily ignore cases;
292 * it's useful to ignore a case when inheritance will catch all the cases anyway.
293 * <!-- end-user-doc -->
294 * @return the new adapter.
295 * @see com.hammurapi.review.Measurement
296 * @generated
297 */
298 public Adapter createMeasurementAdapter() {
299 return null;
300 }
301
302 /**
303 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Annotation <em>Annotation</em>}'.
304 * <!-- begin-user-doc -->
305 * This default implementation returns null so that we can easily ignore cases;
306 * it's useful to ignore a case when inheritance will catch all the cases anyway.
307 * <!-- end-user-doc -->
308 * @return the new adapter.
309 * @see com.hammurapi.review.Annotation
310 * @generated
311 */
312 public Adapter createAnnotationAdapter() {
313 return null;
314 }
315
316 /**
317 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Repository <em>Repository</em>}'.
318 * <!-- begin-user-doc -->
319 * This default implementation returns null so that we can easily ignore cases;
320 * it's useful to ignore a case when inheritance will catch all the cases anyway.
321 * <!-- end-user-doc -->
322 * @return the new adapter.
323 * @see com.hammurapi.review.Repository
324 * @generated
325 */
326 public Adapter createRepositoryAdapter() {
327 return null;
328 }
329
330 /**
331 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Revision <em>Revision</em>}'.
332 * <!-- begin-user-doc -->
333 * This default implementation returns null so that we can easily ignore cases;
334 * it's useful to ignore a case when inheritance will catch all the cases anyway.
335 * <!-- end-user-doc -->
336 * @return the new adapter.
337 * @see com.hammurapi.review.Revision
338 * @generated
339 */
340 public Adapter createRevisionAdapter() {
341 return null;
342 }
343
344 /**
345 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Baseline <em>Baseline</em>}'.
346 * <!-- begin-user-doc -->
347 * This default implementation returns null so that we can easily ignore cases;
348 * it's useful to ignore a case when inheritance will catch all the cases anyway.
349 * <!-- end-user-doc -->
350 * @return the new adapter.
351 * @see com.hammurapi.review.Baseline
352 * @generated
353 */
354 public Adapter createBaselineAdapter() {
355 return null;
356 }
357
358 /**
359 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Report <em>Report</em>}'.
360 * <!-- begin-user-doc -->
361 * This default implementation returns null so that we can easily ignore cases;
362 * it's useful to ignore a case when inheritance will catch all the cases anyway.
363 * <!-- end-user-doc -->
364 * @return the new adapter.
365 * @see com.hammurapi.review.Report
366 * @generated
367 */
368 public Adapter createReportAdapter() {
369 return null;
370 }
371
372 /**
373 * Creates a new adapter for an object of class '{@link com.hammurapi.review.InspectorSet <em>Inspector Set</em>}'.
374 * <!-- begin-user-doc -->
375 * This default implementation returns null so that we can easily ignore cases;
376 * it's useful to ignore a case when inheritance will catch all the cases anyway.
377 * <!-- end-user-doc -->
378 * @return the new adapter.
379 * @see com.hammurapi.review.InspectorSet
380 * @generated
381 */
382 public Adapter createInspectorSetAdapter() {
383 return null;
384 }
385
386 /**
387 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Inspector <em>Inspector</em>}'.
388 * <!-- begin-user-doc -->
389 * This default implementation returns null so that we can easily ignore cases;
390 * it's useful to ignore a case when inheritance will catch all the cases anyway.
391 * <!-- end-user-doc -->
392 * @return the new adapter.
393 * @see com.hammurapi.review.Inspector
394 * @generated
395 */
396 public Adapter createInspectorAdapter() {
397 return null;
398 }
399
400 /**
401 * Creates a new adapter for an object of class '{@link com.hammurapi.review.InspectorCategory <em>Inspector Category</em>}'.
402 * <!-- begin-user-doc -->
403 * This default implementation returns null so that we can easily ignore cases;
404 * it's useful to ignore a case when inheritance will catch all the cases anyway.
405 * <!-- end-user-doc -->
406 * @return the new adapter.
407 * @see com.hammurapi.review.InspectorCategory
408 * @generated
409 */
410 public Adapter createInspectorCategoryAdapter() {
411 return null;
412 }
413
414 /**
415 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Component <em>Component</em>}'.
416 * <!-- begin-user-doc -->
417 * This default implementation returns null so that we can easily ignore cases;
418 * it's useful to ignore a case when inheritance will catch all the cases anyway.
419 * <!-- end-user-doc -->
420 * @return the new adapter.
421 * @see com.hammurapi.review.Component
422 * @generated
423 */
424 public Adapter createComponentAdapter() {
425 return null;
426 }
427
428 /**
429 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Module <em>Module</em>}'.
430 * <!-- begin-user-doc -->
431 * This default implementation returns null so that we can easily ignore cases;
432 * it's useful to ignore a case when inheritance will catch all the cases anyway.
433 * <!-- end-user-doc -->
434 * @return the new adapter.
435 * @see com.hammurapi.review.Module
436 * @generated
437 */
438 public Adapter createModuleAdapter() {
439 return null;
440 }
441
442 /**
443 * Creates a new adapter for an object of class '{@link com.hammurapi.review.LanguageElement <em>Language Element</em>}'.
444 * <!-- begin-user-doc -->
445 * This default implementation returns null so that we can easily ignore cases;
446 * it's useful to ignore a case when inheritance will catch all the cases anyway.
447 * <!-- end-user-doc -->
448 * @return the new adapter.
449 * @see com.hammurapi.review.LanguageElement
450 * @generated
451 */
452 public Adapter createLanguageElementAdapter() {
453 return null;
454 }
455
456 /**
457 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Waiver <em>Waiver</em>}'.
458 * <!-- begin-user-doc -->
459 * This default implementation returns null so that we can easily ignore cases;
460 * it's useful to ignore a case when inheritance will catch all the cases anyway.
461 * <!-- end-user-doc -->
462 * @return the new adapter.
463 * @see com.hammurapi.review.Waiver
464 * @generated
465 */
466 public Adapter createWaiverAdapter() {
467 return null;
468 }
469
470 /**
471 * Creates a new adapter for an object of class '{@link com.hammurapi.review.GovernanceDomain <em>Governance Domain</em>}'.
472 * <!-- begin-user-doc -->
473 * This default implementation returns null so that we can easily ignore cases;
474 * it's useful to ignore a case when inheritance will catch all the cases anyway.
475 * <!-- end-user-doc -->
476 * @return the new adapter.
477 * @see com.hammurapi.review.GovernanceDomain
478 * @generated
479 */
480 public Adapter createGovernanceDomainAdapter() {
481 return null;
482 }
483
484 /**
485 * Creates a new adapter for an object of class '{@link com.hammurapi.review.ArtifactType <em>Artifact Type</em>}'.
486 * <!-- begin-user-doc -->
487 * This default implementation returns null so that we can easily ignore cases;
488 * it's useful to ignore a case when inheritance will catch all the cases anyway.
489 * <!-- end-user-doc -->
490 * @return the new adapter.
491 * @see com.hammurapi.review.ArtifactType
492 * @generated
493 */
494 public Adapter createArtifactTypeAdapter() {
495 return null;
496 }
497
498 /**
499 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Tool <em>Tool</em>}'.
500 * <!-- begin-user-doc -->
501 * This default implementation returns null so that we can easily ignore cases;
502 * it's useful to ignore a case when inheritance will catch all the cases anyway.
503 * <!-- end-user-doc -->
504 * @return the new adapter.
505 * @see com.hammurapi.review.Tool
506 * @generated
507 */
508 public Adapter createToolAdapter() {
509 return null;
510 }
511
512 /**
513 * Creates a new adapter for an object of class '{@link com.hammurapi.review.ToolVersion <em>Tool Version</em>}'.
514 * <!-- begin-user-doc -->
515 * This default implementation returns null so that we can easily ignore cases;
516 * it's useful to ignore a case when inheritance will catch all the cases anyway.
517 * <!-- end-user-doc -->
518 * @return the new adapter.
519 * @see com.hammurapi.review.ToolVersion
520 * @generated
521 */
522 public Adapter createToolVersionAdapter() {
523 return null;
524 }
525
526 /**
527 * Creates a new adapter for an object of class '{@link com.hammurapi.review.GovernanaceObject <em>Governanace Object</em>}'.
528 * <!-- begin-user-doc -->
529 * This default implementation returns null so that we can easily ignore cases;
530 * it's useful to ignore a case when inheritance will catch all the cases anyway.
531 * <!-- end-user-doc -->
532 * @return the new adapter.
533 * @see com.hammurapi.review.GovernanaceObject
534 * @generated
535 */
536 public Adapter createGovernanaceObjectAdapter() {
537 return null;
538 }
539
540 /**
541 * Creates a new adapter for an object of class '{@link com.hammurapi.review.Governor <em>Governor</em>}'.
542 * <!-- begin-user-doc -->
543 * This default implementation returns null so that we can easily ignore cases;
544 * it's useful to ignore a case when inheritance will catch all the cases anyway.
545 * <!-- end-user-doc -->
546 * @return the new adapter.
547 * @see com.hammurapi.review.Governor
548 * @generated
549 */
550 public Adapter createGovernorAdapter() {
551 return null;
552 }
553
554 /**
555 * Creates a new adapter for an object of class '{@link com.hammurapi.review.InspectorRelationship <em>Inspector Relationship</em>}'.
556 * <!-- begin-user-doc -->
557 * This default implementation returns null so that we can easily ignore cases;
558 * it's useful to ignore a case when inheritance will catch all the cases anyway.
559 * <!-- end-user-doc -->
560 * @return the new adapter.
561 * @see com.hammurapi.review.InspectorRelationship
562 * @generated
563 */
564 public Adapter createInspectorRelationshipAdapter() {
565 return null;
566 }
567
568 /**
569 * Creates a new adapter for an object of class '{@link com.hammurapi.party.CommonObject <em>Common Object</em>}'.
570 * <!-- begin-user-doc -->
571 * This default implementation returns null so that we can easily ignore cases;
572 * it's useful to ignore a case when inheritance will catch all the cases anyway.
573 * <!-- end-user-doc -->
574 * @return the new adapter.
575 * @see com.hammurapi.party.CommonObject
576 * @generated
577 */
578 public Adapter createCommonObjectAdapter() {
579 return null;
580 }
581
582 /**
583 * Creates a new adapter for an object of class '{@link com.hammurapi.config.Factory <em>Factory</em>}'.
584 * <!-- begin-user-doc -->
585 * This default implementation returns null so that we can easily ignore cases;
586 * it's useful to ignore a case when inheritance will catch all the cases anyway.
587 * <!-- end-user-doc -->
588 * @return the new adapter.
589 * @see com.hammurapi.config.Factory
590 * @generated
591 */
592 public Adapter createFactoryAdapter() {
593 return null;
594 }
595
596 /**
597 * Creates a new adapter for an object of class '{@link com.hammurapi.config.Named <em>Named</em>}'.
598 * <!-- begin-user-doc -->
599 * This default implementation returns null so that we can easily ignore cases;
600 * it's useful to ignore a case when inheritance will catch all the cases anyway.
601 * <!-- end-user-doc -->
602 * @return the new adapter.
603 * @see com.hammurapi.config.Named
604 * @generated
605 */
606 public Adapter createNamedAdapter() {
607 return null;
608 }
609
610 /**
611 * Creates a new adapter for an object of class '{@link com.hammurapi.config.PropertySource <em>Property Source</em>}'.
612 * <!-- begin-user-doc -->
613 * This default implementation returns null so that we can easily ignore cases;
614 * it's useful to ignore a case when inheritance will catch all the cases anyway.
615 * <!-- end-user-doc -->
616 * @return the new adapter.
617 * @see com.hammurapi.config.PropertySource
618 * @generated
619 */
620 public Adapter createPropertySourceAdapter() {
621 return null;
622 }
623
624 /**
625 * Creates a new adapter for an object of class '{@link com.hammurapi.config.ObjectDefinition <em>Object Definition</em>}'.
626 * <!-- begin-user-doc -->
627 * This default implementation returns null so that we can easily ignore cases;
628 * it's useful to ignore a case when inheritance will catch all the cases anyway.
629 * <!-- end-user-doc -->
630 * @return the new adapter.
631 * @see com.hammurapi.config.ObjectDefinition
632 * @generated
633 */
634 public Adapter createObjectDefinitionAdapter() {
635 return null;
636 }
637
638 /**
639 * Creates a new adapter for an object of class '{@link com.hammurapi.config.NamedObjectDefinition <em>Named Object Definition</em>}'.
640 * <!-- begin-user-doc -->
641 * This default implementation returns null so that we can easily ignore cases;
642 * it's useful to ignore a case when inheritance will catch all the cases anyway.
643 * <!-- end-user-doc -->
644 * @return the new adapter.
645 * @see com.hammurapi.config.NamedObjectDefinition
646 * @generated
647 */
648 public Adapter createNamedObjectDefinitionAdapter() {
649 return null;
650 }
651
652 /**
653 * Creates a new adapter for an object of class '{@link com.hammurapi.party.Tagged <em>Tagged</em>}'.
654 * <!-- begin-user-doc -->
655 * This default implementation returns null so that we can easily ignore cases;
656 * it's useful to ignore a case when inheritance will catch all the cases anyway.
657 * <!-- end-user-doc -->
658 * @return the new adapter.
659 * @see com.hammurapi.party.Tagged
660 * @generated
661 */
662 public Adapter createTaggedAdapter() {
663 return null;
664 }
665
666 /**
667 * Creates a new adapter for an object of class '{@link com.hammurapi.party.Party <em>Party</em>}'.
668 * <!-- begin-user-doc -->
669 * This default implementation returns null so that we can easily ignore cases;
670 * it's useful to ignore a case when inheritance will catch all the cases anyway.
671 * <!-- end-user-doc -->
672 * @return the new adapter.
673 * @see com.hammurapi.party.Party
674 * @generated
675 */
676 public Adapter createPartyAdapter() {
677 return null;
678 }
679
680 /**
681 * Creates a new adapter for an object of class '{@link com.hammurapi.party.Organization <em>Organization</em>}'.
682 * <!-- begin-user-doc -->
683 * This default implementation returns null so that we can easily ignore cases;
684 * it's useful to ignore a case when inheritance will catch all the cases anyway.
685 * <!-- end-user-doc -->
686 * @return the new adapter.
687 * @see com.hammurapi.party.Organization
688 * @generated
689 */
690 public Adapter createOrganizationAdapter() {
691 return null;
692 }
693
694 /**
695 * Creates a new adapter for the default case.
696 * <!-- begin-user-doc -->
697 * This default implementation returns null.
698 * <!-- end-user-doc -->
699 * @return the new adapter.
700 * @generated
701 */
702 public Adapter createEObjectAdapter() {
703 return null;
704 }
705
706 } //ReviewAdapterFactory