001    /**
002     * <copyright>
003     * </copyright>
004     *
005     * $Id$
006     */
007    package com.hammurapi.party.util;
008    
009    import com.hammurapi.party.*;
010    
011    import org.eclipse.emf.common.notify.Adapter;
012    import org.eclipse.emf.common.notify.Notifier;
013    
014    import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
015    
016    import org.eclipse.emf.ecore.EObject;
017    
018    /**
019     * <!-- begin-user-doc -->
020     * The <b>Adapter Factory</b> for the model.
021     * It provides an adapter <code>createXXX</code> method for each class of the model.
022     * <!-- end-user-doc -->
023     * @see com.hammurapi.party.PartyPackage
024     * @generated
025     */
026    public class PartyAdapterFactory extends AdapterFactoryImpl {
027            /**
028             * The cached model package.
029             * <!-- begin-user-doc -->
030             * <!-- end-user-doc -->
031             * @generated
032             */
033            protected static PartyPackage modelPackage;
034    
035            /**
036             * Creates an instance of the adapter factory.
037             * <!-- begin-user-doc -->
038             * <!-- end-user-doc -->
039             * @generated
040             */
041            public PartyAdapterFactory() {
042                    if (modelPackage == null) {
043                            modelPackage = PartyPackage.eINSTANCE;
044                    }
045            }
046    
047            /**
048             * Returns whether this factory is applicable for the type of the object.
049             * <!-- begin-user-doc -->
050             * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
051             * <!-- end-user-doc -->
052             * @return whether this factory is applicable for the type of the object.
053             * @generated
054             */
055            @Override
056            public boolean isFactoryForType(Object object) {
057                    if (object == modelPackage) {
058                            return true;
059                    }
060                    if (object instanceof EObject) {
061                            return ((EObject)object).eClass().getEPackage() == modelPackage;
062                    }
063                    return false;
064            }
065    
066            /**
067             * The switch that delegates to the <code>createXXX</code> methods.
068             * <!-- begin-user-doc -->
069             * <!-- end-user-doc -->
070             * @generated
071             */
072            protected PartySwitch<Adapter> modelSwitch =
073                    new PartySwitch<Adapter>() {
074                            @Override
075                            public Adapter caseParty(Party object) {
076                                    return createPartyAdapter();
077                            }
078                            @Override
079                            public Adapter caseIdentity(Identity object) {
080                                    return createIdentityAdapter();
081                            }
082                            @Override
083                            public Adapter caseTagged(Tagged object) {
084                                    return createTaggedAdapter();
085                            }
086                            @Override
087                            public Adapter caseDateEffectiveObject(DateEffectiveObject object) {
088                                    return createDateEffectiveObjectAdapter();
089                            }
090                            @Override
091                            public Adapter caseContactInfo(ContactInfo object) {
092                                    return createContactInfoAdapter();
093                            }
094                            @Override
095                            public Adapter casePhone(Phone object) {
096                                    return createPhoneAdapter();
097                            }
098                            @Override
099                            public Adapter caseWeb(Web object) {
100                                    return createWebAdapter();
101                            }
102                            @Override
103                            public Adapter caseEMail(EMail object) {
104                                    return createEMailAdapter();
105                            }
106                            @Override
107                            public Adapter caseAddress(Address object) {
108                                    return createAddressAdapter();
109                            }
110                            @Override
111                            public Adapter caseCustom(Custom object) {
112                                    return createCustomAdapter();
113                            }
114                            @Override
115                            public Adapter caseUSAddress(USAddress object) {
116                                    return createUSAddressAdapter();
117                            }
118                            @Override
119                            public Adapter caseOrganization(Organization object) {
120                                    return createOrganizationAdapter();
121                            }
122                            @Override
123                            public Adapter casePerson(Person object) {
124                                    return createPersonAdapter();
125                            }
126                            @Override
127                            public Adapter caseTag(Tag object) {
128                                    return createTagAdapter();
129                            }
130                            @Override
131                            public Adapter caseRole(Role object) {
132                                    return createRoleAdapter();
133                            }
134                            @Override
135                            public Adapter caseURL(URL object) {
136                                    return createURLAdapter();
137                            }
138                            @Override
139                            public Adapter caseCommonObject(CommonObject object) {
140                                    return createCommonObjectAdapter();
141                            }
142                            @Override
143                            public Adapter caseMatrixRelationship(MatrixRelationship object) {
144                                    return createMatrixRelationshipAdapter();
145                            }
146                            @Override
147                            public Adapter defaultCase(EObject object) {
148                                    return createEObjectAdapter();
149                            }
150                    };
151    
152            /**
153             * Creates an adapter for the <code>target</code>.
154             * <!-- begin-user-doc -->
155             * <!-- end-user-doc -->
156             * @param target the object to adapt.
157             * @return the adapter for the <code>target</code>.
158             * @generated
159             */
160            @Override
161            public Adapter createAdapter(Notifier target) {
162                    return modelSwitch.doSwitch((EObject)target);
163            }
164    
165    
166            /**
167             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Party <em>Party</em>}'.
168             * <!-- begin-user-doc -->
169             * This default implementation returns null so that we can easily ignore cases;
170             * it's useful to ignore a case when inheritance will catch all the cases anyway.
171             * <!-- end-user-doc -->
172             * @return the new adapter.
173             * @see com.hammurapi.party.Party
174             * @generated
175             */
176            public Adapter createPartyAdapter() {
177                    return null;
178            }
179    
180            /**
181             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Identity <em>Identity</em>}'.
182             * <!-- begin-user-doc -->
183             * This default implementation returns null so that we can easily ignore cases;
184             * it's useful to ignore a case when inheritance will catch all the cases anyway.
185             * <!-- end-user-doc -->
186             * @return the new adapter.
187             * @see com.hammurapi.party.Identity
188             * @generated
189             */
190            public Adapter createIdentityAdapter() {
191                    return null;
192            }
193    
194            /**
195             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Tagged <em>Tagged</em>}'.
196             * <!-- begin-user-doc -->
197             * This default implementation returns null so that we can easily ignore cases;
198             * it's useful to ignore a case when inheritance will catch all the cases anyway.
199             * <!-- end-user-doc -->
200             * @return the new adapter.
201             * @see com.hammurapi.party.Tagged
202             * @generated
203             */
204            public Adapter createTaggedAdapter() {
205                    return null;
206            }
207    
208            /**
209             * Creates a new adapter for an object of class '{@link com.hammurapi.party.DateEffectiveObject <em>Date Effective Object</em>}'.
210             * <!-- begin-user-doc -->
211             * This default implementation returns null so that we can easily ignore cases;
212             * it's useful to ignore a case when inheritance will catch all the cases anyway.
213             * <!-- end-user-doc -->
214             * @return the new adapter.
215             * @see com.hammurapi.party.DateEffectiveObject
216             * @generated
217             */
218            public Adapter createDateEffectiveObjectAdapter() {
219                    return null;
220            }
221    
222            /**
223             * Creates a new adapter for an object of class '{@link com.hammurapi.party.ContactInfo <em>Contact Info</em>}'.
224             * <!-- begin-user-doc -->
225             * This default implementation returns null so that we can easily ignore cases;
226             * it's useful to ignore a case when inheritance will catch all the cases anyway.
227             * <!-- end-user-doc -->
228             * @return the new adapter.
229             * @see com.hammurapi.party.ContactInfo
230             * @generated
231             */
232            public Adapter createContactInfoAdapter() {
233                    return null;
234            }
235    
236            /**
237             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Phone <em>Phone</em>}'.
238             * <!-- begin-user-doc -->
239             * This default implementation returns null so that we can easily ignore cases;
240             * it's useful to ignore a case when inheritance will catch all the cases anyway.
241             * <!-- end-user-doc -->
242             * @return the new adapter.
243             * @see com.hammurapi.party.Phone
244             * @generated
245             */
246            public Adapter createPhoneAdapter() {
247                    return null;
248            }
249    
250            /**
251             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Web <em>Web</em>}'.
252             * <!-- begin-user-doc -->
253             * This default implementation returns null so that we can easily ignore cases;
254             * it's useful to ignore a case when inheritance will catch all the cases anyway.
255             * <!-- end-user-doc -->
256             * @return the new adapter.
257             * @see com.hammurapi.party.Web
258             * @generated
259             */
260            public Adapter createWebAdapter() {
261                    return null;
262            }
263    
264            /**
265             * Creates a new adapter for an object of class '{@link com.hammurapi.party.EMail <em>EMail</em>}'.
266             * <!-- begin-user-doc -->
267             * This default implementation returns null so that we can easily ignore cases;
268             * it's useful to ignore a case when inheritance will catch all the cases anyway.
269             * <!-- end-user-doc -->
270             * @return the new adapter.
271             * @see com.hammurapi.party.EMail
272             * @generated
273             */
274            public Adapter createEMailAdapter() {
275                    return null;
276            }
277    
278            /**
279             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Address <em>Address</em>}'.
280             * <!-- begin-user-doc -->
281             * This default implementation returns null so that we can easily ignore cases;
282             * it's useful to ignore a case when inheritance will catch all the cases anyway.
283             * <!-- end-user-doc -->
284             * @return the new adapter.
285             * @see com.hammurapi.party.Address
286             * @generated
287             */
288            public Adapter createAddressAdapter() {
289                    return null;
290            }
291    
292            /**
293             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Custom <em>Custom</em>}'.
294             * <!-- begin-user-doc -->
295             * This default implementation returns null so that we can easily ignore cases;
296             * it's useful to ignore a case when inheritance will catch all the cases anyway.
297             * <!-- end-user-doc -->
298             * @return the new adapter.
299             * @see com.hammurapi.party.Custom
300             * @generated
301             */
302            public Adapter createCustomAdapter() {
303                    return null;
304            }
305    
306            /**
307             * Creates a new adapter for an object of class '{@link com.hammurapi.party.USAddress <em>US Address</em>}'.
308             * <!-- begin-user-doc -->
309             * This default implementation returns null so that we can easily ignore cases;
310             * it's useful to ignore a case when inheritance will catch all the cases anyway.
311             * <!-- end-user-doc -->
312             * @return the new adapter.
313             * @see com.hammurapi.party.USAddress
314             * @generated
315             */
316            public Adapter createUSAddressAdapter() {
317                    return null;
318            }
319    
320            /**
321             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Organization <em>Organization</em>}'.
322             * <!-- begin-user-doc -->
323             * This default implementation returns null so that we can easily ignore cases;
324             * it's useful to ignore a case when inheritance will catch all the cases anyway.
325             * <!-- end-user-doc -->
326             * @return the new adapter.
327             * @see com.hammurapi.party.Organization
328             * @generated
329             */
330            public Adapter createOrganizationAdapter() {
331                    return null;
332            }
333    
334            /**
335             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Person <em>Person</em>}'.
336             * <!-- begin-user-doc -->
337             * This default implementation returns null so that we can easily ignore cases;
338             * it's useful to ignore a case when inheritance will catch all the cases anyway.
339             * <!-- end-user-doc -->
340             * @return the new adapter.
341             * @see com.hammurapi.party.Person
342             * @generated
343             */
344            public Adapter createPersonAdapter() {
345                    return null;
346            }
347    
348            /**
349             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Tag <em>Tag</em>}'.
350             * <!-- begin-user-doc -->
351             * This default implementation returns null so that we can easily ignore cases;
352             * it's useful to ignore a case when inheritance will catch all the cases anyway.
353             * <!-- end-user-doc -->
354             * @return the new adapter.
355             * @see com.hammurapi.party.Tag
356             * @generated
357             */
358            public Adapter createTagAdapter() {
359                    return null;
360            }
361    
362            /**
363             * Creates a new adapter for an object of class '{@link com.hammurapi.party.Role <em>Role</em>}'.
364             * <!-- begin-user-doc -->
365             * This default implementation returns null so that we can easily ignore cases;
366             * it's useful to ignore a case when inheritance will catch all the cases anyway.
367             * <!-- end-user-doc -->
368             * @return the new adapter.
369             * @see com.hammurapi.party.Role
370             * @generated
371             */
372            public Adapter createRoleAdapter() {
373                    return null;
374            }
375    
376            /**
377             * Creates a new adapter for an object of class '{@link com.hammurapi.party.URL <em>URL</em>}'.
378             * <!-- begin-user-doc -->
379             * This default implementation returns null so that we can easily ignore cases;
380             * it's useful to ignore a case when inheritance will catch all the cases anyway.
381             * <!-- end-user-doc -->
382             * @return the new adapter.
383             * @see com.hammurapi.party.URL
384             * @generated
385             */
386            public Adapter createURLAdapter() {
387                    return null;
388            }
389    
390            /**
391             * Creates a new adapter for an object of class '{@link com.hammurapi.party.CommonObject <em>Common Object</em>}'.
392             * <!-- begin-user-doc -->
393             * This default implementation returns null so that we can easily ignore cases;
394             * it's useful to ignore a case when inheritance will catch all the cases anyway.
395             * <!-- end-user-doc -->
396             * @return the new adapter.
397             * @see com.hammurapi.party.CommonObject
398             * @generated
399             */
400            public Adapter createCommonObjectAdapter() {
401                    return null;
402            }
403    
404            /**
405             * Creates a new adapter for an object of class '{@link com.hammurapi.party.MatrixRelationship <em>Matrix Relationship</em>}'.
406             * <!-- begin-user-doc -->
407             * This default implementation returns null so that we can easily ignore cases;
408             * it's useful to ignore a case when inheritance will catch all the cases anyway.
409             * <!-- end-user-doc -->
410             * @return the new adapter.
411             * @see com.hammurapi.party.MatrixRelationship
412             * @generated
413             */
414            public Adapter createMatrixRelationshipAdapter() {
415                    return null;
416            }
417    
418            /**
419             * Creates a new adapter for the default case.
420             * <!-- begin-user-doc -->
421             * This default implementation returns null.
422             * <!-- end-user-doc -->
423             * @return the new adapter.
424             * @generated
425             */
426            public Adapter createEObjectAdapter() {
427                    return null;
428            }
429    
430    } //PartyAdapterFactory