org.woopi.ant.taskdefs.junit
Class Xalan2Executor

java.lang.Object
  extended by org.woopi.ant.taskdefs.junit.Xalan2Executor

public class Xalan2Executor
extends java.lang.Object

Xalan executor via JAXP. Nothing special must exists in the classpath besides of course, a parser, jaxp and xalan.


Field Summary
protected  AggregateTransformer caller
          the transformer caller
 
Constructor Summary
Xalan2Executor()
           
 
Method Summary
protected  java.lang.String getImplementation()
          This methods should return the classname implementation of the underlying xslt processor
protected  java.io.OutputStream getOutputStream()
          get the appropriate stream based on the format (frames/noframes)
protected  java.lang.String getProcVersion(java.lang.String classNameImpl)
          Try to discover the xslt processor version based on the className.
protected  java.lang.String getXalanVersion(java.lang.String procVersionClassName)
          pretty useful data (Xalan version information) to display.
protected  java.lang.String getXSLTCVersion(java.lang.String procVersionClassName)
          a bit simplistic but xsltc data are conveniently private non final
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caller

protected AggregateTransformer caller
the transformer caller

Constructor Detail

Xalan2Executor

public Xalan2Executor()
Method Detail

getImplementation

protected java.lang.String getImplementation()
                                      throws org.apache.tools.ant.BuildException
This methods should return the classname implementation of the underlying xslt processor

Returns:
the classname of the implementation, for example: org.apache.xalan.processor.TransformerFactoryImpl
Throws:
org.apache.tools.ant.BuildException
See Also:
getProcVersion(String)

getProcVersion

protected java.lang.String getProcVersion(java.lang.String classNameImpl)
                                   throws org.apache.tools.ant.BuildException
Try to discover the xslt processor version based on the className. There is nothing carved in stone and it can change anytime, so this is just for the sake of giving additional information if we can find it.

Parameters:
classNameImpl - the classname of the underlying xslt processor
Returns:
a string representing the implementation version.
Throws:
org.apache.tools.ant.BuildException

getOutputStream

protected final java.io.OutputStream getOutputStream()
                                              throws java.io.IOException
get the appropriate stream based on the format (frames/noframes)

Throws:
java.io.IOException

getXSLTCVersion

protected final java.lang.String getXSLTCVersion(java.lang.String procVersionClassName)
                                          throws java.lang.ClassNotFoundException
a bit simplistic but xsltc data are conveniently private non final

Throws:
java.lang.ClassNotFoundException

getXalanVersion

protected final java.lang.String getXalanVersion(java.lang.String procVersionClassName)
                                          throws java.lang.ClassNotFoundException
pretty useful data (Xalan version information) to display.

Throws:
java.lang.ClassNotFoundException


Copyright 2000-${year} Apache Software Foundation. All Rights Reserved.