net.sf.kernow.transform
Class DirectoryTransformer

java.lang.Object
  extended by net.sf.kernow.transform.DirectoryTransformer
All Implemented Interfaces:
CancelObserver, ObservableProgress

public class DirectoryTransformer
extends java.lang.Object
implements ObservableProgress, CancelObserver


Constructor Summary
DirectoryTransformer()
          Creates a new instance of DirectoryTransformer
 
Method Summary
 int getPercentComplete()
           
 java.lang.String getProgressText()
           
 boolean runDirectoryTransform(java.io.File inputDir, javax.xml.transform.Source stylesheet, java.io.File outputDir)
          Takes an input folder, a stylesheet and an output folder and transforms each input file with a compiled version of the stylesheet.
 void updateCancelStatus(Cancellable c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryTransformer

public DirectoryTransformer()
Creates a new instance of DirectoryTransformer

Method Detail

runDirectoryTransform

public boolean runDirectoryTransform(java.io.File inputDir,
                                     javax.xml.transform.Source stylesheet,
                                     java.io.File outputDir)
Takes an input folder, a stylesheet and an output folder and transforms each input file with a compiled version of the stylesheet.

Parameters:
inputDir - the source directory contains the XML files
stylesheet - the path to the stylesheet
outputDir - the target output directory for the transformations

updateCancelStatus

public void updateCancelStatus(Cancellable c)
Specified by:
updateCancelStatus in interface CancelObserver

getProgressText

public java.lang.String getProgressText()
Specified by:
getProgressText in interface ObservableProgress

getPercentComplete

public int getPercentComplete()
Specified by:
getPercentComplete in interface ObservableProgress