Class KeepTogetherTransformer

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

Update XML files based on an XSL resource.
  • 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

    • KeepTogetherTransformer

      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.
           KeepTogetherTransformer xslt = new KeepTogetherTransformer();
           return xslt.update(xmlSourceDirectory);