public class Processor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_SUFFIX_SEPARATOR
Default automatic suffix separator.
|
static String[] |
DOCBOOK5_ID_LIST
DocBook 5 ID-list.
|
static String[] |
DOCBOOK5_IDREF_LIST
DocBook 5 IDREF-list.
|
static String |
TRANS_NS_URI
The URI of the DocBook transclusion namespace.
|
static String |
XLINK_NS_URI
The URI of the XML Linking Language (XLink).
|
| Constructor and Description |
|---|
Processor()
Equivalent to
Processor(null). |
Processor(Console c)
Constructs a Processor using specified console to display
its progress, warning, error, etc, messages.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoSuffixSeparator()
Returns the separator used for automatically generated suffixes.
|
ConsoleHelper |
getConsole()
Returns the console on which messages issued during preprocessing
are to be displayed.
|
String[] |
getIdList()
Returns the ID-list used by this processor.
|
String[] |
getIdRefList()
Returns the IDREF-list used by this processor.
|
static void |
main(String[] args) |
Boolean |
process(Document doc)
Process specified document.
|
void |
setAutoSuffixSeparator(String separ)
Specifies the separator used for automatically generated suffixes.
|
void |
setConsole(Console c)
Specifies the console on which messages issued during processing
are to be displayed.
|
void |
setIdList(String[] list)
Specifies the ID-list used by this processor.
|
void |
setIdRefList(String[] list)
Specifies the IDREF-list used by this processor.
|
public static final String TRANS_NS_URI
public static final String XLINK_NS_URI
public static final String[] DOCBOOK5_ID_LIST
public static final String[] DOCBOOK5_IDREF_LIST
public static final String AUTO_SUFFIX_SEPARATOR
public Processor()
Processor(null).public Processor(Console c)
c - the console. May be null.setConsole(com.xmlmind.util.Console)public void setConsole(Console c)
c - the console; may be null, in which case messages
are displayed on System.err and System.outgetConsole()public ConsoleHelper getConsole()
setConsole(com.xmlmind.util.Console)public void setIdList(String[] list)
By default, it's DOCBOOK5_ID_LIST.
getIdList()public String[] getIdList()
setIdList(java.lang.String[])public void setIdRefList(String[] list)
By default, it's DOCBOOK5_IDREF_LIST.
getIdRefList()public String[] getIdRefList()
setIdRefList(java.lang.String[])public void setAutoSuffixSeparator(String separ)
By defaut, it's AUTO_SUFFIX_SEPARATOR.
public String getAutoSuffixSeparator()
public Boolean process(Document doc)
doc - to be processednull if the document has been left unchanged
(no trans:* attributes in it); Boolean.TRUE
if the document has been successfully processed;
Boolean.FALSE otherwisepublic static void main(String[] args)