public final class DocbookUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
docbookListNumbering(int numbering)
Convert a doxia numbering style to a docbook ordered-list numbering style.
|
static int |
doxiaListNumbering(String style)
Convert a docbook ordered-list numbering style to a doxia numbering style.
|
static String |
doxiaTableFrameAttribute(String frame)
Translate a given Docbook table frame attribute value to a valid
Doxia table frame attribute value.
|
static char |
trademarkFromClass(String trade)
Get a trademark character from a class attribute.
|
public static String doxiaTableFrameAttribute(String frame)
The input has to be one of "all"
, "bottom"
,
"none"
, "sides"
, "top"
or "topbot"
,
otherwise an IllegalArgumentException is thrown.
The corresponding output values are "box"
, "below"
,
"void"
, "vsides"
, "above"
and "hsides"
.
frame
- a valid docbook table frame attribute as specified above,
otherwise an IllegalArgumentException is thrown.public static int doxiaListNumbering(String style)
The input has to be one of the style constants defined in SimplifiedDocbookMarkup
,
otherwise an IllegalArgumentException is thrown.
The output is one of the numbering constants defined in Sink
.
style
- a docbook ordered-list numbering style.public static String docbookListNumbering(int numbering)
The input has to be one of the numbering constants defined in Sink
,
otherwise an IllegalArgumentException is thrown.
The output is one of the style constants defined in SimplifiedDocbookMarkup
.
numbering
- a doxia numbering style.public static char trademarkFromClass(String trade)
The input String has to be one of "registered"
, "copyright"
,
"service"
or "trade"
otherwise an IllegalArgumentException is thrown.
The corresponding output is '®'
, '©'
,
'℠'
or '™'
.
trade
- a valid class atribute for the docbook <trademark>
tag.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.