1 | package org.apache.maven.doxia.module.docbook; | |
2 | ||
3 | /* | |
4 | * Licensed to the Apache Software Foundation (ASF) under one | |
5 | * or more contributor license agreements. See the NOTICE file | |
6 | * distributed with this work for additional information | |
7 | * regarding copyright ownership. The ASF licenses this file | |
8 | * to you under the Apache License, Version 2.0 (the | |
9 | * "License"); you may not use this file except in compliance | |
10 | * with the License. You may obtain a copy of the License at | |
11 | * | |
12 | * http://www.apache.org/licenses/LICENSE-2.0 | |
13 | * | |
14 | * Unless required by applicable law or agreed to in writing, | |
15 | * software distributed under the License is distributed on an | |
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
17 | * KIND, either express or implied. See the License for the | |
18 | * specific language governing permissions and limitations | |
19 | * under the License. | |
20 | */ | |
21 | ||
22 | import javax.swing.text.html.HTML.Tag; | |
23 | ||
24 | import org.apache.maven.doxia.markup.XmlMarkup; | |
25 | ||
26 | /** | |
27 | * List of <code>Simplified DocBook</code> markups. | |
28 | * Contains all 119 elements of the | |
29 | * <a href="http://www.docbook.org/schemas/sdocbook/elements.html">Simplified DocBook DTD v. 1.1</a>. | |
30 | * | |
31 | * @author ltheussl | |
32 | * @version $Id: SimplifiedDocbookMarkup.java 778398 2009-05-25 11:55:37Z ltheussl $ | |
33 | * @since 1.1.1 | |
34 | */ | |
35 | public interface SimplifiedDocbookMarkup | |
36 | extends XmlMarkup | |
37 | { | |
38 | /** DocBook XML V1.1 XML public identifier: "-//OASIS//DTD Simplified DocBook XML V1.1//EN". */ | |
39 | String DEFAULT_XML_PUBLIC_ID = "-//OASIS//DTD Simplified DocBook XML V1.1//EN"; | |
40 | ||
41 | /** DocBook XML V1.1 XML system identifier: "http://www.oasis-open.org/docbook/xml/simple/1.1/sdocbook.dtd". */ | |
42 | String DEFAULT_XML_SYSTEM_ID = "http://www.oasis-open.org/docbook/xml/simple/1.1/sdocbook.dtd"; | |
43 | ||
44 | // ---------------------------------------------------------------------- | |
45 | // 119 Simplified DocBook elements | |
46 | // ---------------------------------------------------------------------- | |
47 | ||
48 | /** DocBook tag for <code>abbrev</code>. */ | |
49 | Tag ABBREV_TAG = new Tag() | |
50 | { | |
51 | /** {@inheritDoc} */ | |
52 | 2 | public String toString() |
53 | { | |
54 | 2 | return "abbrev"; |
55 | } | |
56 | }; | |
57 | ||
58 | /** DocBook tag for <code>abstract</code>. */ | |
59 | Tag ABSTRACT_TAG = new Tag() | |
60 | { | |
61 | /** {@inheritDoc} */ | |
62 | 2 | public String toString() |
63 | { | |
64 | 2 | return "abstract"; |
65 | } | |
66 | }; | |
67 | ||
68 | /** DocBook tag for <code>acronym</code>. */ | |
69 | Tag ACRONYM_TAG = new Tag() | |
70 | { | |
71 | /** {@inheritDoc} */ | |
72 | 2 | public String toString() |
73 | { | |
74 | 0 | return "acronym"; |
75 | } | |
76 | }; | |
77 | ||
78 | /** DocBook tag for <code>affiliation</code>. */ | |
79 | Tag AFFILIATION_TAG = new Tag() | |
80 | { | |
81 | /** {@inheritDoc} */ | |
82 | 2 | public String toString() |
83 | { | |
84 | 0 | return "affiliation"; |
85 | } | |
86 | }; | |
87 | ||
88 | /** DocBook tag for <code>anchor</code>. */ | |
89 | Tag ANCHOR_TAG = new Tag() | |
90 | { | |
91 | /** {@inheritDoc} */ | |
92 | 2 | public String toString() |
93 | { | |
94 | 130 | return "anchor"; |
95 | } | |
96 | }; | |
97 | ||
98 | /** DocBook tag for <code>appendix</code>. */ | |
99 | Tag APPENDIX_TAG = new Tag() | |
100 | { | |
101 | /** {@inheritDoc} */ | |
102 | 2 | public String toString() |
103 | { | |
104 | 2 | return "appendix"; |
105 | } | |
106 | }; | |
107 | ||
108 | /** DocBook tag for <code>article</code>. */ | |
109 | Tag ARTICLE_TAG = new Tag() | |
110 | { | |
111 | /** {@inheritDoc} */ | |
112 | 2 | public String toString() |
113 | { | |
114 | 4410 | return "article"; |
115 | } | |
116 | }; | |
117 | ||
118 | /** DocBook tag for <code>articleinfo</code>. */ | |
119 | Tag ARTICLEINFO_TAG = new Tag() | |
120 | { | |
121 | /** {@inheritDoc} */ | |
122 | 2 | public String toString() |
123 | { | |
124 | 7542 | return "articleinfo"; |
125 | } | |
126 | }; | |
127 | ||
128 | /** DocBook tag for <code>attribution</code>. */ | |
129 | Tag ATTRIBUTION_TAG = new Tag() | |
130 | { | |
131 | /** {@inheritDoc} */ | |
132 | 2 | public String toString() |
133 | { | |
134 | 2 | return "attribution"; |
135 | } | |
136 | }; | |
137 | ||
138 | /** DocBook tag for <code>audiodata</code>. */ | |
139 | Tag AUDIODATA_TAG = new Tag() | |
140 | { | |
141 | /** {@inheritDoc} */ | |
142 | 2 | public String toString() |
143 | { | |
144 | 0 | return "audiodata"; |
145 | } | |
146 | }; | |
147 | ||
148 | /** DocBook tag for <code>audioobject</code>. */ | |
149 | Tag AUDIOOBJECT_TAG = new Tag() | |
150 | { | |
151 | /** {@inheritDoc} */ | |
152 | 2 | public String toString() |
153 | { | |
154 | 6254 | return "audioobject"; |
155 | } | |
156 | }; | |
157 | ||
158 | /** DocBook tag for <code>author</code>. */ | |
159 | Tag AUTHOR_TAG = new Tag() | |
160 | { | |
161 | /** {@inheritDoc} */ | |
162 | 2 | public String toString() |
163 | { | |
164 | 0 | return "author"; |
165 | } | |
166 | }; | |
167 | ||
168 | /** DocBook tag for <code>authorblurb</code>. */ | |
169 | Tag AUTHORBLURB_TAG = new Tag() | |
170 | { | |
171 | /** {@inheritDoc} */ | |
172 | 2 | public String toString() |
173 | { | |
174 | 2 | return "authorblurb"; |
175 | } | |
176 | }; | |
177 | ||
178 | /** DocBook tag for <code>authorgroup</code>. */ | |
179 | Tag AUTHORGROUP_TAG = new Tag() | |
180 | { | |
181 | /** {@inheritDoc} */ | |
182 | 2 | public String toString() |
183 | { | |
184 | 0 | return "authorgroup"; |
185 | } | |
186 | }; | |
187 | ||
188 | /** DocBook tag for <code>authorinitials</code>. */ | |
189 | Tag AUTHORINITIALS_TAG = new Tag() | |
190 | { | |
191 | /** {@inheritDoc} */ | |
192 | 2 | public String toString() |
193 | { | |
194 | 0 | return "authorinitials"; |
195 | } | |
196 | }; | |
197 | ||
198 | /** DocBook tag for <code>bibliodiv</code>. */ | |
199 | Tag BIBLIODIV_TAG = new Tag() | |
200 | { | |
201 | /** {@inheritDoc} */ | |
202 | 2 | public String toString() |
203 | { | |
204 | 2 | return "bibliodiv"; |
205 | } | |
206 | }; | |
207 | ||
208 | /** DocBook tag for <code>bibliography</code>. */ | |
209 | Tag BIBLIOGRAPHY_TAG = new Tag() | |
210 | { | |
211 | /** {@inheritDoc} */ | |
212 | 2 | public String toString() |
213 | { | |
214 | 2 | return "bibliography"; |
215 | } | |
216 | }; | |
217 | ||
218 | /** DocBook tag for <code>bibliomisc</code>. */ | |
219 | Tag BIBLIOMISC_TAG = new Tag() | |
220 | { | |
221 | /** {@inheritDoc} */ | |
222 | 2 | public String toString() |
223 | { | |
224 | 0 | return "bibliomisc"; |
225 | } | |
226 | }; | |
227 | ||
228 | /** DocBook tag for <code>bibliomixed</code>. */ | |
229 | Tag BIBLIOMIXED_TAG = new Tag() | |
230 | { | |
231 | /** {@inheritDoc} */ | |
232 | 2 | public String toString() |
233 | { | |
234 | 2 | return "bibliomixed"; |
235 | } | |
236 | }; | |
237 | ||
238 | /** DocBook tag for <code>bibliomset</code>. */ | |
239 | Tag BIBLIOMSET_TAG = new Tag() | |
240 | { | |
241 | /** {@inheritDoc} */ | |
242 | 2 | public String toString() |
243 | { | |
244 | 2 | return "bibliomset"; |
245 | } | |
246 | }; | |
247 | ||
248 | /** DocBook tag for <code>blockquote</code>. */ | |
249 | Tag BLOCKQUOTE_TAG = new Tag() | |
250 | { | |
251 | /** {@inheritDoc} */ | |
252 | 2 | public String toString() |
253 | { | |
254 | 0 | return "blockquote"; |
255 | } | |
256 | }; | |
257 | ||
258 | /** DocBook tag for <code>caption</code>. */ | |
259 | Tag CAPTION_TAG = new Tag() | |
260 | { | |
261 | /** {@inheritDoc} */ | |
262 | 2 | public String toString() |
263 | { | |
264 | 2954 | return "caption"; |
265 | } | |
266 | }; | |
267 | ||
268 | /** DocBook tag for <code>citetitle</code>. */ | |
269 | Tag CITETITLE_TAG = new Tag() | |
270 | { | |
271 | /** {@inheritDoc} */ | |
272 | 2 | public String toString() |
273 | { | |
274 | 2 | return "citetitle"; |
275 | } | |
276 | }; | |
277 | ||
278 | /** DocBook tag for <code>col</code>. */ | |
279 | Tag COL_TAG = new Tag() | |
280 | { | |
281 | /** {@inheritDoc} */ | |
282 | 2 | public String toString() |
283 | { | |
284 | 0 | return "col"; |
285 | } | |
286 | }; | |
287 | ||
288 | /** DocBook tag for <code>colgroup</code>. */ | |
289 | Tag COLGROUP_TAG = new Tag() | |
290 | { | |
291 | /** {@inheritDoc} */ | |
292 | 2 | public String toString() |
293 | { | |
294 | 0 | return "colgroup"; |
295 | } | |
296 | }; | |
297 | ||
298 | /** DocBook tag for <code>colspec</code>. */ | |
299 | Tag COLSPEC_TAG = new Tag() | |
300 | { | |
301 | /** {@inheritDoc} */ | |
302 | 2 | public String toString() |
303 | { | |
304 | 72 | return "colspec"; |
305 | } | |
306 | }; | |
307 | ||
308 | /** DocBook tag for <code>command</code>. */ | |
309 | Tag COMMAND_TAG = new Tag() | |
310 | { | |
311 | /** {@inheritDoc} */ | |
312 | 2 | public String toString() |
313 | { | |
314 | 2 | return "command"; |
315 | } | |
316 | }; | |
317 | ||
318 | /** DocBook tag for <code>computeroutput</code>. */ | |
319 | Tag COMPUTEROUTPUT_TAG = new Tag() | |
320 | { | |
321 | /** {@inheritDoc} */ | |
322 | 2 | public String toString() |
323 | { | |
324 | 2 | return "computeroutput"; |
325 | } | |
326 | }; | |
327 | ||
328 | /** DocBook tag for <code>copyright</code>. */ | |
329 | Tag COPYRIGHT_TAG = new Tag() | |
330 | { | |
331 | /** {@inheritDoc} */ | |
332 | 2 | public String toString() |
333 | { | |
334 | 0 | return "copyright"; |
335 | } | |
336 | }; | |
337 | ||
338 | /** DocBook tag for <code>corpauthor</code>. */ | |
339 | Tag CORPAUTHOR_TAG = new Tag() | |
340 | { | |
341 | /** {@inheritDoc} */ | |
342 | 2 | public String toString() |
343 | { | |
344 | 70 | return "corpauthor"; |
345 | } | |
346 | }; | |
347 | ||
348 | /** DocBook tag for <code>date</code>. */ | |
349 | Tag DATE_TAG = new Tag() | |
350 | { | |
351 | /** {@inheritDoc} */ | |
352 | 2 | public String toString() |
353 | { | |
354 | 62 | return "date"; |
355 | } | |
356 | }; | |
357 | ||
358 | /** DocBook tag for <code>edition</code>. */ | |
359 | Tag EDITION_TAG = new Tag() | |
360 | { | |
361 | /** {@inheritDoc} */ | |
362 | 2 | public String toString() |
363 | { | |
364 | 0 | return "edition"; |
365 | } | |
366 | }; | |
367 | ||
368 | /** DocBook tag for <code>editor</code>. */ | |
369 | Tag EDITOR_TAG = new Tag() | |
370 | { | |
371 | /** {@inheritDoc} */ | |
372 | 2 | public String toString() |
373 | { | |
374 | 0 | return "editor"; |
375 | } | |
376 | }; | |
377 | ||
378 | /** DocBook tag for <code>email</code>. */ | |
379 | Tag EMAIL_TAG = new Tag() | |
380 | { | |
381 | /** {@inheritDoc} */ | |
382 | 2 | public String toString() |
383 | { | |
384 | 148 | return "email"; |
385 | } | |
386 | }; | |
387 | ||
388 | /** DocBook tag for <code>emphasis</code>. */ | |
389 | Tag EMPHASIS_TAG = new Tag() | |
390 | { | |
391 | /** {@inheritDoc} */ | |
392 | 2 | public String toString() |
393 | { | |
394 | 2 | return "emphasis"; |
395 | } | |
396 | }; | |
397 | ||
398 | /** DocBook tag for <code>entry</code>. */ | |
399 | Tag ENTRY_TAG = new Tag() | |
400 | { | |
401 | /** {@inheritDoc} */ | |
402 | 2 | public String toString() |
403 | { | |
404 | 3992 | return "entry"; |
405 | } | |
406 | }; | |
407 | ||
408 | /** DocBook tag for <code>entrytbl</code>. */ | |
409 | Tag ENTRYTBL_TAG = new Tag() | |
410 | { | |
411 | /** {@inheritDoc} */ | |
412 | 2 | public String toString() |
413 | { | |
414 | 5644 | return "entrytbl"; |
415 | } | |
416 | }; | |
417 | ||
418 | /** DocBook tag for <code>epigraph</code>. */ | |
419 | Tag EPIGRAPH_TAG = new Tag() | |
420 | { | |
421 | /** {@inheritDoc} */ | |
422 | 2 | public String toString() |
423 | { | |
424 | 2 | return "epigraph"; |
425 | } | |
426 | }; | |
427 | ||
428 | /** DocBook tag for <code>example</code>. */ | |
429 | Tag EXAMPLE_TAG = new Tag() | |
430 | { | |
431 | /** {@inheritDoc} */ | |
432 | 2 | public String toString() |
433 | { | |
434 | 2 | return "example"; |
435 | } | |
436 | }; | |
437 | ||
438 | /** DocBook tag for <code>figure</code>. */ | |
439 | Tag FIGURE_TAG = new Tag() | |
440 | { | |
441 | /** {@inheritDoc} */ | |
442 | 2 | public String toString() |
443 | { | |
444 | 2132 | return "figure"; |
445 | } | |
446 | }; | |
447 | ||
448 | /** DocBook tag for <code>filename</code>. */ | |
449 | Tag FILENAME_TAG = new Tag() | |
450 | { | |
451 | /** {@inheritDoc} */ | |
452 | 2 | public String toString() |
453 | { | |
454 | 2 | return "filename"; |
455 | } | |
456 | }; | |
457 | ||
458 | /** DocBook tag for <code>firstname</code>. */ | |
459 | Tag FIRSTNAME_TAG = new Tag() | |
460 | { | |
461 | /** {@inheritDoc} */ | |
462 | 2 | public String toString() |
463 | { | |
464 | 0 | return "firstname"; |
465 | } | |
466 | }; | |
467 | ||
468 | /** DocBook tag for <code>footnote</code>. */ | |
469 | Tag FOOTNOTE_TAG = new Tag() | |
470 | { | |
471 | /** {@inheritDoc} */ | |
472 | 2 | public String toString() |
473 | { | |
474 | 6266 | return "footnote"; |
475 | } | |
476 | }; | |
477 | ||
478 | /** DocBook tag for <code>footnoteref</code>. */ | |
479 | Tag FOOTNOTEREF_TAG = new Tag() | |
480 | { | |
481 | /** {@inheritDoc} */ | |
482 | 2 | public String toString() |
483 | { | |
484 | 2 | return "footnoteref"; |
485 | } | |
486 | }; | |
487 | ||
488 | /** DocBook tag for <code>holder</code>. */ | |
489 | Tag HOLDER_TAG = new Tag() | |
490 | { | |
491 | /** {@inheritDoc} */ | |
492 | 2 | public String toString() |
493 | { | |
494 | 0 | return "holder"; |
495 | } | |
496 | }; | |
497 | ||
498 | /** DocBook tag for <code>honorific</code>. */ | |
499 | Tag HONORIFIC_TAG = new Tag() | |
500 | { | |
501 | /** {@inheritDoc} */ | |
502 | 2 | public String toString() |
503 | { | |
504 | 0 | return "honorific"; |
505 | } | |
506 | }; | |
507 | ||
508 | /** DocBook tag for <code>imagedata</code>. */ | |
509 | Tag IMAGEDATA_TAG = new Tag() | |
510 | { | |
511 | /** {@inheritDoc} */ | |
512 | 2 | public String toString() |
513 | { | |
514 | 1070 | return "imagedata"; |
515 | } | |
516 | }; | |
517 | ||
518 | /** DocBook tag for <code>imageobject</code>. */ | |
519 | Tag IMAGEOBJECT_TAG = new Tag() | |
520 | { | |
521 | /** {@inheritDoc} */ | |
522 | 2 | public String toString() |
523 | { | |
524 | 2190 | return "imageobject"; |
525 | } | |
526 | }; | |
527 | ||
528 | /** DocBook tag for <code>informaltable</code>. */ | |
529 | Tag INFORMALTABLE_TAG = new Tag() | |
530 | { | |
531 | /** {@inheritDoc} */ | |
532 | 2 | public String toString() |
533 | { | |
534 | 2322 | return "informaltable"; |
535 | } | |
536 | }; | |
537 | ||
538 | /** DocBook tag for <code>inlinemediaobject</code>. */ | |
539 | Tag INLINEMEDIAOBJECT_TAG = new Tag() | |
540 | { | |
541 | /** {@inheritDoc} */ | |
542 | 2 | public String toString() |
543 | { | |
544 | 2 | return "inlinemediaobject"; |
545 | } | |
546 | }; | |
547 | ||
548 | /** DocBook tag for <code>issuenum</code>. */ | |
549 | Tag ISSUENUM_TAG = new Tag() | |
550 | { | |
551 | /** {@inheritDoc} */ | |
552 | 2 | public String toString() |
553 | { | |
554 | 2 | return "issuenum"; |
555 | } | |
556 | }; | |
557 | ||
558 | /** DocBook tag for <code>itemizedlist</code>. */ | |
559 | Tag ITEMIZEDLIST_TAG = new Tag() | |
560 | { | |
561 | /** {@inheritDoc} */ | |
562 | 2 | public String toString() |
563 | { | |
564 | 3072 | return "itemizedlist"; |
565 | } | |
566 | }; | |
567 | ||
568 | /** DocBook tag for <code>jobtitle</code>. */ | |
569 | Tag JOBTITLE_TAG = new Tag() | |
570 | { | |
571 | /** {@inheritDoc} */ | |
572 | 2 | public String toString() |
573 | { | |
574 | 0 | return "jobtitle"; |
575 | } | |
576 | }; | |
577 | ||
578 | /** DocBook tag for <code>keyword</code>. */ | |
579 | Tag KEYWORD_TAG = new Tag() | |
580 | { | |
581 | /** {@inheritDoc} */ | |
582 | 2 | public String toString() |
583 | { | |
584 | 0 | return "keyword"; |
585 | } | |
586 | }; | |
587 | ||
588 | /** DocBook tag for <code>keywordset</code>. */ | |
589 | Tag KEYWORDSET_TAG = new Tag() | |
590 | { | |
591 | /** {@inheritDoc} */ | |
592 | 2 | public String toString() |
593 | { | |
594 | 0 | return "keywordset"; |
595 | } | |
596 | }; | |
597 | ||
598 | /** DocBook tag for <code>legalnotice</code>. */ | |
599 | Tag LEGALNOTICE_TAG = new Tag() | |
600 | { | |
601 | /** {@inheritDoc} */ | |
602 | 2 | public String toString() |
603 | { | |
604 | 0 | return "legalnotice"; |
605 | } | |
606 | }; | |
607 | ||
608 | /** DocBook tag for <code>lineage</code>. */ | |
609 | Tag LINEAGE_TAG = new Tag() | |
610 | { | |
611 | /** {@inheritDoc} */ | |
612 | 2 | public String toString() |
613 | { | |
614 | 0 | return "lineage"; |
615 | } | |
616 | }; | |
617 | ||
618 | /** DocBook tag for <code>lineannotation</code>. */ | |
619 | Tag LINEANNOTATION_TAG = new Tag() | |
620 | { | |
621 | /** {@inheritDoc} */ | |
622 | 2 | public String toString() |
623 | { | |
624 | 2 | return "lineannotation"; |
625 | } | |
626 | }; | |
627 | ||
628 | /** DocBook tag for <code>link</code>. */ | |
629 | Tag LINK_TAG = new Tag() | |
630 | { | |
631 | /** {@inheritDoc} */ | |
632 | 2 | public String toString() |
633 | { | |
634 | 334 | return "link"; |
635 | } | |
636 | }; | |
637 | ||
638 | /** DocBook tag for <code>listitem</code>. */ | |
639 | Tag LISTITEM_TAG = new Tag() | |
640 | { | |
641 | /** {@inheritDoc} */ | |
642 | 2 | public String toString() |
643 | { | |
644 | 4212 | return "listitem"; |
645 | } | |
646 | }; | |
647 | ||
648 | /** DocBook tag for <code>literal</code>. */ | |
649 | Tag LITERAL_TAG = new Tag() | |
650 | { | |
651 | /** {@inheritDoc} */ | |
652 | 2 | public String toString() |
653 | { | |
654 | 2 | return "literal"; |
655 | } | |
656 | }; | |
657 | ||
658 | /** DocBook tag for <code>literallayout</code>. */ | |
659 | Tag LITERALLAYOUT_TAG = new Tag() | |
660 | { | |
661 | /** {@inheritDoc} */ | |
662 | 2 | public String toString() |
663 | { | |
664 | 2 | return "literallayout"; |
665 | } | |
666 | }; | |
667 | ||
668 | /** DocBook tag for <code>mediaobject</code>. */ | |
669 | Tag MEDIAOBJECT_TAG = new Tag() | |
670 | { | |
671 | /** {@inheritDoc} */ | |
672 | 2 | public String toString() |
673 | { | |
674 | 2258 | return "mediaobject"; |
675 | } | |
676 | }; | |
677 | ||
678 | /** DocBook tag for <code>note</code>. */ | |
679 | Tag NOTE_TAG = new Tag() | |
680 | { | |
681 | /** {@inheritDoc} */ | |
682 | 2 | public String toString() |
683 | { | |
684 | 0 | return "note"; |
685 | } | |
686 | }; | |
687 | ||
688 | /** DocBook tag for <code>objectinfo</code>. */ | |
689 | Tag OBJECTINFO_TAG = new Tag() | |
690 | { | |
691 | /** {@inheritDoc} */ | |
692 | 2 | public String toString() |
693 | { | |
694 | 0 | return "objectinfo"; |
695 | } | |
696 | }; | |
697 | ||
698 | /** DocBook tag for <code>option</code>. */ | |
699 | Tag OPTION_TAG = new Tag() | |
700 | { | |
701 | /** {@inheritDoc} */ | |
702 | 2 | public String toString() |
703 | { | |
704 | 2 | return "option"; |
705 | } | |
706 | }; | |
707 | ||
708 | /** DocBook tag for <code>orderedlist</code>. */ | |
709 | Tag ORDEREDLIST_TAG = new Tag() | |
710 | { | |
711 | /** {@inheritDoc} */ | |
712 | 2 | public String toString() |
713 | { | |
714 | 3378 | return "orderedlist"; |
715 | } | |
716 | }; | |
717 | ||
718 | /** DocBook tag for <code>orgname</code>. */ | |
719 | Tag ORGNAME_TAG = new Tag() | |
720 | { | |
721 | /** {@inheritDoc} */ | |
722 | 2 | public String toString() |
723 | { | |
724 | 0 | return "orgname"; |
725 | } | |
726 | }; | |
727 | ||
728 | /** DocBook tag for <code>othercredit</code>. */ | |
729 | Tag OTHERCREDIT_TAG = new Tag() | |
730 | { | |
731 | /** {@inheritDoc} */ | |
732 | 2 | public String toString() |
733 | { | |
734 | 0 | return "othercredit"; |
735 | } | |
736 | }; | |
737 | ||
738 | /** DocBook tag for <code>othername</code>. */ | |
739 | Tag OTHERNAME_TAG = new Tag() | |
740 | { | |
741 | /** {@inheritDoc} */ | |
742 | 2 | public String toString() |
743 | { | |
744 | 0 | return "othername"; |
745 | } | |
746 | }; | |
747 | ||
748 | /** DocBook tag for <code>para</code>. */ | |
749 | Tag PARA_TAG = new Tag() | |
750 | { | |
751 | /** {@inheritDoc} */ | |
752 | 2 | public String toString() |
753 | { | |
754 | 2110 | return "para"; |
755 | } | |
756 | }; | |
757 | ||
758 | /** DocBook tag for <code>phrase</code>. */ | |
759 | Tag PHRASE_TAG = new Tag() | |
760 | { | |
761 | /** {@inheritDoc} */ | |
762 | 2 | public String toString() |
763 | { | |
764 | 2 | return "phrase"; |
765 | } | |
766 | }; | |
767 | ||
768 | /** DocBook tag for <code>programlisting</code>. */ | |
769 | Tag PROGRAMLISTING_TAG = new Tag() | |
770 | { | |
771 | /** {@inheritDoc} */ | |
772 | 2 | public String toString() |
773 | { | |
774 | 42 | return "programlisting"; |
775 | } | |
776 | }; | |
777 | ||
778 | /** DocBook tag for <code>pubdate</code>. */ | |
779 | Tag PUBDATE_TAG = new Tag() | |
780 | { | |
781 | /** {@inheritDoc} */ | |
782 | 2 | public String toString() |
783 | { | |
784 | 2 | return "pubdate"; |
785 | } | |
786 | }; | |
787 | ||
788 | /** DocBook tag for <code>publishername</code>. */ | |
789 | Tag PUBLISHERNAME_TAG = new Tag() | |
790 | { | |
791 | /** {@inheritDoc} */ | |
792 | 2 | public String toString() |
793 | { | |
794 | 2 | return "publishername"; |
795 | } | |
796 | }; | |
797 | ||
798 | /** DocBook tag for <code>quote</code>. */ | |
799 | Tag QUOTE_TAG = new Tag() | |
800 | { | |
801 | /** {@inheritDoc} */ | |
802 | 2 | public String toString() |
803 | { | |
804 | 258 | return "quote"; |
805 | } | |
806 | }; | |
807 | ||
808 | /** DocBook tag for <code>releaseinfo</code>. */ | |
809 | Tag RELEASEINFO_TAG = new Tag() | |
810 | { | |
811 | /** {@inheritDoc} */ | |
812 | 2 | public String toString() |
813 | { | |
814 | 0 | return "releaseinfo"; |
815 | } | |
816 | }; | |
817 | ||
818 | /** DocBook tag for <code>replaceable</code>. */ | |
819 | Tag REPLACEABLE_TAG = new Tag() | |
820 | { | |
821 | /** {@inheritDoc} */ | |
822 | 2 | public String toString() |
823 | { | |
824 | 4 | return "replaceable"; |
825 | } | |
826 | }; | |
827 | ||
828 | /** DocBook tag for <code>revdescription</code>. */ | |
829 | Tag REVDESCRIPTION_TAG = new Tag() | |
830 | { | |
831 | /** {@inheritDoc} */ | |
832 | 2 | public String toString() |
833 | { | |
834 | 0 | return "revdescription"; |
835 | } | |
836 | }; | |
837 | ||
838 | /** DocBook tag for <code>revhistory</code>. */ | |
839 | Tag REVHISTORY_TAG = new Tag() | |
840 | { | |
841 | /** {@inheritDoc} */ | |
842 | 2 | public String toString() |
843 | { | |
844 | 0 | return "revhistory"; |
845 | } | |
846 | }; | |
847 | ||
848 | /** DocBook tag for <code>revision</code>. */ | |
849 | Tag REVISION_TAG = new Tag() | |
850 | { | |
851 | /** {@inheritDoc} */ | |
852 | 2 | public String toString() |
853 | { | |
854 | 0 | return "revision"; |
855 | } | |
856 | }; | |
857 | ||
858 | /** DocBook tag for <code>revnumber</code>. */ | |
859 | Tag REVNUMBER_TAG = new Tag() | |
860 | { | |
861 | /** {@inheritDoc} */ | |
862 | 2 | public String toString() |
863 | { | |
864 | 0 | return "revnumber"; |
865 | } | |
866 | }; | |
867 | ||
868 | /** DocBook tag for <code>revremark</code>. */ | |
869 | Tag REVREMARK_TAG = new Tag() | |
870 | { | |
871 | /** {@inheritDoc} */ | |
872 | 2 | public String toString() |
873 | { | |
874 | 0 | return "revremark"; |
875 | } | |
876 | }; | |
877 | ||
878 | /** DocBook tag for <code>row</code>. */ | |
879 | Tag ROW_TAG = new Tag() | |
880 | { | |
881 | /** {@inheritDoc} */ | |
882 | 2 | public String toString() |
883 | { | |
884 | 2086 | return "row"; |
885 | } | |
886 | }; | |
887 | ||
888 | /** DocBook tag for <code>section</code>. */ | |
889 | Tag SECTION_TAG = new Tag() | |
890 | { | |
891 | /** {@inheritDoc} */ | |
892 | 2 | public String toString() |
893 | { | |
894 | 380 | return "section"; |
895 | } | |
896 | }; | |
897 | ||
898 | /** DocBook tag for <code>sectioninfo</code>. */ | |
899 | Tag SECTIONINFO_TAG = new Tag() | |
900 | { | |
901 | /** {@inheritDoc} */ | |
902 | 2 | public String toString() |
903 | { | |
904 | 6238 | return "sectioninfo"; |
905 | } | |
906 | }; | |
907 | ||
908 | /** DocBook tag for <code>sidebar</code>. */ | |
909 | Tag SIDEBAR_TAG = new Tag() | |
910 | { | |
911 | /** {@inheritDoc} */ | |
912 | 2 | public String toString() |
913 | { | |
914 | 0 | return "sidebar"; |
915 | } | |
916 | }; | |
917 | ||
918 | /** DocBook tag for <code>spanspec</code>. */ | |
919 | Tag SPANSPEC_TAG = new Tag() | |
920 | { | |
921 | /** {@inheritDoc} */ | |
922 | 2 | public String toString() |
923 | { | |
924 | 2 | return "spanspec"; |
925 | } | |
926 | }; | |
927 | ||
928 | /** DocBook tag for <code>subject</code>. */ | |
929 | Tag SUBJECT_TAG = new Tag() | |
930 | { | |
931 | /** {@inheritDoc} */ | |
932 | 2 | public String toString() |
933 | { | |
934 | 0 | return "subject"; |
935 | } | |
936 | }; | |
937 | ||
938 | /** DocBook tag for <code>subjectset</code>. */ | |
939 | Tag SUBJECTSET_TAG = new Tag() | |
940 | { | |
941 | /** {@inheritDoc} */ | |
942 | 2 | public String toString() |
943 | { | |
944 | 0 | return "subjectset"; |
945 | } | |
946 | }; | |
947 | ||
948 | /** DocBook tag for <code>subjectterm</code>. */ | |
949 | Tag SUBJECTTERM_TAG = new Tag() | |
950 | { | |
951 | /** {@inheritDoc} */ | |
952 | 2 | public String toString() |
953 | { | |
954 | 0 | return "subjectterm"; |
955 | } | |
956 | }; | |
957 | ||
958 | /** DocBook tag for <code>subscript</code>. */ | |
959 | Tag SUBSCRIPT_TAG = new Tag() | |
960 | { | |
961 | /** {@inheritDoc} */ | |
962 | 2 | public String toString() |
963 | { | |
964 | 0 | return "subscript"; |
965 | } | |
966 | }; | |
967 | ||
968 | /** DocBook tag for <code>subtitle</code>. */ | |
969 | Tag SUBTITLE_TAG = new Tag() | |
970 | { | |
971 | /** {@inheritDoc} */ | |
972 | 2 | public String toString() |
973 | { | |
974 | 2 | return "subtitle"; |
975 | } | |
976 | }; | |
977 | ||
978 | /** DocBook tag for <code>superscript</code>. */ | |
979 | Tag SUPERSCRIPT_TAG = new Tag() | |
980 | { | |
981 | /** {@inheritDoc} */ | |
982 | 2 | public String toString() |
983 | { | |
984 | 0 | return "superscript"; |
985 | } | |
986 | }; | |
987 | ||
988 | /** DocBook tag for <code>surname</code>. */ | |
989 | Tag SURNAME_TAG = new Tag() | |
990 | { | |
991 | /** {@inheritDoc} */ | |
992 | 2 | public String toString() |
993 | { | |
994 | 0 | return "surname"; |
995 | } | |
996 | }; | |
997 | ||
998 | /** DocBook tag for <code>systemitem</code>. */ | |
999 | Tag SYSTEMITEM_TAG = new Tag() | |
1000 | { | |
1001 | /** {@inheritDoc} */ | |
1002 | 2 | public String toString() |
1003 | { | |
1004 | 4 | return "systemitem"; |
1005 | } | |
1006 | }; | |
1007 | ||
1008 | /** DocBook tag for <code>table</code>. */ | |
1009 | Tag TABLE_TAG = new Tag() | |
1010 | { | |
1011 | /** {@inheritDoc} */ | |
1012 | 2 | public String toString() |
1013 | { | |
1014 | 2338 | return "table"; |
1015 | } | |
1016 | }; | |
1017 | ||
1018 | /** DocBook tag for <code>tbody</code>. */ | |
1019 | Tag TBODY_TAG = new Tag() | |
1020 | { | |
1021 | /** {@inheritDoc} */ | |
1022 | 2 | public String toString() |
1023 | { | |
1024 | 2104 | return "tbody"; |
1025 | } | |
1026 | }; | |
1027 | ||
1028 | /** DocBook tag for <code>td</code>. */ | |
1029 | Tag TD_TAG = new Tag() | |
1030 | { | |
1031 | /** {@inheritDoc} */ | |
1032 | 2 | public String toString() |
1033 | { | |
1034 | 0 | return "td"; |
1035 | } | |
1036 | }; | |
1037 | ||
1038 | /** DocBook tag for <code>term</code>. */ | |
1039 | Tag TERM_TAG = new Tag() | |
1040 | { | |
1041 | /** {@inheritDoc} */ | |
1042 | 2 | public String toString() |
1043 | { | |
1044 | 2248 | return "term"; |
1045 | } | |
1046 | }; | |
1047 | ||
1048 | /** DocBook tag for <code>textdata</code>. */ | |
1049 | Tag TEXTDATA_TAG = new Tag() | |
1050 | { | |
1051 | /** {@inheritDoc} */ | |
1052 | 2 | public String toString() |
1053 | { | |
1054 | 0 | return "textdata"; |
1055 | } | |
1056 | }; | |
1057 | ||
1058 | /** DocBook tag for <code>textobject</code>. */ | |
1059 | Tag TEXTOBJECT_TAG = new Tag() | |
1060 | { | |
1061 | /** {@inheritDoc} */ | |
1062 | 2 | public String toString() |
1063 | { | |
1064 | 2 | return "textobject"; |
1065 | } | |
1066 | }; | |
1067 | ||
1068 | /** DocBook tag for <code>tfoot</code>. */ | |
1069 | Tag TFOOT_TAG = new Tag() | |
1070 | { | |
1071 | /** {@inheritDoc} */ | |
1072 | 2 | public String toString() |
1073 | { | |
1074 | 2056 | return "tfoot"; |
1075 | } | |
1076 | }; | |
1077 | ||
1078 | /** DocBook tag for <code>tgroup</code>. */ | |
1079 | Tag TGROUP_TAG = new Tag() | |
1080 | { | |
1081 | /** {@inheritDoc} */ | |
1082 | 2 | public String toString() |
1083 | { | |
1084 | 1988 | return "tgroup"; |
1085 | } | |
1086 | }; | |
1087 | ||
1088 | /** DocBook tag for <code>th</code>. */ | |
1089 | Tag TH_TAG = new Tag() | |
1090 | { | |
1091 | /** {@inheritDoc} */ | |
1092 | 2 | public String toString() |
1093 | { | |
1094 | 1814 | return "th"; |
1095 | } | |
1096 | }; | |
1097 | ||
1098 | /** DocBook tag for <code>thead</code>. */ | |
1099 | Tag THEAD_TAG = new Tag() | |
1100 | { | |
1101 | /** {@inheritDoc} */ | |
1102 | 2 | public String toString() |
1103 | { | |
1104 | 2352 | return "thead"; |
1105 | } | |
1106 | }; | |
1107 | ||
1108 | /** DocBook tag for <code>title</code>. */ | |
1109 | Tag TITLE_TAG = new Tag() | |
1110 | { | |
1111 | /** {@inheritDoc} */ | |
1112 | 2 | public String toString() |
1113 | { | |
1114 | 878 | return "title"; |
1115 | } | |
1116 | }; | |
1117 | ||
1118 | /** DocBook tag for <code>titleabbrev</code>. */ | |
1119 | Tag TITLEABBREV_TAG = new Tag() | |
1120 | { | |
1121 | /** {@inheritDoc} */ | |
1122 | 2 | public String toString() |
1123 | { | |
1124 | 2 | return "titleabbrev"; |
1125 | } | |
1126 | }; | |
1127 | ||
1128 | /** DocBook tag for <code>tr</code>. */ | |
1129 | Tag TR_TAG = new Tag() | |
1130 | { | |
1131 | /** {@inheritDoc} */ | |
1132 | 2 | public String toString() |
1133 | { | |
1134 | 1966 | return "tr"; |
1135 | } | |
1136 | }; | |
1137 | ||
1138 | /** DocBook tag for <code>trademark</code>. */ | |
1139 | Tag TRADEMARK_TAG = new Tag() | |
1140 | { | |
1141 | /** {@inheritDoc} */ | |
1142 | 2 | public String toString() |
1143 | { | |
1144 | 254 | return "trademark"; |
1145 | } | |
1146 | }; | |
1147 | ||
1148 | /** DocBook tag for <code>ulink</code>. */ | |
1149 | Tag ULINK_TAG = new Tag() | |
1150 | { | |
1151 | /** {@inheritDoc} */ | |
1152 | 2 | public String toString() |
1153 | { | |
1154 | 346 | return "ulink"; |
1155 | } | |
1156 | }; | |
1157 | ||
1158 | /** DocBook tag for <code>userinput</code>. */ | |
1159 | Tag USERINPUT_TAG = new Tag() | |
1160 | { | |
1161 | /** {@inheritDoc} */ | |
1162 | 2 | public String toString() |
1163 | { | |
1164 | 4 | return "userinput"; |
1165 | } | |
1166 | }; | |
1167 | ||
1168 | /** DocBook tag for <code>variablelist</code>. */ | |
1169 | Tag VARIABLELIST_TAG = new Tag() | |
1170 | { | |
1171 | /** {@inheritDoc} */ | |
1172 | 2 | public String toString() |
1173 | { | |
1174 | 2818 | return "variablelist"; |
1175 | } | |
1176 | }; | |
1177 | ||
1178 | /** DocBook tag for <code>varlistentry</code>. */ | |
1179 | Tag VARLISTENTRY_TAG = new Tag() | |
1180 | { | |
1181 | /** {@inheritDoc} */ | |
1182 | 2 | public String toString() |
1183 | { | |
1184 | 2268 | return "varlistentry"; |
1185 | } | |
1186 | }; | |
1187 | ||
1188 | /** DocBook tag for <code>videodata</code>. */ | |
1189 | Tag VIDEODATA_TAG = new Tag() | |
1190 | { | |
1191 | /** {@inheritDoc} */ | |
1192 | 2 | public String toString() |
1193 | { | |
1194 | 0 | return "videodata"; |
1195 | } | |
1196 | }; | |
1197 | ||
1198 | /** DocBook tag for <code>videoobject</code>. */ | |
1199 | Tag VIDEOOBJECT_TAG = new Tag() | |
1200 | { | |
1201 | /** {@inheritDoc} */ | |
1202 | 2 | public String toString() |
1203 | { | |
1204 | 6242 | return "videoobject"; |
1205 | } | |
1206 | }; | |
1207 | ||
1208 | /** DocBook tag for <code>volumenum</code>. */ | |
1209 | Tag VOLUMENUM_TAG = new Tag() | |
1210 | { | |
1211 | /** {@inheritDoc} */ | |
1212 | 2 | public String toString() |
1213 | { | |
1214 | 2 | return "volumenum"; |
1215 | } | |
1216 | }; | |
1217 | ||
1218 | /** DocBook tag for <code>xref</code>. */ | |
1219 | Tag XREF_TAG = new Tag() | |
1220 | { | |
1221 | /** {@inheritDoc} */ | |
1222 | 2 | public String toString() |
1223 | { | |
1224 | 126 | return "xref"; |
1225 | } | |
1226 | }; | |
1227 | ||
1228 | /** DocBook tag for <code>year</code>. */ | |
1229 | Tag YEAR_TAG = new Tag() | |
1230 | { | |
1231 | /** {@inheritDoc} */ | |
1232 | 2 | public String toString() |
1233 | { | |
1234 | 0 | return "year"; |
1235 | } | |
1236 | }; | |
1237 | ||
1238 | // ---------------------------------------------------------------------- | |
1239 | // Common Docbook attributes | |
1240 | // ---------------------------------------------------------------------- | |
1241 | ||
1242 | /** Common DocBook attribute <code>id</code>. */ | |
1243 | String ID_ATTRIBUTE = "id"; | |
1244 | ||
1245 | /** Common DocBook attribute <code>lang</code>. */ | |
1246 | String LANG_ATTRIBUTE = "lang"; | |
1247 | ||
1248 | /** Common DocBook attribute <code>remap</code>. */ | |
1249 | String REMAP_ATTRIBUTE = "remap"; | |
1250 | ||
1251 | /** Common DocBook attribute <code>revisionflag</code>. */ | |
1252 | String REVISIONFLAG_ATTRIBUTE = "revisionflag"; | |
1253 | ||
1254 | // ---------------------------------------------------------------------- | |
1255 | // Specific Docbook attributes | |
1256 | // ---------------------------------------------------------------------- | |
1257 | ||
1258 | /** DocBook attribute <code>cols</code> used in <code>tgroup</code> tag. */ | |
1259 | String COLS_ATTRIBUTE = "cols"; | |
1260 | ||
1261 | /** DocBook attribute <code>colsep</code> used in <code>informaltable</code> tag. */ | |
1262 | String COLSEP_ATTRIBUTE = "colsep"; | |
1263 | ||
1264 | /** DocBook attribute <code>fileref</code> used in <code>orderedlist, imageobject</code> tag. */ | |
1265 | String FILEREF_ATTRIBUTE = "fileref"; | |
1266 | ||
1267 | /** DocBook attribute <code>format</code> used in <code>imagedata</code> tag. */ | |
1268 | String FORMAT_ATTRIBUTE = "format"; | |
1269 | ||
1270 | /** DocBook attribute <code>frame</code> used in <code>informaltable</code> tag. */ | |
1271 | String FRAME_ATTRIBUTE = "frame"; | |
1272 | ||
1273 | /** DocBook attribute <code>linkend</code> used in <code>link</code> tag. */ | |
1274 | String LINKEND_ATTRIBUTE = "linkend"; | |
1275 | ||
1276 | /** DocBook attribute <code>numeration</code> used in <code>orderedlist</code> tag. */ | |
1277 | String NUMERATION_ATTRIBUTE = "numeration"; | |
1278 | ||
1279 | /** DocBook attribute <code>rowsep</code> used in <code>informaltable</code> tag. */ | |
1280 | String ROWSEP_ATTRIBUTE = "rowsep"; | |
1281 | ||
1282 | /** DocBook attribute <code>url</code> used in <code>ulink</code> tag. */ | |
1283 | String URL_ATTRIBUTE = "url"; | |
1284 | ||
1285 | // ---------------------------------------------------------------------- | |
1286 | // Specific Docbook styles | |
1287 | // ---------------------------------------------------------------------- | |
1288 | ||
1289 | /** Docbook style <code>arabic</code> used in <code>numeration</code> attribute. */ | |
1290 | String ARABIC_STYLE = "arabic"; | |
1291 | ||
1292 | /** DocBook style <code>loweralpha</code> used in <code>numeration</code> attribute. */ | |
1293 | String LOWERALPHA_STYLE = "loweralpha"; | |
1294 | ||
1295 | /** DocBook style <code>lowerroman</code> used in <code>numeration</code> attribute. */ | |
1296 | String LOWERROMAN_STYLE = "lowerroman"; | |
1297 | ||
1298 | /** DocBook style <code>upperalpha</code> used in <code>numeration</code> attribute. */ | |
1299 | String UPPERALPHA_STYLE = "upperalpha"; | |
1300 | ||
1301 | /** DocBook style <code>upperroman</code> used in <code>numeration</code> attribute. */ | |
1302 | String UPPERROMAN_STYLE = "upperroman"; | |
1303 | } |