Class Processor


  • public class Processor
    extends Object
    Transclusion processor: processes a document containing elements having trans: attributes then removes all these trans: attributes.
    • Field Detail

      • DOCBOOK5_ID_LIST

        public static final String[] DOCBOOK5_ID_LIST
        DocBook 5 ID-list.
      • DOCBOOK5_IDREF_LIST

        public static final String[] DOCBOOK5_IDREF_LIST
        DocBook 5 IDREF-list.
      • AUTO_SUFFIX_SEPARATOR

        public static final String AUTO_SUFFIX_SEPARATOR
        Default automatic suffix separator.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Processor

        public Processor​(Console c)
        Constructs a Processor using specified console to display its progress, warning, error, etc, messages.
        Parameters:
        c - the console. May be null.
        See Also:
        setConsole(com.xmlmind.util.Console)
    • Method Detail

      • setConsole

        public void setConsole​(Console c)
        Specifies the console on which messages issued during processing are to be displayed.
        Parameters:
        c - the console; may be null, in which case messages are displayed on System.err and System.out
        See Also:
        getConsole()
      • setAutoSuffixSeparator

        public void setAutoSuffixSeparator​(String separ)
        Specifies the separator used for automatically generated suffixes.

        By defaut, it's AUTO_SUFFIX_SEPARATOR.

      • getAutoSuffixSeparator

        public String getAutoSuffixSeparator()
        Returns the separator used for automatically generated suffixes.
      • process

        public Boolean process​(Document doc)
        Process specified document.
        Parameters:
        doc - to be processed
        Returns:
        null if the document has been left unchanged (no trans:* attributes in it); Boolean.TRUE if the document has been successfully processed; Boolean.FALSE otherwise
      • main

        public static void main​(String[] args)