|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xmlmind.transproc.Processor
public class Processor
Transclusion processor: processes a document containing elements having trans: attributes then removes all these trans: attributes.
| Field Summary | |
|---|---|
static java.lang.String |
AUTO_SUFFIX_SEPARATOR
Default automatic suffix separator. |
static java.lang.String[] |
DOCBOOK5_ID_LIST
DocBook 5 ID-list. |
static java.lang.String[] |
DOCBOOK5_IDREF_LIST
DocBook 5 IDREF-list. |
static java.lang.String |
TRANS_NS_URI
The URI of the DocBook transclusion namespace. |
static java.lang.String |
XLINK_NS_URI
The URI of the XML Linking Language (XLink). |
| Constructor Summary | |
|---|---|
Processor()
Equivalent to Processor(null). |
|
Processor(Console c)
Constructs a Processor using specified console to display its progress, warning, error, etc, messages. |
|
| Method Summary | |
|---|---|
java.lang.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. |
java.lang.String[] |
getIdList()
Returns the ID-list used by this processor. |
java.lang.String[] |
getIdRefList()
Returns the IDREF-list used by this processor. |
static void |
main(java.lang.String[] args)
|
java.lang.Boolean |
process(org.w3c.dom.Document doc)
Process specified document. |
void |
setAutoSuffixSeparator(java.lang.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(java.lang.String[] list)
Specifies the ID-list used by this processor. |
void |
setIdRefList(java.lang.String[] list)
Specifies the IDREF-list used by this processor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRANS_NS_URI
public static final java.lang.String XLINK_NS_URI
public static final java.lang.String[] DOCBOOK5_ID_LIST
public static final java.lang.String[] DOCBOOK5_IDREF_LIST
public static final java.lang.String AUTO_SUFFIX_SEPARATOR
| Constructor Detail |
|---|
public Processor()
Processor(null).
public Processor(Console c)
c - the console. May be null.setConsole(com.xmlmind.util.Console)| Method Detail |
|---|
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(java.lang.String[] list)
By default, it's DOCBOOK5_ID_LIST.
getIdList()public java.lang.String[] getIdList()
setIdList(java.lang.String[])public void setIdRefList(java.lang.String[] list)
By default, it's DOCBOOK5_IDREF_LIST.
getIdRefList()public java.lang.String[] getIdRefList()
setIdRefList(java.lang.String[])public void setAutoSuffixSeparator(java.lang.String separ)
By defaut, it's AUTO_SUFFIX_SEPARATOR.
public java.lang.String getAutoSuffixSeparator()
public java.lang.Boolean process(org.w3c.dom.Document doc)
doc - to be processed
null 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(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||