org.codehaus.mojo.docbook
Class DocumentTransformer

java.lang.Object
  extended by org.codehaus.mojo.docbook.DocumentTransformer

public class DocumentTransformer
extends java.lang.Object

A helper class for transforming DocBook documents into different output formats.

Author:
jgonzalez, Lars Trieloff

Field Summary
protected  java.io.File databaseDirectory
           
protected  org.apache.maven.plugin.logging.Log log
           
protected  java.io.File outputDirectory
           
protected  java.io.File resourceDirectory
           
protected  java.io.File sourceDirectory
           
protected  java.net.URI stylesheetLocation
           
 
Constructor Summary
DocumentTransformer(org.apache.maven.plugin.logging.Log log, java.io.File sourceDirectory, java.io.File resourceDirectory, java.io.File databaseDirectory, java.io.File outputDirectory, java.net.URI stylesheetLocation, java.util.Map customizations, java.util.Collection artifacts)
           
 
Method Summary
 void enableOutputFormat(java.lang.String format)
          Enables a specified output format.
protected  java.lang.String pathToResources(java.lang.String relativePath)
           
protected  void prepareFileSystem(java.lang.String[] docbookFiles)
           
 void transform()
           
 void transform(TransformProfile transformProfile)
           
protected  void transformDocuments(java.util.Set docbookFiles, TransformProfile transformProfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.maven.plugin.logging.Log log

sourceDirectory

protected java.io.File sourceDirectory

resourceDirectory

protected java.io.File resourceDirectory

databaseDirectory

protected java.io.File databaseDirectory

outputDirectory

protected java.io.File outputDirectory

stylesheetLocation

protected java.net.URI stylesheetLocation
Constructor Detail

DocumentTransformer

public DocumentTransformer(org.apache.maven.plugin.logging.Log log,
                           java.io.File sourceDirectory,
                           java.io.File resourceDirectory,
                           java.io.File databaseDirectory,
                           java.io.File outputDirectory,
                           java.net.URI stylesheetLocation,
                           java.util.Map customizations,
                           java.util.Collection artifacts)
Parameters:
log -
sourceDirectory -
outputDirectory -
customizations -
artifacts -
Method Detail

transform

public void transform()

transform

public void transform(TransformProfile transformProfile)
Parameters:
transformProfile -

prepareFileSystem

protected void prepareFileSystem(java.lang.String[] docbookFiles)
Parameters:
docbookFiles -

transformDocuments

protected void transformDocuments(java.util.Set docbookFiles,
                                  TransformProfile transformProfile)

pathToResources

protected java.lang.String pathToResources(java.lang.String relativePath)

enableOutputFormat

public void enableOutputFormat(java.lang.String format)
Enables a specified output format.

Parameters:
format - the format


Copyright © 2009 OPEN input. All Rights Reserved.