001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.doxia.sink.impl;
020
021import org.apache.maven.doxia.sink.SinkEventAttributes;
022
023/**
024 * Empty implementation of the <code>Sink</code> interface. Useful for testing purposes.
025 *
026 * @since 1.0
027 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
028 * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
029 */
030public class SinkAdapter extends AbstractSink {
031
032    /** {@inheritDoc} */
033    @Override
034    public void head_() {
035        // nop
036    }
037
038    /** {@inheritDoc} */
039    @Override
040    public void body_() {
041        // nop
042    }
043
044    /** {@inheritDoc} */
045    @Override
046    public void article_() {
047        // nop
048    }
049
050    /** {@inheritDoc} */
051    @Override
052    public void navigation_() {
053        // nop
054    }
055
056    /** {@inheritDoc} */
057    @Override
058    public void sidebar_() {
059        // nop
060    }
061
062    /** {@inheritDoc} */
063    @Override
064    public void list_() {
065        // nop
066    }
067
068    /** {@inheritDoc} */
069    @Override
070    public void listItem_() {
071        // nop
072    }
073
074    /** {@inheritDoc} */
075    @Override
076    public void numberedList_() {
077        // nop
078    }
079
080    /** {@inheritDoc} */
081    @Override
082    public void numberedListItem_() {
083        // nop
084    }
085
086    /** {@inheritDoc} */
087    @Override
088    public void definitionList_() {
089        // nop
090    }
091
092    /** {@inheritDoc} */
093    @Override
094    public void definitionListItem_() {
095        // nop
096    }
097
098    /** {@inheritDoc} */
099    @Override
100    public void definition_() {
101        // nop
102    }
103
104    /** {@inheritDoc} */
105    @Override
106    public void figure_() {
107        // nop
108    }
109
110    /** {@inheritDoc} */
111    @Override
112    public void table_() {
113        // nop
114    }
115
116    /** {@inheritDoc} */
117    @Override
118    public void tableRows_() {
119        // nop
120    }
121
122    /** {@inheritDoc} */
123    @Override
124    public void tableRow_() {
125        // nop
126    }
127
128    /** {@inheritDoc} */
129    @Override
130    public void title_() {
131        // nop
132    }
133
134    /** {@inheritDoc} */
135    @Override
136    public void author_() {
137        // nop
138    }
139
140    /** {@inheritDoc} */
141    @Override
142    public void date_() {
143        // nop
144    }
145
146    /** {@inheritDoc} */
147    @Override
148    public void header_() {
149        // nop
150    }
151
152    /** {@inheritDoc} */
153    @Override
154    public void content_() {
155        // nop
156    }
157
158    /** {@inheritDoc} */
159    @Override
160    public void footer_() {
161        // nop
162    }
163
164    /** {@inheritDoc} */
165    @Override
166    public void paragraph_() {
167        // nop
168    }
169
170    /** {@inheritDoc} */
171    @Override
172    public void data_() {
173        // nop
174    }
175
176    /** {@inheritDoc} */
177    @Override
178    public void time_() {
179        // nop
180    }
181
182    /** {@inheritDoc} */
183    @Override
184    public void address_() {
185        // nop
186    }
187
188    /** {@inheritDoc} */
189    @Override
190    public void blockquote_() {
191        // nop
192    }
193
194    /** {@inheritDoc} */
195    @Override
196    public void division_() {
197        // nop
198    }
199
200    /** {@inheritDoc} */
201    @Override
202    public void verbatim_() {
203        // nop
204    }
205
206    /** {@inheritDoc} */
207    @Override
208    public void definedTerm_() {
209        // nop
210    }
211
212    /** {@inheritDoc} */
213    @Override
214    public void figureCaption_() {
215        // nop
216    }
217
218    /** {@inheritDoc} */
219    @Override
220    public void tableCell_() {
221        // nop
222    }
223
224    /** {@inheritDoc} */
225    @Override
226    public void tableHeaderCell_() {
227        // nop
228    }
229
230    /** {@inheritDoc} */
231    @Override
232    public void tableCaption_() {
233        // nop
234    }
235
236    /** {@inheritDoc} */
237    @Override
238    public void pageBreak() {
239        // nop
240    }
241
242    /** {@inheritDoc} */
243    @Override
244    public void anchor_() {
245        // nop
246    }
247
248    /** {@inheritDoc} */
249    @Override
250    public void link_() {
251        // nop
252    }
253
254    /** {@inheritDoc} */
255    @Override
256    public void inline_() {
257        // nop
258    }
259
260    /** {@inheritDoc} */
261    @Override
262    public void italic() {
263        // nop
264    }
265
266    /** {@inheritDoc} */
267    @Override
268    public void italic_() {
269        // nop
270    }
271
272    /** {@inheritDoc} */
273    @Override
274    public void bold() {
275        // nop
276    }
277
278    /** {@inheritDoc} */
279    @Override
280    public void bold_() {
281        // nop
282    }
283
284    /** {@inheritDoc} */
285    @Override
286    public void monospaced() {
287        // nop
288    }
289
290    /** {@inheritDoc} */
291    @Override
292    public void monospaced_() {
293        // nop
294    }
295
296    /** {@inheritDoc} */
297    @Override
298    public void nonBreakingSpace() {
299        // nop
300    }
301
302    /** {@inheritDoc} */
303    @Override
304    public void rawText(String text) {
305        // nop
306    }
307
308    /** {@inheritDoc} */
309    @Override
310    public void comment(String comment) {
311        // nop
312    }
313
314    /** {@inheritDoc} */
315    @Override
316    public void flush() {
317        // nop
318    }
319
320    /** {@inheritDoc} */
321    @Override
322    public void close() {
323        // nop
324    }
325
326    /** {@inheritDoc} */
327    @Override
328    public void head(SinkEventAttributes attributes) {
329        // nop
330    }
331
332    /** {@inheritDoc} */
333    @Override
334    public void title(SinkEventAttributes attributes) {
335        // nop
336    }
337
338    /** {@inheritDoc} */
339    @Override
340    public void author(SinkEventAttributes attributes) {
341        // nop
342    }
343
344    /** {@inheritDoc} */
345    @Override
346    public void date(SinkEventAttributes attributes) {
347        // nop
348    }
349
350    /** {@inheritDoc} */
351    @Override
352    public void body(SinkEventAttributes attributes) {
353        // nop
354    }
355
356    /** {@inheritDoc} */
357    @Override
358    public void article(SinkEventAttributes attributes) {
359        // nop
360    }
361
362    /** {@inheritDoc} */
363    @Override
364    public void navigation(SinkEventAttributes attributes) {
365        // nop
366    }
367
368    /** {@inheritDoc} */
369    @Override
370    public void sidebar(SinkEventAttributes attributes) {
371        // nop
372    }
373
374    /** {@inheritDoc} */
375    @Override
376    public void section(int level, SinkEventAttributes attributes) {
377        // nop
378    }
379
380    /** {@inheritDoc} */
381    @Override
382    public void section_(int level) {
383        // nop
384    }
385
386    /** {@inheritDoc} */
387    @Override
388    public void sectionTitle(int level, SinkEventAttributes attributes) {
389        // nop
390    }
391
392    /** {@inheritDoc} */
393    @Override
394    public void sectionTitle_(int level) {
395        // nop
396    }
397
398    /** {@inheritDoc} */
399    @Override
400    public void header(SinkEventAttributes attributes) {
401        // nop
402    }
403
404    /** {@inheritDoc} */
405    @Override
406    public void content(SinkEventAttributes attributes) {
407        // nop
408    }
409
410    /** {@inheritDoc} */
411    @Override
412    public void footer(SinkEventAttributes attributes) {
413        // nop
414    }
415
416    /** {@inheritDoc} */
417    @Override
418    public void list(SinkEventAttributes attributes) {
419        // nop
420    }
421
422    /** {@inheritDoc} */
423    @Override
424    public void listItem(SinkEventAttributes attributes) {
425        // nop
426    }
427
428    /** {@inheritDoc} */
429    @Override
430    public void numberedList(int numbering, SinkEventAttributes attributes) {
431        // nop
432    }
433
434    /** {@inheritDoc} */
435    @Override
436    public void numberedListItem(SinkEventAttributes attributes) {
437        // nop
438    }
439
440    /** {@inheritDoc} */
441    @Override
442    public void definitionList(SinkEventAttributes attributes) {
443        // nop
444    }
445
446    /** {@inheritDoc} */
447    @Override
448    public void definitionListItem(SinkEventAttributes attributes) {
449        // nop
450    }
451
452    /** {@inheritDoc} */
453    @Override
454    public void definition(SinkEventAttributes attributes) {
455        // nop
456    }
457
458    /** {@inheritDoc} */
459    @Override
460    public void definedTerm(SinkEventAttributes attributes) {
461        // nop
462    }
463
464    /** {@inheritDoc} */
465    @Override
466    public void figure(SinkEventAttributes attributes) {
467        // nop
468    }
469
470    /** {@inheritDoc} */
471    @Override
472    public void figureCaption(SinkEventAttributes attributes) {
473        // nop
474    }
475
476    /** {@inheritDoc} */
477    @Override
478    public void figureGraphics(String src, SinkEventAttributes attributes) {
479        // nop
480    }
481
482    /** {@inheritDoc} */
483    @Override
484    public void table(SinkEventAttributes attributes) {
485        // nop
486    }
487
488    /** {@inheritDoc} */
489    @Override
490    public void tableRows(int[] justification, boolean grid) {
491        // nop
492    }
493
494    /** {@inheritDoc} */
495    @Override
496    public void tableRow(SinkEventAttributes attributes) {
497        // nop
498    }
499
500    /** {@inheritDoc} */
501    @Override
502    public void tableCell(SinkEventAttributes attributes) {
503        // nop
504    }
505
506    /** {@inheritDoc} */
507    @Override
508    public void tableHeaderCell(SinkEventAttributes attributes) {
509        // nop
510    }
511
512    /** {@inheritDoc} */
513    @Override
514    public void tableCaption(SinkEventAttributes attributes) {
515        // nop
516    }
517
518    /** {@inheritDoc} */
519    @Override
520    public void paragraph(SinkEventAttributes attributes) {
521        // nop
522    }
523
524    /** {@inheritDoc} */
525    @Override
526    public void data(String value, SinkEventAttributes attributes) {
527        // nop
528    }
529
530    /** {@inheritDoc} */
531    @Override
532    public void time(String datetime, SinkEventAttributes attributes) {
533        // nop
534    }
535
536    /** {@inheritDoc} */
537    @Override
538    public void address(SinkEventAttributes attributes) {
539        // nop
540    }
541
542    /** {@inheritDoc} */
543    @Override
544    public void blockquote(SinkEventAttributes attributes) {
545        // nop
546    }
547
548    /** {@inheritDoc} */
549    @Override
550    public void division(SinkEventAttributes attributes) {
551        // nop
552    }
553
554    /** {@inheritDoc} */
555    @Override
556    public void verbatim(SinkEventAttributes attributes) {
557        // nop
558    }
559
560    /** {@inheritDoc} */
561    @Override
562    public void horizontalRule(SinkEventAttributes attributes) {
563        // nop
564    }
565
566    /** {@inheritDoc} */
567    @Override
568    public void anchor(String name, SinkEventAttributes attributes) {
569        // nop
570    }
571
572    /** {@inheritDoc} */
573    @Override
574    public void link(String name, SinkEventAttributes attributes) {
575        // nop
576    }
577
578    /** {@inheritDoc} */
579    @Override
580    public void inline(SinkEventAttributes attributes) {
581        // nop
582    }
583
584    /** {@inheritDoc} */
585    @Override
586    public void lineBreak(SinkEventAttributes attributes) {
587        // nop
588    }
589
590    /** {@inheritDoc} */
591    @Override
592    public void lineBreakOpportunity(SinkEventAttributes attributes) {
593        // nop
594    }
595
596    /** {@inheritDoc} */
597    @Override
598    public void text(String text, SinkEventAttributes attributes) {
599        // nop
600    }
601
602    /** {@inheritDoc} */
603    @Override
604    public void unknown(String name, Object[] requiredParams, SinkEventAttributes attributes) {
605        // nop
606    }
607}