001/**
002 */
003package org.nasdanika.html.model.html.util;
004
005import org.eclipse.emf.common.notify.Adapter;
006import org.eclipse.emf.common.notify.Notifier;
007
008import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
009
010import org.eclipse.emf.ecore.EObject;
011import org.nasdanika.common.Adaptable;
012import org.nasdanika.exec.content.Filter;
013
014import org.nasdanika.html.model.html.*;
015import org.nasdanika.ncore.Marked;
016import org.nasdanika.ncore.ModelElement;
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 org.nasdanika.html.model.html.HtmlPackage
024 * @generated
025 */
026public class HtmlAdapterFactory extends AdapterFactoryImpl {
027        /**
028         * The cached model package.
029         * <!-- begin-user-doc -->
030         * <!-- end-user-doc -->
031         * @generated
032         */
033        protected static HtmlPackage modelPackage;
034
035        /**
036         * Creates an instance of the adapter factory.
037         * <!-- begin-user-doc -->
038         * <!-- end-user-doc -->
039         * @generated
040         */
041        public HtmlAdapterFactory() {
042                if (modelPackage == null) {
043                        modelPackage = HtmlPackage.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 HtmlSwitch<Adapter> modelSwitch =
073                new HtmlSwitch<Adapter>() {
074                        @Override
075                        public Adapter caseHtmlElement(HtmlElement object) {
076                                return createHtmlElementAdapter();
077                        }
078                        @Override
079                        public Adapter caseTag(Tag object) {
080                                return createTagAdapter();
081                        }
082                        @Override
083                        public Adapter casePage(Page object) {
084                                return createPageAdapter();
085                        }
086                        @Override
087                        public Adapter caseStylesheet(Stylesheet object) {
088                                return createStylesheetAdapter();
089                        }
090                        @Override
091                        public Adapter caseStylesheetReference(StylesheetReference object) {
092                                return createStylesheetReferenceAdapter();
093                        }
094                        @Override
095                        public Adapter caseScript(Script object) {
096                                return createScriptAdapter();
097                        }
098                        @Override
099                        public Adapter caseScriptReference(ScriptReference object) {
100                                return createScriptReferenceAdapter();
101                        }
102                        @Override
103                        public Adapter caseIMarked(org.nasdanika.persistence.Marked object) {
104                                return createIMarkedAdapter();
105                        }
106                        @Override
107                        public Adapter caseMarked(Marked object) {
108                                return createMarkedAdapter();
109                        }
110                        @Override
111                        public Adapter caseAdaptable(Adaptable object) {
112                                return createAdaptableAdapter();
113                        }
114                        @Override
115                        public Adapter caseModelElement(ModelElement object) {
116                                return createModelElementAdapter();
117                        }
118                        @Override
119                        public Adapter caseFilter(Filter object) {
120                                return createFilterAdapter();
121                        }
122                        @Override
123                        public Adapter defaultCase(EObject object) {
124                                return createEObjectAdapter();
125                        }
126                };
127
128        /**
129         * Creates an adapter for the <code>target</code>.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @param target the object to adapt.
133         * @return the adapter for the <code>target</code>.
134         * @generated
135         */
136        @Override
137        public Adapter createAdapter(Notifier target) {
138                return modelSwitch.doSwitch((EObject)target);
139        }
140
141
142        /**
143         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.HtmlElement <em>Element</em>}'.
144         * <!-- begin-user-doc -->
145         * This default implementation returns null so that we can easily ignore cases;
146         * it's useful to ignore a case when inheritance will catch all the cases anyway.
147         * <!-- end-user-doc -->
148         * @return the new adapter.
149         * @see org.nasdanika.html.model.html.HtmlElement
150         * @generated
151         */
152        public Adapter createHtmlElementAdapter() {
153                return null;
154        }
155
156        /**
157         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.Tag <em>Tag</em>}'.
158         * <!-- begin-user-doc -->
159         * This default implementation returns null so that we can easily ignore cases;
160         * it's useful to ignore a case when inheritance will catch all the cases anyway.
161         * <!-- end-user-doc -->
162         * @return the new adapter.
163         * @see org.nasdanika.html.model.html.Tag
164         * @generated
165         */
166        public Adapter createTagAdapter() {
167                return null;
168        }
169
170        /**
171         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.Page <em>Page</em>}'.
172         * <!-- begin-user-doc -->
173         * This default implementation returns null so that we can easily ignore cases;
174         * it's useful to ignore a case when inheritance will catch all the cases anyway.
175         * <!-- end-user-doc -->
176         * @return the new adapter.
177         * @see org.nasdanika.html.model.html.Page
178         * @generated
179         */
180        public Adapter createPageAdapter() {
181                return null;
182        }
183
184        /**
185         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.Stylesheet <em>Stylesheet</em>}'.
186         * <!-- begin-user-doc -->
187         * This default implementation returns null so that we can easily ignore cases;
188         * it's useful to ignore a case when inheritance will catch all the cases anyway.
189         * <!-- end-user-doc -->
190         * @return the new adapter.
191         * @see org.nasdanika.html.model.html.Stylesheet
192         * @generated
193         */
194        public Adapter createStylesheetAdapter() {
195                return null;
196        }
197
198        /**
199         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.StylesheetReference <em>Stylesheet Reference</em>}'.
200         * <!-- begin-user-doc -->
201         * This default implementation returns null so that we can easily ignore cases;
202         * it's useful to ignore a case when inheritance will catch all the cases anyway.
203         * <!-- end-user-doc -->
204         * @return the new adapter.
205         * @see org.nasdanika.html.model.html.StylesheetReference
206         * @generated
207         */
208        public Adapter createStylesheetReferenceAdapter() {
209                return null;
210        }
211
212        /**
213         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.Script <em>Script</em>}'.
214         * <!-- begin-user-doc -->
215         * This default implementation returns null so that we can easily ignore cases;
216         * it's useful to ignore a case when inheritance will catch all the cases anyway.
217         * <!-- end-user-doc -->
218         * @return the new adapter.
219         * @see org.nasdanika.html.model.html.Script
220         * @generated
221         */
222        public Adapter createScriptAdapter() {
223                return null;
224        }
225
226        /**
227         * Creates a new adapter for an object of class '{@link org.nasdanika.html.model.html.ScriptReference <em>Script Reference</em>}'.
228         * <!-- begin-user-doc -->
229         * This default implementation returns null so that we can easily ignore cases;
230         * it's useful to ignore a case when inheritance will catch all the cases anyway.
231         * <!-- end-user-doc -->
232         * @return the new adapter.
233         * @see org.nasdanika.html.model.html.ScriptReference
234         * @generated
235         */
236        public Adapter createScriptReferenceAdapter() {
237                return null;
238        }
239
240        /**
241         * Creates a new adapter for an object of class '{@link org.nasdanika.persistence.Marked <em>IMarked</em>}'.
242         * <!-- begin-user-doc -->
243         * This default implementation returns null so that we can easily ignore cases;
244         * it's useful to ignore a case when inheritance will catch all the cases anyway.
245         * <!-- end-user-doc -->
246         * @return the new adapter.
247         * @see org.nasdanika.persistence.Marked
248         * @generated
249         */
250        public Adapter createIMarkedAdapter() {
251                return null;
252        }
253
254        /**
255         * Creates a new adapter for an object of class '{@link org.nasdanika.ncore.Marked <em>Marked</em>}'.
256         * <!-- begin-user-doc -->
257         * This default implementation returns null so that we can easily ignore cases;
258         * it's useful to ignore a case when inheritance will catch all the cases anyway.
259         * <!-- end-user-doc -->
260         * @return the new adapter.
261         * @see org.nasdanika.ncore.Marked
262         * @generated
263         */
264        public Adapter createMarkedAdapter() {
265                return null;
266        }
267
268        /**
269         * Creates a new adapter for an object of class '{@link org.nasdanika.common.Adaptable <em>Adaptable</em>}'.
270         * <!-- begin-user-doc -->
271         * This default implementation returns null so that we can easily ignore cases;
272         * it's useful to ignore a case when inheritance will catch all the cases anyway.
273         * <!-- end-user-doc -->
274         * @return the new adapter.
275         * @see org.nasdanika.common.Adaptable
276         * @generated
277         */
278        public Adapter createAdaptableAdapter() {
279                return null;
280        }
281
282        /**
283         * Creates a new adapter for an object of class '{@link org.nasdanika.ncore.ModelElement <em>Model Element</em>}'.
284         * <!-- begin-user-doc -->
285         * This default implementation returns null so that we can easily ignore cases;
286         * it's useful to ignore a case when inheritance will catch all the cases anyway.
287         * <!-- end-user-doc -->
288         * @return the new adapter.
289         * @see org.nasdanika.ncore.ModelElement
290         * @generated
291         */
292        public Adapter createModelElementAdapter() {
293                return null;
294        }
295
296        /**
297         * Creates a new adapter for an object of class '{@link org.nasdanika.exec.content.Filter <em>Filter</em>}'.
298         * <!-- begin-user-doc -->
299         * This default implementation returns null so that we can easily ignore cases;
300         * it's useful to ignore a case when inheritance will catch all the cases anyway.
301         * <!-- end-user-doc -->
302         * @return the new adapter.
303         * @see org.nasdanika.exec.content.Filter
304         * @generated
305         */
306        public Adapter createFilterAdapter() {
307                return null;
308        }
309
310        /**
311         * Creates a new adapter for the default case.
312         * <!-- begin-user-doc -->
313         * This default implementation returns null.
314         * <!-- end-user-doc -->
315         * @return the new adapter.
316         * @generated
317         */
318        public Adapter createEObjectAdapter() {
319                return null;
320        }
321
322} //HtmlAdapterFactory