View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.doxia.sink.impl;
20  
21  import org.apache.maven.doxia.sink.SinkEventAttributes;
22  
23  /**
24   * Empty implementation of the <code>Sink</code> interface. Useful for testing purposes.
25   *
26   * @since 1.0
27   * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
28   * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
29   */
30  public class SinkAdapter extends AbstractSink {
31  
32      /** {@inheritDoc} */
33      @Override
34      public void head_() {
35          // nop
36      }
37  
38      /** {@inheritDoc} */
39      @Override
40      public void body_() {
41          // nop
42      }
43  
44      /** {@inheritDoc} */
45      @Override
46      public void article_() {
47          // nop
48      }
49  
50      /** {@inheritDoc} */
51      @Override
52      public void navigation_() {
53          // nop
54      }
55  
56      /** {@inheritDoc} */
57      @Override
58      public void sidebar_() {
59          // nop
60      }
61  
62      /** {@inheritDoc} */
63      @Override
64      public void list_() {
65          // nop
66      }
67  
68      /** {@inheritDoc} */
69      @Override
70      public void listItem_() {
71          // nop
72      }
73  
74      /** {@inheritDoc} */
75      @Override
76      public void numberedList_() {
77          // nop
78      }
79  
80      /** {@inheritDoc} */
81      @Override
82      public void numberedListItem_() {
83          // nop
84      }
85  
86      /** {@inheritDoc} */
87      @Override
88      public void definitionList_() {
89          // nop
90      }
91  
92      /** {@inheritDoc} */
93      @Override
94      public void definitionListItem_() {
95          // nop
96      }
97  
98      /** {@inheritDoc} */
99      @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 }