INRIA & FluxMedia

fr.fluxmedia.transmorpher.engine
Class TTransformation

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.engine.TProcess_Impl
        |
        +--fr.fluxmedia.transmorpher.engine.TProcessBasic
              |
              +--fr.fluxmedia.transmorpher.engine.TTransformation
All Implemented Interfaces:
java.lang.Runnable, TProcess
Direct Known Subclasses:
TApplyRuleset, TMQuery, XSLT

public abstract class TTransformation
extends TProcessBasic

During the parse process an xsl file was generated to handle the define external. So, the external process, is only a transformer

Author:
triolet

Inner Class Summary
(package private) static class TTransformation.MapEntry
          Description of the Class
 
Field Summary
private static java.util.Map cache
          Cache for stylesheets
protected  java.lang.String fileName
          The file in which the transformation is stored
(package private)  java.lang.String[] In
          port name in
(package private)  javax.xml.transform.sax.TransformerHandler iTransformerHandler
          The transformer
(package private) static java.util.Properties Op
          the properties for all transformer
(package private)  java.lang.String[] Out
          port name out
(package private)  javax.xml.transform.Templates templates
          the templates
protected  javax.xml.transform.sax.SAXTransformerFactory tfactory
           
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
finished, isThread, param, procThread, type
 
Fields inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
debug, id, iListIn, iListOfParameters, iListOut, iName, iNbIn, iNbOut, nameFather, nameIn, nameOut
 
Constructor Summary
TTransformation(java.lang.String[] pIn, java.lang.String[] pOut, Parameters params)
          The instance constructor
 
Method Summary
 void bindParameters(Parameters p)
          Description of the Method
 void generatePort()
          generates ports for a TTranformer
 java.lang.String getFile()
          Returns file
 javax.xml.transform.Transformer getTransformer()
          get The Transformer Handler
protected  javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
           
 javax.xml.transform.sax.TransformerHandler getTransformerHandler()
          get The Transformer Handler
 void initParameters()
          Description of the Method
 javax.xml.transform.Transformer initTransformer()
          create The Transformer Handler
 void reset()
          Creates a new TransformerHandler.Used by repeat process at each loop.
 void setOutputProperties()
          Sets output properties for this Transformer
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcessBasic
execProcess, getFinished, getType, run, setFinished, setThread, setType
 
Methods inherited from class fr.fluxmedia.transmorpher.engine.TProcess_Impl
getFatherName, getId, getIn, getIn, getIn, getName, getNameIn, getNameIn, getNameOut, getNameOut, getOut, getOut, getOut, getParameter, getParameterNames, getParameters, setDebug, setFatherName, setId, setIn, setName, setOut, setParameter, setParameters
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

In

java.lang.String[] In
port name in

Out

java.lang.String[] Out
port name out

templates

javax.xml.transform.Templates templates
the templates

iTransformerHandler

javax.xml.transform.sax.TransformerHandler iTransformerHandler
The transformer

cache

private static java.util.Map cache
Cache for stylesheets

tfactory

protected javax.xml.transform.sax.SAXTransformerFactory tfactory

fileName

protected java.lang.String fileName
The file in which the transformation is stored

Op

static java.util.Properties Op
the properties for all transformer
Constructor Detail

TTransformation

public TTransformation(java.lang.String[] pIn,
                       java.lang.String[] pOut,
                       Parameters params)
                throws javax.xml.transform.TransformerException,
                       javax.xml.transform.TransformerConfigurationException,
                       org.xml.sax.SAXException,
                       java.io.IOException
The instance constructor
Parameters:
pIn - Description of the Parameter
pOut - Description of the Parameter
params - Description of the Parameter
Throws:
javax.xml.transform.TransformerException - Description of the Exception
javax.xml.transform.TransformerConfigurationException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception
java.io.IOException - Description of the Exception
Method Detail

getFile

public java.lang.String getFile()
Returns file
Returns:
The file value

initTransformer

public final javax.xml.transform.Transformer initTransformer()
                                                      throws TMRuntimeException
create The Transformer Handler
Returns:
Description of the Return Value
Throws:
TMRuntimeException - Description of the Exception

setOutputProperties

public void setOutputProperties()
Sets output properties for this Transformer

getTransformerHandler

public final javax.xml.transform.sax.TransformerHandler getTransformerHandler()
get The Transformer Handler
Returns:
The transformerHandler value

getTransformer

public final javax.xml.transform.Transformer getTransformer()
get The Transformer Handler
Returns:
The transformer value

reset

public void reset()
Creates a new TransformerHandler.Used by repeat process at each loop.(Because of a xalan bug, a TransformerHandler can not be used several times.
Overrides:
reset in class TProcess_Impl

getTransformerFactory

protected javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()

generatePort

public void generatePort()
generates ports for a TTranformer
Overrides:
generatePort in class TProcess_Impl

bindParameters

public void bindParameters(Parameters p)
                    throws TMRuntimeException,
                           TMException,
                           org.xml.sax.SAXException
Description of the Method
Overrides:
bindParameters in class TProcess_Impl
Parameters:
p - Description of the Parameter
Throws:
TMRuntimeException - Description of the Exception
TMException - Description of the Exception
org.xml.sax.SAXException - Description of the Exception

initParameters

public void initParameters()
Description of the Method
Overrides:
initParameters in class TProcessBasic

INRIA & FluxMedia

..no bottom yet...