Class TheadRowTransformer

java.lang.Object
org.apache.commons.io.DirectoryWalker<File>
org.forgerock.doc.maven.utils.XmlTransformer
org.forgerock.doc.maven.utils.TheadRowTransformer

public class TheadRowTransformer extends XmlTransformer
Update XML files, adding a dbfo processing instruction to set the background color of table header rows.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker

    org.apache.commons.io.DirectoryWalker.CancelException
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an updater to match DocBook XML files.
  • Method Summary

    Methods inherited from class org.forgerock.doc.maven.utils.XmlTransformer

    handleFile, update

    Methods inherited from class org.apache.commons.io.DirectoryWalker

    checkIfCancelled, filterDirectoryContents, handleCancelled, handleDirectory, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TheadRowTransformer

      Construct an updater to match DocBook XML files.

      The files are updated in place.

      The following example shows how this might be used in your code.

           File xmlSourceDirectory  = new File("/path/to/xml/files/");
      
           // Update XML files.
           TheadRowTransformer trt = new TheadRowTransformer();
           return trt.update(xmlSourceDirectory);