1 package org.apache.maven.doxia.sink;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import javax.swing.text.MutableAttributeSet;
23
24
25
26
27
28
29
30
31
32 public class SinkAdapter
33 extends AbstractSink
34 {
35
36 public void head()
37 {
38
39 }
40
41
42 public void head_()
43 {
44
45 }
46
47
48 public void body()
49 {
50
51 }
52
53
54 public void body_()
55 {
56
57 }
58
59
60 public void section1()
61 {
62
63 }
64
65
66 public void section1_()
67 {
68
69 }
70
71
72 public void section2()
73 {
74
75 }
76
77
78 public void section2_()
79 {
80
81 }
82
83
84 public void section3()
85 {
86
87 }
88
89
90 public void section3_()
91 {
92
93 }
94
95
96 public void section4()
97 {
98
99 }
100
101
102 public void section4_()
103 {
104
105 }
106
107
108 public void section5()
109 {
110
111 }
112
113
114 public void section5_()
115 {
116
117 }
118
119
120 public void list()
121 {
122
123 }
124
125
126 public void list_()
127 {
128
129 }
130
131
132 public void listItem()
133 {
134
135 }
136
137
138 public void listItem_()
139 {
140
141 }
142
143
144 public void numberedList( int numbering )
145 {
146
147 }
148
149
150 public void numberedList_()
151 {
152
153 }
154
155
156 public void numberedListItem()
157 {
158
159 }
160
161
162 public void numberedListItem_()
163 {
164
165 }
166
167
168 public void definitionList()
169 {
170
171 }
172
173
174 public void definitionList_()
175 {
176
177 }
178
179
180 public void definitionListItem()
181 {
182
183 }
184
185
186 public void definitionListItem_()
187 {
188
189 }
190
191
192 public void definition()
193 {
194
195 }
196
197
198 public void definition_()
199 {
200
201 }
202
203
204 public void figure()
205 {
206
207 }
208
209
210 public void figure_()
211 {
212
213 }
214
215
216 public void table()
217 {
218
219 }
220
221
222 public void table_()
223 {
224
225 }
226
227
228 public void tableRows( int[] justification, boolean grid )
229 {
230
231 }
232
233
234 public void tableRows_()
235 {
236
237 }
238
239
240 public void tableRow()
241 {
242
243 }
244
245
246 public void tableRow_()
247 {
248
249 }
250
251
252 public void title()
253 {
254
255 }
256
257
258 public void title_()
259 {
260
261 }
262
263
264 public void author()
265 {
266
267 }
268
269
270 public void author_()
271 {
272
273 }
274
275
276 public void date()
277 {
278
279 }
280
281
282 public void date_()
283 {
284
285 }
286
287
288 public void sectionTitle()
289 {
290
291 }
292
293
294 public void sectionTitle_()
295 {
296
297 }
298
299
300 public void sectionTitle1()
301 {
302
303 }
304
305
306 public void sectionTitle1_()
307 {
308
309 }
310
311
312 public void sectionTitle2()
313 {
314
315 }
316
317
318 public void sectionTitle2_()
319 {
320
321 }
322
323
324 public void sectionTitle3()
325 {
326
327 }
328
329
330 public void sectionTitle3_()
331 {
332
333 }
334
335
336 public void sectionTitle4()
337 {
338
339 }
340
341
342 public void sectionTitle4_()
343 {
344
345 }
346
347
348 public void sectionTitle5()
349 {
350
351 }
352
353
354 public void sectionTitle5_()
355 {
356
357 }
358
359
360 public void paragraph()
361 {
362
363 }
364
365
366 public void paragraph_()
367 {
368
369 }
370
371
372 public void verbatim( boolean boxed )
373 {
374
375 }
376
377
378 public void verbatim_()
379 {
380
381 }
382
383
384 public void definedTerm()
385 {
386
387 }
388
389
390 public void definedTerm_()
391 {
392
393 }
394
395
396 public void figureCaption()
397 {
398
399 }
400
401
402 public void figureCaption_()
403 {
404
405 }
406
407
408 public void tableCell()
409 {
410
411 }
412
413
414 public void tableCell( String width )
415 {
416
417 }
418
419
420 public void tableCell_()
421 {
422
423 }
424
425
426 public void tableHeaderCell()
427 {
428
429 }
430
431
432 public void tableHeaderCell( String width )
433 {
434
435 }
436
437
438 public void tableHeaderCell_()
439 {
440
441 }
442
443
444 public void tableCaption()
445 {
446
447 }
448
449
450 public void tableCaption_()
451 {
452
453 }
454
455
456 public void figureGraphics( String name )
457 {
458
459 }
460
461
462 public void horizontalRule()
463 {
464
465 }
466
467
468 public void pageBreak()
469 {
470
471 }
472
473
474 public void anchor( String name )
475 {
476
477 }
478
479
480 public void anchor_()
481 {
482
483 }
484
485
486 public void link( String name )
487 {
488
489 }
490
491
492 public void link_()
493 {
494
495 }
496
497
498 public void italic()
499 {
500
501 }
502
503
504 public void italic_()
505 {
506
507 }
508
509
510 public void bold()
511 {
512
513 }
514
515
516 public void bold_()
517 {
518
519 }
520
521
522 public void monospaced()
523 {
524
525 }
526
527
528 public void monospaced_()
529 {
530
531 }
532
533
534 public void lineBreak()
535 {
536
537 }
538
539
540 public void nonBreakingSpace()
541 {
542
543 }
544
545
546 public void text( String text )
547 {
548
549 }
550
551
552 public void rawText( String text )
553 {
554
555 }
556
557
558 public void comment( String comment )
559 {
560
561 }
562
563
564 public void flush()
565 {
566
567 }
568
569
570 public void close()
571 {
572
573 }
574
575 public void head( SinkEventAttributes attributes )
576 {
577 head();
578 }
579
580
581 public void title( SinkEventAttributes attributes )
582 {
583 title();
584 }
585
586
587 public void author( SinkEventAttributes attributes )
588 {
589 author();
590 }
591
592
593 public void date( SinkEventAttributes attributes )
594 {
595 date();
596 }
597
598
599 public void body( SinkEventAttributes attributes )
600 {
601 body();
602 }
603
604
605 public void section( int level, SinkEventAttributes attributes )
606 {
607 if ( level == SECTION_LEVEL_1 )
608 {
609 section1();
610 }
611 else if ( level == SECTION_LEVEL_2 )
612 {
613 section2();
614 }
615 else if ( level == SECTION_LEVEL_3 )
616 {
617 section3();
618 }
619 else if ( level == SECTION_LEVEL_4 )
620 {
621 section4();
622 }
623 else if ( level == SECTION_LEVEL_5 )
624 {
625 section5();
626 }
627 }
628
629
630 public void section_( int level )
631 {
632 if ( level == SECTION_LEVEL_1 )
633 {
634 section1_();
635 }
636 else if ( level == SECTION_LEVEL_2 )
637 {
638 section2_();
639 }
640 else if ( level == SECTION_LEVEL_3 )
641 {
642 section3_();
643 }
644 else if ( level == SECTION_LEVEL_4 )
645 {
646 section4_();
647 }
648 else if ( level == SECTION_LEVEL_5 )
649 {
650 section5_();
651 }
652 }
653
654
655 public void sectionTitle( int level, SinkEventAttributes attributes )
656 {
657 if ( level == SECTION_LEVEL_1 )
658 {
659 sectionTitle1();
660 }
661 else if ( level == SECTION_LEVEL_2 )
662 {
663 sectionTitle2();
664 }
665 else if ( level == SECTION_LEVEL_3 )
666 {
667 sectionTitle3();
668 }
669 else if ( level == SECTION_LEVEL_4 )
670 {
671 sectionTitle4();
672 }
673 else if ( level == SECTION_LEVEL_5 )
674 {
675 sectionTitle5();
676 }
677 }
678
679
680 public void sectionTitle_( int level )
681 {
682 if ( level == SECTION_LEVEL_1 )
683 {
684 sectionTitle1_();
685 }
686 else if ( level == SECTION_LEVEL_2 )
687 {
688 sectionTitle2_();
689 }
690 else if ( level == SECTION_LEVEL_3 )
691 {
692 sectionTitle3_();
693 }
694 else if ( level == SECTION_LEVEL_4 )
695 {
696 sectionTitle4_();
697 }
698 else if ( level == SECTION_LEVEL_5 )
699 {
700 sectionTitle5_();
701 }
702 }
703
704
705 public void list( SinkEventAttributes attributes )
706 {
707 list();
708 }
709
710
711 public void listItem( SinkEventAttributes attributes )
712 {
713 listItem();
714 }
715
716
717 public void numberedList( int numbering, SinkEventAttributes attributes )
718 {
719 numberedList( numbering );
720 }
721
722
723 public void numberedListItem( SinkEventAttributes attributes )
724 {
725 numberedListItem();
726 }
727
728
729 public void definitionList( SinkEventAttributes attributes )
730 {
731 definitionList();
732 }
733
734
735 public void definitionListItem( SinkEventAttributes attributes )
736 {
737 definitionListItem();
738 }
739
740
741 public void definition( SinkEventAttributes attributes )
742 {
743 definition();
744 }
745
746
747 public void definedTerm( SinkEventAttributes attributes )
748 {
749 definedTerm();
750 }
751
752
753 public void figure( SinkEventAttributes attributes )
754 {
755 figure();
756 }
757
758
759 public void figureCaption( SinkEventAttributes attributes )
760 {
761 figureCaption();
762 }
763
764
765 public void figureGraphics( String src, SinkEventAttributes attributes )
766 {
767 figureGraphics( src );
768 }
769
770
771 public void table( SinkEventAttributes attributes )
772 {
773 table();
774 }
775
776
777 public void tableRow( SinkEventAttributes attributes )
778 {
779 tableRow();
780 }
781
782
783 public void tableCell( SinkEventAttributes attributes )
784 {
785 tableCell();
786 }
787
788
789 public void tableHeaderCell( SinkEventAttributes attributes )
790 {
791 tableHeaderCell();
792 }
793
794
795 public void tableCaption( SinkEventAttributes attributes )
796 {
797 tableCaption();
798 }
799
800
801 public void paragraph( SinkEventAttributes attributes )
802 {
803 paragraph();
804 }
805
806
807 public void verbatim( SinkEventAttributes attributes )
808 {
809 MutableAttributeSet atts = SinkUtils.filterAttributes( attributes, SinkUtils.SINK_VERBATIM_ATTRIBUTES );
810
811 boolean boxed = false;
812
813 if ( atts != null && atts.isDefined( SinkEventAttributes.DECORATION ) )
814 {
815 boxed = "boxed".equals( atts.getAttribute( SinkEventAttributes.DECORATION ).toString() );
816 }
817
818 verbatim( boxed );
819 }
820
821
822 public void horizontalRule( SinkEventAttributes attributes )
823 {
824 horizontalRule();
825 }
826
827
828 public void anchor( String name, SinkEventAttributes attributes )
829 {
830 anchor( name );
831 }
832
833
834 public void link( String name, SinkEventAttributes attributes )
835 {
836 link( name );
837 }
838
839
840 public void lineBreak( SinkEventAttributes attributes )
841 {
842 lineBreak();
843 }
844
845
846 public void text( String text, SinkEventAttributes attributes )
847 {
848 text( text );
849 }
850
851
852 public void unknown( String name, Object[] requiredParams, SinkEventAttributes attributes )
853 {
854
855 }
856 }