    001    /**
    002     * <copyright>
    003     * </copyright>
    004     *
    005     * $Id$
    006     */
    007    package com.hammurapi.eventbus.snapshot.util;
    008
    009    import com.hammurapi.eventbus.snapshot.*;
    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.eventbus.snapshot.SnapshotPackage
    024     * @generated
    025     */
    026    public class SnapshotAdapterFactory extends AdapterFactoryImpl {
    027            /**
    028             * The cached model package.
    029             * <!-- begin-user-doc -->
    030             * <!-- end-user-doc -->
    031             * @generated
    032             */
    033            protected static SnapshotPackage modelPackage;
    034
    035            /**
    036             * Creates an instance of the adapter factory.
    037             * <!-- begin-user-doc -->
    038             * <!-- end-user-doc -->
    039             * @generated
    040             */
    041            public SnapshotAdapterFactory() {
    042                    if (modelPackage == null) {
    043                            modelPackage = SnapshotPackage.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 SnapshotSwitch<Adapter> modelSwitch =
    073                    new SnapshotSwitch<Adapter>() {
    074                            @Override
    075                            public Adapter caseSnapshot(Snapshot object) {
    076                                    return createSnapshotAdapter();
    077                            }
    078                            @Override
    079                            public Adapter caseSnapshotElement(SnapshotElement object) {
    080                                    return createSnapshotElementAdapter();
    081                            }
    082                            @Override
    083                            public Adapter caseHandler(Handler object) {
    084                                    return createHandlerAdapter();
    085                            }
    086                            @Override
    087                            public Adapter caseDerivation(Derivation object) {
    088                                    return createDerivationAdapter();
    089                            }
    090                            @Override
    091                            public Adapter caseEvent(Event object) {
    092                                    return createEventAdapter();
    093                            }
    094                            @Override
    095                            public Adapter casePredicateNode(PredicateNode object) {
    096                                    return createPredicateNodeAdapter();
    097                            }
    098                            @Override
    099                            public Adapter casePredicateNodeOutput(PredicateNodeOutput object) {
    100                                    return createPredicateNodeOutputAdapter();
    101                            }
    102                            @Override
    103                            public Adapter caseJoinInput(JoinInput object) {
    104                                    return createJoinInputAdapter();
    105                            }
    106                            @Override
    107                            public Adapter caseJoinNode(JoinNode object) {
    108                                    return createJoinNodeAdapter();
    109                            }
    110                            @Override
    111                            public Adapter caseJoinInputCollector(JoinInputCollector object) {
    112                                    return createJoinInputCollectorAdapter();
    113                            }
    114                            @Override
    115                            public Adapter caseJoinEntry(JoinEntry object) {
    116                                    return createJoinEntryAdapter();
    117                            }
    118                            @Override
    119                            public Adapter caseExtractor(Extractor object) {
    120                                    return createExtractorAdapter();
    121                            }
    122                            @Override
    123                            public Adapter casePredicate(Predicate object) {
    124                                    return createPredicateAdapter();
    125                            }
    126                            @Override
    127                            public Adapter caseCompositeEvent(CompositeEvent object) {
    128                                    return createCompositeEventAdapter();
    129                            }
    130                            @Override
    131                            public Adapter defaultCase(EObject object) {
    132                                    return createEObjectAdapter();
    133                            }
    134                    };
    135
    136            /**
    137             * Creates an adapter for the <code>target</code>.
    138             * <!-- begin-user-doc -->
    139             * <!-- end-user-doc -->
    140             * @param target the object to adapt.
    141             * @return the adapter for the <code>target</code>.
    142             * @generated
    143             */
    144            @Override
    145            public Adapter createAdapter(Notifier target) {
    146                    return modelSwitch.doSwitch((EObject)target);
    147            }
    148
    149
    150            /**
    151             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Snapshot <em>Snapshot</em>}'.
    152             * <!-- begin-user-doc -->
    153             * This default implementation returns null so that we can easily ignore cases;
    154             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    155             * <!-- end-user-doc -->
    156             * @return the new adapter.
    157             * @see com.hammurapi.eventbus.snapshot.Snapshot
    158             * @generated
    159             */
    160            public Adapter createSnapshotAdapter() {
    161                    return null;
    162            }
    163
    164            /**
    165             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.SnapshotElement <em>Element</em>}'.
    166             * <!-- begin-user-doc -->
    167             * This default implementation returns null so that we can easily ignore cases;
    168             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    169             * <!-- end-user-doc -->
    170             * @return the new adapter.
    171             * @see com.hammurapi.eventbus.snapshot.SnapshotElement
    172             * @generated
    173             */
    174            public Adapter createSnapshotElementAdapter() {
    175                    return null;
    176            }
    177
    178            /**
    179             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Handler <em>Handler</em>}'.
    180             * <!-- begin-user-doc -->
    181             * This default implementation returns null so that we can easily ignore cases;
    182             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    183             * <!-- end-user-doc -->
    184             * @return the new adapter.
    185             * @see com.hammurapi.eventbus.snapshot.Handler
    186             * @generated
    187             */
    188            public Adapter createHandlerAdapter() {
    189                    return null;
    190            }
    191
    192            /**
    193             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Derivation <em>Derivation</em>}'.
    194             * <!-- begin-user-doc -->
    195             * This default implementation returns null so that we can easily ignore cases;
    196             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    197             * <!-- end-user-doc -->
    198             * @return the new adapter.
    199             * @see com.hammurapi.eventbus.snapshot.Derivation
    200             * @generated
    201             */
    202            public Adapter createDerivationAdapter() {
    203                    return null;
    204            }
    205
    206            /**
    207             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Event <em>Event</em>}'.
    208             * <!-- begin-user-doc -->
    209             * This default implementation returns null so that we can easily ignore cases;
    210             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    211             * <!-- end-user-doc -->
    212             * @return the new adapter.
    213             * @see com.hammurapi.eventbus.snapshot.Event
    214             * @generated
    215             */
    216            public Adapter createEventAdapter() {
    217                    return null;
    218            }
    219
    220            /**
    221             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.PredicateNode <em>Predicate Node</em>}'.
    222             * <!-- begin-user-doc -->
    223             * This default implementation returns null so that we can easily ignore cases;
    224             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    225             * <!-- end-user-doc -->
    226             * @return the new adapter.
    227             * @see com.hammurapi.eventbus.snapshot.PredicateNode
    228             * @generated
    229             */
    230            public Adapter createPredicateNodeAdapter() {
    231                    return null;
    232            }
    233
    234            /**
    235             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.PredicateNodeOutput <em>Predicate Node Output</em>}'.
    236             * <!-- begin-user-doc -->
    237             * This default implementation returns null so that we can easily ignore cases;
    238             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    239             * <!-- end-user-doc -->
    240             * @return the new adapter.
    241             * @see com.hammurapi.eventbus.snapshot.PredicateNodeOutput
    242             * @generated
    243             */
    244            public Adapter createPredicateNodeOutputAdapter() {
    245                    return null;
    246            }
    247
    248            /**
    249             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinInput <em>Join Input</em>}'.
    250             * <!-- begin-user-doc -->
    251             * This default implementation returns null so that we can easily ignore cases;
    252             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    253             * <!-- end-user-doc -->
    254             * @return the new adapter.
    255             * @see com.hammurapi.eventbus.snapshot.JoinInput
    256             * @generated
    257             */
    258            public Adapter createJoinInputAdapter() {
    259                    return null;
    260            }
    261
    262            /**
    263             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinNode <em>Join Node</em>}'.
    264             * <!-- begin-user-doc -->
    265             * This default implementation returns null so that we can easily ignore cases;
    266             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    267             * <!-- end-user-doc -->
    268             * @return the new adapter.
    269             * @see com.hammurapi.eventbus.snapshot.JoinNode
    270             * @generated
    271             */
    272            public Adapter createJoinNodeAdapter() {
    273                    return null;
    274            }
    275
    276            /**
    277             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinInputCollector <em>Join Input Collector</em>}'.
    278             * <!-- begin-user-doc -->
    279             * This default implementation returns null so that we can easily ignore cases;
    280             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    281             * <!-- end-user-doc -->
    282             * @return the new adapter.
    283             * @see com.hammurapi.eventbus.snapshot.JoinInputCollector
    284             * @generated
    285             */
    286            public Adapter createJoinInputCollectorAdapter() {
    287                    return null;
    288            }
    289
    290            /**
    291             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinEntry <em>Join Entry</em>}'.
    292             * <!-- begin-user-doc -->
    293             * This default implementation returns null so that we can easily ignore cases;
    294             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    295             * <!-- end-user-doc -->
    296             * @return the new adapter.
    297             * @see com.hammurapi.eventbus.snapshot.JoinEntry
    298             * @generated
    299             */
    300            public Adapter createJoinEntryAdapter() {
    301                    return null;
    302            }
    303
    304            /**
    305             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Extractor <em>Extractor</em>}'.
    306             * <!-- begin-user-doc -->
    307             * This default implementation returns null so that we can easily ignore cases;
    308             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    309             * <!-- end-user-doc -->
    310             * @return the new adapter.
    311             * @see com.hammurapi.eventbus.snapshot.Extractor
    312             * @generated
    313             */
    314            public Adapter createExtractorAdapter() {
    315                    return null;
    316            }
    317
    318            /**
    319             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Predicate <em>Predicate</em>}'.
    320             * <!-- begin-user-doc -->
    321             * This default implementation returns null so that we can easily ignore cases;
    322             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    323             * <!-- end-user-doc -->
    324             * @return the new adapter.
    325             * @see com.hammurapi.eventbus.snapshot.Predicate
    326             * @generated
    327             */
    328            public Adapter createPredicateAdapter() {
    329                    return null;
    330            }
    331
    332            /**
    333             * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.CompositeEvent <em>Composite Event</em>}'.
    334             * <!-- begin-user-doc -->
    335             * This default implementation returns null so that we can easily ignore cases;
    336             * it's useful to ignore a case when inheritance will catch all the cases anyway.
    337             * <!-- end-user-doc -->
    338             * @return the new adapter.
    339             * @see com.hammurapi.eventbus.snapshot.CompositeEvent
    340             * @generated
    341             */
    342            public Adapter createCompositeEventAdapter() {
    343                    return null;
    344            }
    345
    346            /**
    347             * Creates a new adapter for the default case.
    348             * <!-- begin-user-doc -->
    349             * This default implementation returns null.
    350             * <!-- end-user-doc -->
    351             * @return the new adapter.
    352             * @generated
    353             */
    354            public Adapter createEObjectAdapter() {
    355                    return null;
    356            }
    357
    358    } //SnapshotAdapterFactory