net.sf.fikin.ant
Class StxTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.sf.fikin.ant.XsltTask
              extended by net.sf.fikin.ant.StxTask
All Implemented Interfaces:
javax.xml.transform.ErrorListener

public class StxTask
extends XsltTask

STX transformations Ant task

Eseentially the same as XsltTask but providing Joost-based engine for transformations

Recognize all parameters of XsltTask expect <factory>

created on Oct 11, 2006

Since:
Version:
$Revision: 1.3 $
Author:
fiykov
Ant Task Name:
stx

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.fikin.ant.XsltTask
XsltTask.Factory
 
Field Summary
protected  Stx stx
          internal member used to refernence reusable Stx object
 
Fields inherited from class net.sf.fikin.ant.XsltTask
depends, factory, failOnError, fileUtils, force, inFilesets, mapperElement, params, paramsHT, reuseLoadedStylesheet, xslFile, xslt
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
StxTask()
           
 
Method Summary
protected  Stx getStx()
          instantiate (if needed) an xslt object and return it it would be one an same object if stx is to be reused
protected  Stx newStx()
          instantiate a new xslt object
protected  void transform(java.io.File in, java.io.File out)
          transform input into output
 
Methods inherited from class net.sf.fikin.ant.XsltTask
add, addFileset, check, createDepends, createFactory, createMapper, createParam, error, execute, fatalError, getOutFile, getParams, getParams, getXslt, isUpToDate, newStyleFactory, newXslt, scan, setFailOnError, setForce, setIn, setOut, setReloadStylesheet, setStyle, transform, warning
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stx

protected Stx stx
internal member used to refernence reusable Stx object

Constructor Detail

StxTask

public StxTask()
Method Detail

transform

protected void transform(java.io.File in,
                         java.io.File out)
                  throws org.apache.tools.ant.BuildException
transform input into output

Overrides:
transform in class XsltTask
Parameters:
in -
out -
Throws:
org.apache.tools.ant.BuildException

getStx

protected Stx getStx()
              throws java.io.FileNotFoundException,
                     javax.xml.transform.TransformerConfigurationException,
                     java.lang.ClassNotFoundException,
                     java.lang.NoSuchMethodException,
                     java.lang.InstantiationException,
                     java.lang.reflect.InvocationTargetException,
                     java.lang.IllegalAccessException
instantiate (if needed) an xslt object and return it it would be one an same object if stx is to be reused

Returns:
stx
Throws:
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

newStx

protected Stx newStx()
              throws java.io.FileNotFoundException,
                     javax.xml.transform.TransformerConfigurationException,
                     java.lang.ClassNotFoundException,
                     java.lang.NoSuchMethodException,
                     java.lang.InstantiationException,
                     java.lang.reflect.InvocationTargetException,
                     java.lang.IllegalAccessException
instantiate a new xslt object

Returns:
Stx object
Throws:
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.